Skip to content

Commit fc00d79

Browse files
committed
unified: Suffix parameter positions with a colon
1 parent f7aeeb6 commit fc00d79

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎unified/ql/lib/codeql/unified/internal/dataflow/ParameterPositions.qll‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class ParameterPosition extends TParameterPosition {
2121
or
2222
result = this.asPositional().toString()
2323
or
24-
result = "\"" + this.asNamed() + "\""
24+
// Suffix with a colon to prevent a confusing name clash with "receiver". This also aligns with MaD syntax.
25+
result = this.asNamed() + ":"
2526
}
2627
}
2728

0 commit comments

Comments
 (0)