@@ -65,6 +65,81 @@ module Unified {
6565 }
6666 }
6767
68+ class AccessorDeclaration extends G:: AccessorDeclaration {
69+ /** Gets the name of this accessor. */
70+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
71+ }
72+
73+ class Argument extends G:: Argument {
74+ /** Gets the name of this argument. */
75+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
76+ }
77+
78+ class AssociatedTypeDeclaration extends G:: AssociatedTypeDeclaration {
79+ /** Gets the name of this associated type. */
80+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
81+ }
82+
83+ class BreakExpr extends G:: BreakExpr {
84+ /** Gets the label name targeted by this break. */
85+ string getLabelName ( ) { result = this .getLabelNameNode ( ) .getValue ( ) }
86+ }
87+
88+ class ClassLikeDeclaration extends G:: ClassLikeDeclaration {
89+ /** Gets the name of this declaration. */
90+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
91+ }
92+
93+ class ConstructorDeclaration extends G:: ConstructorDeclaration {
94+ /** Gets the name of this constructor. */
95+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
96+ }
97+
98+ class ContinueExpr extends G:: ContinueExpr {
99+ /** Gets the label name targeted by this continue. */
100+ string getLabelName ( ) { result = this .getLabelNameNode ( ) .getValue ( ) }
101+ }
102+
103+ class FunctionDeclaration extends G:: FunctionDeclaration {
104+ /** Gets the name of this function. */
105+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
106+ }
107+
108+ class LabeledStmt extends G:: LabeledStmt {
109+ /** Gets the label name of this statement. */
110+ string getLabelName ( ) { result = this .getLabelNameNode ( ) .getValue ( ) }
111+ }
112+
113+ class MemberAccessExpr extends G:: MemberAccessExpr {
114+ /** Gets the member name of this access. */
115+ string getMemberName ( ) { result = this .getMemberNameNode ( ) .getValue ( ) }
116+ }
117+
118+ class NamedPattern extends G:: NamedPattern {
119+ /** Gets the name bound by this pattern. */
120+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
121+ }
122+
123+ class OperatorSyntaxDeclaration extends G:: OperatorSyntaxDeclaration {
124+ /** Gets the name of this operator. */
125+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
126+ }
127+
128+ class Parameter extends G:: Parameter {
129+ /** Gets the external name of this parameter. */
130+ string getExternalName ( ) { result = this .getExternalNameNode ( ) .getValue ( ) }
131+ }
132+
133+ class TypeAliasDeclaration extends G:: TypeAliasDeclaration {
134+ /** Gets the name of this type alias. */
135+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
136+ }
137+
138+ class TypeParameter extends G:: TypeParameter {
139+ /** Gets the name of this type parameter. */
140+ string getName ( ) { result = this .getNameNode ( ) .getValue ( ) }
141+ }
142+
68143 /** A binary expression. */
69144 class BinaryExpr extends G:: BinaryExpr {
70145 /** Gets an operand of this binary expression. */
@@ -77,7 +152,7 @@ module Unified {
77152 Expr getNamedArgument ( string name ) {
78153 exists ( Argument arg |
79154 arg = this .getAnArgument ( ) and
80- arg .getNameNode ( ) . getValue ( ) = name and
155+ arg .getName ( ) = name and
81156 result = arg .getValue ( )
82157 )
83158 }
0 commit comments