fixing printing of NameConstants

This commit is contained in:
Erik Krogh Kristensen
2020-10-15 13:32:22 +02:00
parent 2a5dd2c8a3
commit 5770d0256f

View File

@@ -409,7 +409,7 @@ private module PrettyPrinting {
string getQlClass(AstNode a) {
not exists(getQlCustomClass(a)) and result = a.toString()
or
result = getQlCustomClass(a)
result = strictconcat(getQlCustomClass(a), " | ")
}
/**
@@ -418,7 +418,8 @@ private module PrettyPrinting {
string getQlCustomClass(AstNode a) {
a instanceof Name and
result = "Name" and
not a instanceof Parameter
not a instanceof Parameter and
not a instanceof NameConstant
or
a instanceof Parameter and result = "Parameter"
or