File tree 3 files changed +10
-10
lines changed
lib/codeql/ruby/dataflow/internal
test/library-tests/dataflow/helpers 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -957,21 +957,21 @@ class ModuleNode instanceof Module {
957
957
/**
958
958
* Gets the enclosing module, as it appears in the qualified name of this module.
959
959
*
960
- * For example, the canonical enclosing module of `A::B` is `A`, and `A` itself has no canonical enclosing module.
960
+ * For example, the parent module of `A::B` is `A`, and `A` itself has no parent module.
961
961
*/
962
- ModuleNode getCanonicalEnclosingModule ( ) { result = super .getParentModule ( ) }
962
+ ModuleNode getParentModule ( ) { result = super .getParentModule ( ) }
963
963
964
964
/**
965
965
* Gets a module named `name` declared inside this one (not aliased), provided
966
966
* that such a module is defined or reopened in the current codebase.
967
967
*
968
- * For example, for `A::B` the canonical nested module named `C` would be `A::B::C`.
968
+ * For example, for `A::B` the nested module named `C` would be `A::B::C`.
969
969
*
970
970
* Note that this is not the same as constant lookup. If `A::B::C` would resolve to a
971
971
* module whose qualified name is not `A::B::C`, then it will not be found by
972
972
* this predicate.
973
973
*/
974
- ModuleNode getCanonicalNestedModule ( string name ) { result = super .getNestedModule ( name ) }
974
+ ModuleNode getNestedModule ( string name ) { result = super .getNestedModule ( name ) }
975
975
}
976
976
977
977
/**
Original file line number Diff line number Diff line change @@ -166,12 +166,12 @@ getAnOwnInstanceVariableRead
166
166
| tst.rb:1:1:6:3 | C1 | @field | tst.rb:4:9:4:14 | @field |
167
167
getAnOwnInstanceVariableWriteValue
168
168
| tst.rb:1:1:6:3 | C1 | @field | tst.rb:3:18:3:18 | 1 |
169
- getCanonicalEnclosingModule
169
+ getParentModule
170
170
| tst.rb:41:5:42:7 | N1::XY1 | tst.rb:40:1:47:3 | N1 |
171
171
| tst.rb:43:5:46:7 | N1::N2 | tst.rb:40:1:47:3 | N1 |
172
172
| tst.rb:44:9:45:11 | N1::N2::XY2 | tst.rb:43:5:46:7 | N1::N2 |
173
173
| tst.rb:53:5:54:7 | N2::XY3 | tst.rb:49:1:51:3 | N2 |
174
- getCanonicalNestedModule
174
+ getNestedModule
175
175
| tst.rb:40:1:47:3 | N1 | N2 | tst.rb:43:5:46:7 | N1::N2 |
176
176
| tst.rb:40:1:47:3 | N1 | XY1 | tst.rb:41:5:42:7 | N1::XY1 |
177
177
| tst.rb:43:5:46:7 | N1::N2 | XY2 | tst.rb:44:9:45:11 | N1::N2::XY2 |
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ query DataFlow::Node getAnOwnInstanceVariableWriteValue(DataFlow::ModuleNode mod
42
42
result = mod .getAnOwnInstanceVariableWriteValue ( name )
43
43
}
44
44
45
- query DataFlow:: ModuleNode getCanonicalEnclosingModule ( DataFlow:: ModuleNode mod ) {
46
- result = mod .getCanonicalEnclosingModule ( )
45
+ query DataFlow:: ModuleNode getParentModule ( DataFlow:: ModuleNode mod ) {
46
+ result = mod .getParentModule ( )
47
47
}
48
48
49
- query DataFlow:: ModuleNode getCanonicalNestedModule ( DataFlow:: ModuleNode mod , string name ) {
50
- result = mod .getCanonicalNestedModule ( name )
49
+ query DataFlow:: ModuleNode getNestedModule ( DataFlow:: ModuleNode mod , string name ) {
50
+ result = mod .getNestedModule ( name )
51
51
}
52
52
53
53
query DataFlow:: Node getTopLevelConst ( string name ) { result = DataFlow:: getConst ( name ) }
You can’t perform that action at this time.
0 commit comments