Ruby: Replace getValueText with getConstantValue

This commit is contained in:
Tom Hvitved
2022-01-20 14:22:11 +01:00
parent fede7dd238
commit aa9cfebc65
37 changed files with 732 additions and 280 deletions

View File

@@ -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) {