File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import semmle.code.csharp.Using
21
21
import semmle.code.csharp.Variable
22
22
import semmle.code.csharp.XML
23
23
import semmle.code.csharp.Preprocessor
24
+ import semmle.code.csharp.Printing
24
25
import semmle.code.csharp.exprs.Access
25
26
import semmle.code.csharp.exprs.ArithmeticOperation
26
27
import 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