File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ class Module extends TModule {
25
25
Module getAnIncludedModule ( ) { result = getAnIncludedModule ( this ) }
26
26
27
27
/** Gets the super class or an included or prepended module. */
28
- Module getADirectAncestor ( ) {
28
+ Module getAnImmediateAncestor ( ) {
29
29
result = [ this .getSuperClass ( ) , this .getAPrependedModule ( ) , this .getAnIncludedModule ( ) ]
30
30
}
31
31
32
32
/** Gets a direct subclass or module including or prepending this one. */
33
- Module getADirectDescendent ( ) { this = result .getADirectAncestor ( ) }
33
+ Module getAnImmediateDescendent ( ) { this = result .getAnImmediateAncestor ( ) }
34
34
35
35
/** Gets a module that is transitively subclassed, included, or prepended by this module. */
36
- Module getAnAncestor ( ) { result = this .getADirectAncestor * ( ) }
36
+ Module getAnAncestor ( ) { result = this .getAnImmediateAncestor * ( ) }
37
37
38
38
/** Gets a module that transitively subclasses, includes, or prepends this module. */
39
- Module getADescendent ( ) { result = this .getADirectDescendent * ( ) }
39
+ Module getADescendent ( ) { result = this .getAnImmediateDescendent * ( ) }
40
40
41
41
/** Holds if this module is a class. */
42
42
pragma [ noinline]
Original file line number Diff line number Diff line change @@ -733,10 +733,10 @@ class ModuleNode instanceof Module {
733
733
final ModuleNode getAnIncludedModule ( ) { result = super .getAnIncludedModule ( ) }
734
734
735
735
/** Gets the super class or an included or prepended module. */
736
- final ModuleNode getADirectAncestor ( ) { result = super .getADirectAncestor ( ) }
736
+ final ModuleNode getAnImmediateAncestor ( ) { result = super .getAnImmediateAncestor ( ) }
737
737
738
738
/** Gets a direct subclass or module including or prepending this one. */
739
- final ModuleNode getADirectDescendent ( ) { result = super .getADirectDescendent ( ) }
739
+ final ModuleNode getAnImmediateDescendent ( ) { result = super .getAnImmediateDescendent ( ) }
740
740
741
741
/** Gets a module that is transitively subclassed, included, or prepended by this module. */
742
742
final ModuleNode getAnAncestor ( ) { result = super .getAnAncestor ( ) }
@@ -1190,7 +1190,7 @@ class ConstRef extends LocalSourceNode {
1190
1190
*/
1191
1191
pragma [ nomagic]
1192
1192
private TConstLookupScope getATargetScope ( ) {
1193
- result = MkAncestorLookup ( this .getAncestryTarget ( ) .getADirectDescendent * ( ) )
1193
+ result = MkAncestorLookup ( this .getAncestryTarget ( ) .getAnImmediateDescendent * ( ) )
1194
1194
or
1195
1195
access = any ( ConstantAccess ac ) .getScopeExpr ( ) and
1196
1196
result = MkQualifiedLookup ( access )
You can’t perform that action at this time.
0 commit comments