summaryrefslogtreecommitdiff
path: root/js/src/frontend/ParseNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/frontend/ParseNode.h')
-rw-r--r--js/src/frontend/ParseNode.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/src/frontend/ParseNode.h b/js/src/frontend/ParseNode.h
index aae2a691bb..0ad0fe0885 100644
--- a/js/src/frontend/ParseNode.h
+++ b/js/src/frontend/ParseNode.h
@@ -1237,11 +1237,6 @@ class PropertyAccessBase : public ParseNode
PropertyName& name() const {
return *pn_u.name.atom->asPropertyName();
}
-
- bool isSuper() const {
- // PNK_SUPERBASE cannot result from any expression syntax.
- return expression().isKind(PNK_SUPERBASE);
- }
};
class PropertyAccess : public PropertyAccessBase
@@ -1260,6 +1255,11 @@ class PropertyAccess : public PropertyAccessBase
MOZ_ASSERT_IF(match, node.isArity(PN_NAME));
return match;
}
+
+ bool isSuper() const {
+ // PNK_SUPERBASE cannot result from any expression syntax.
+ return expression().isKind(PNK_SUPERBASE);
+ }
};
class OptionalPropertyAccess : public PropertyAccessBase
@@ -1297,10 +1297,6 @@ class PropertyByValueBase : public ParseNode
MOZ_ASSERT_IF(match, node.isArity(PN_BINARY));
return match;
}
-
- bool isSuper() const {
- return pn_left->isKind(PNK_SUPERBASE);
- }
};
class PropertyByValue : public PropertyByValueBase {
@@ -1314,6 +1310,10 @@ class PropertyByValue : public PropertyByValueBase {
MOZ_ASSERT_IF(match, node.isArity(PN_BINARY));
return match;
}
+
+ bool isSuper() const {
+ return pn_left->isKind(PNK_SUPERBASE);
+ }
};
class OptionalPropertyByValue : public PropertyByValueBase {