mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Ruby: rename getConst -> getConstant
This commit is contained in:
@@ -210,7 +210,7 @@ getTopLevelConst
|
||||
| XY2 | tst.rb:44:9:45:11 | self (XY2) |
|
||||
| XY3 | tst.rb:53:5:54:7 | self (XY3) |
|
||||
| Y | tst.rb:53:17:53:17 | Y |
|
||||
getConst
|
||||
getConstant
|
||||
| tst.rb:41:17:41:17 | X | Y | tst.rb:41:17:41:20 | Y |
|
||||
| tst.rb:44:21:44:21 | X | Y | tst.rb:44:21:44:24 | Y |
|
||||
| tst.rb:50:13:50:13 | X | X | tst.rb:50:13:50:13 | X |
|
||||
|
||||
@@ -50,12 +50,14 @@ query DataFlow::ModuleNode getNestedModule(DataFlow::ModuleNode mod, string name
|
||||
result = mod.getNestedModule(name)
|
||||
}
|
||||
|
||||
query DataFlow::Node getTopLevelConst(string name) { result = DataFlow::getConst(name) }
|
||||
query DataFlow::Node getTopLevelConst(string name) { result = DataFlow::getConstant(name) }
|
||||
|
||||
query DataFlow::Node getConst(DataFlow::ConstRef base, string name) { result = base.getConst(name) }
|
||||
query DataFlow::Node getConstant(DataFlow::ConstRef base, string name) {
|
||||
result = base.getConstant(name)
|
||||
}
|
||||
|
||||
query DataFlow::ModuleNode getXYClasses() {
|
||||
result = DataFlow::getConst("X").getConst("Y").getADescendentModule()
|
||||
result = DataFlow::getConstant("X").getConstant("Y").getADescendentModule()
|
||||
}
|
||||
|
||||
query DataFlow::HashLiteralNode hashLiteralNode() { any() }
|
||||
|
||||
Reference in New Issue
Block a user