mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Ruby: Replace getValueText with getConstantValue
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import ruby
|
||||
|
||||
private string getValueText(MethodName m) {
|
||||
result = m.getValueText()
|
||||
result = m.getConstantValue().getString()
|
||||
or
|
||||
not exists(m.getValueText()) and result = "(none)"
|
||||
not exists(m.getConstantValue()) and result = "(none)"
|
||||
}
|
||||
|
||||
query predicate undef(UndefStmt u, int i, MethodName m, string name, string pClass) {
|
||||
|
||||
Reference in New Issue
Block a user