File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class AstNode extends TAstNode {
79
79
80
80
/** Gets an annotation of this AST node. */
81
81
Annotation getAnAnnotation ( ) {
82
+ not this instanceof Annotation and // avoid cyclic parent-child relationship
82
83
toQL ( this ) .getParent ( ) = pragma [ only_bind_out ] ( toQL ( result ) ) .getParent ( )
83
84
}
84
85
@@ -125,6 +126,9 @@ class TopLevel extends TTopLevel, AstNode {
125
126
/** Gets a `newtype` defined at the top-level of this module. */
126
127
NewType getANewType ( ) { result = this .getAMember ( ) }
127
128
129
+ /** Gets a `select` clause in the top-level of this module. */
130
+ Select getASelect ( ) { result = this .getAMember ( ) }
131
+
128
132
override ModuleMember getAChild ( string pred ) {
129
133
pred = directMember ( "getAnImport" ) and result = this .getAnImport ( )
130
134
or
@@ -137,6 +141,8 @@ class TopLevel extends TTopLevel, AstNode {
137
141
pred = directMember ( "getANewType" ) and result = this .getANewType ( )
138
142
or
139
143
pred = directMember ( "getQLDoc" ) and result = this .getQLDoc ( )
144
+ or
145
+ pred = directMember ( "getASelect" ) and result = this .getASelect ( )
140
146
}
141
147
142
148
QLDoc getQLDocFor ( ModuleMember m ) {
You can’t perform that action at this time.
0 commit comments