We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a5dd2c commit 5770d02Copy full SHA for 5770d02
python/ql/src/semmle/python/PrintAst.qll
@@ -409,7 +409,7 @@ private module PrettyPrinting {
409
string getQlClass(AstNode a) {
410
not exists(getQlCustomClass(a)) and result = a.toString()
411
or
412
- result = getQlCustomClass(a)
+ result = strictconcat(getQlCustomClass(a), " | ")
413
}
414
415
/**
@@ -418,7 +418,8 @@ private module PrettyPrinting {
418
string getQlCustomClass(AstNode a) {
419
a instanceof Name and
420
result = "Name" and
421
- not a instanceof Parameter
+ not a instanceof Parameter and
422
+ not a instanceof NameConstant
423
424
a instanceof Parameter and result = "Parameter"
425
0 commit comments