File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import semmle.code.csharp.Using
2121import semmle.code.csharp.Variable
2222import semmle.code.csharp.XML
2323import semmle.code.csharp.Preprocessor
24+ import semmle.code.csharp.Printing
2425import semmle.code.csharp.exprs.Access
2526import semmle.code.csharp.exprs.ArithmeticOperation
2627import semmle.code.csharp.exprs.Assignment
Original file line number Diff line number Diff line change 1+ /**
2+ * Provides predicates to pretty-print a C# qualified name.
3+ */
4+
5+ /**
6+ * Returns the concatenation of `qualifier` and `name`, separated by a dot.
7+ */
8+ bindingset [ qualifier, name]
9+ string printQualifiedName ( string qualifier , string name ) {
10+ if qualifier = "" then result = name else result = qualifier + "." + name
11+ }
12+
13+ /**
14+ * Returns the concatenation of `qualifier`, `type` and `name`, separated by a dot.
15+ */
16+ bindingset [ qualifier, type, name]
17+ string printQualifiedName ( string qualifier , string type , string name ) {
18+ result = printQualifiedName ( qualifier , type ) + "." + name
19+ }
You can’t perform that action at this time.
0 commit comments