File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
test/library-tests/modules Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ class AstNode extends TAstNode {
60
60
final string getPrimaryQlClasses ( ) { result = concat ( this .getAPrimaryQlClass ( ) , "," ) }
61
61
62
62
/** Gets the enclosing module, if any. */
63
- ModuleBase getEnclosingModule ( ) { result = getEnclosingModule ( scopeOfInclSynth ( this ) ) }
63
+ final ModuleBase getEnclosingModule ( ) { result = getEnclosingModule ( scopeOfInclSynth ( this ) ) }
64
64
65
65
/** Gets the enclosing method, if any. */
66
- MethodBase getEnclosingMethod ( ) { result = getEnclosingMethod ( scopeOfInclSynth ( this ) ) }
66
+ final MethodBase getEnclosingMethod ( ) { result = getEnclosingMethod ( scopeOfInclSynth ( this ) ) }
67
67
68
68
/** Gets a textual representation of this node. */
69
69
cached
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ private AstNode specialParentOfInclSynth(AstNode n) {
128
128
n =
129
129
[
130
130
result .( Namespace ) .getScopeExpr ( ) , result .( ClassDeclaration ) .getSuperclassExpr ( ) ,
131
- result .( SingletonMethod ) .getObject ( )
131
+ result .( SingletonMethod ) .getObject ( ) , result . ( SingletonClass ) . getValue ( )
132
132
]
133
133
}
134
134
Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ enclosingModule
712
712
| modules.rb:116:7:117:9 | YY | modules.rb:115:1:121:3 | XX |
713
713
| modules.rb:116:18:116:19 | YY | modules.rb:115:1:121:3 | XX |
714
714
| modules.rb:119:7:120:9 | class << ... | modules.rb:115:1:121:3 | XX |
715
- | modules.rb:119:16:119:19 | self | modules.rb:119:7:120:9 | class << ... |
715
+ | modules.rb:119:16:119:19 | self | modules.rb:115:1:121:3 | XX |
716
716
| modules.rb:123:1:124:3 | Baz | modules.rb:1:1:129:4 | modules.rb |
717
717
| modules.rb:123:8:123:11 | Test | modules.rb:1:1:129:4 | modules.rb |
718
718
| modules.rb:123:8:123:17 | Foo1 | modules.rb:1:1:129:4 | modules.rb |
@@ -722,7 +722,7 @@ enclosingModule
722
722
| modules.rb:126:6:126:7 | XX | modules.rb:1:1:129:4 | modules.rb |
723
723
| modules.rb:126:6:126:11 | call to new | modules.rb:1:1:129:4 | modules.rb |
724
724
| modules.rb:128:1:129:3 | class << ... | modules.rb:1:1:129:4 | modules.rb |
725
- | modules.rb:128:10:128:11 | xx | modules.rb:128 :1:129:3 | class << ... |
725
+ | modules.rb:128:10:128:11 | xx | modules.rb:1 :1:129:4 | modules.rb |
726
726
| modules_rec.rb:1:1:2:3 | A | modules_rec.rb:1:1:11:26 | modules_rec.rb |
727
727
| modules_rec.rb:1:7:1:7 | B | modules_rec.rb:1:1:11:26 | modules_rec.rb |
728
728
| modules_rec.rb:4:1:5:3 | B | modules_rec.rb:1:1:11:26 | modules_rec.rb |
You can’t perform that action at this time.
0 commit comments