@@ -27,7 +27,9 @@ class ImportType extends Import {
27
27
/** Gets the imported type. */
28
28
ClassOrInterface getImportedType ( ) { imports ( this , result , _, _) }
29
29
30
- override string toString ( ) { result = "import " + this .getImportedType ( ) .toString ( ) }
30
+ override string toString ( ) {
31
+ result = "import " + pragma [ only_bind_out ] ( this .getImportedType ( ) ) .toString ( )
32
+ }
31
33
32
34
override string getAPrimaryQlClass ( ) { result = "ImportType" }
33
35
}
@@ -49,7 +51,9 @@ class ImportOnDemandFromType extends Import {
49
51
/** Gets an imported type. */
50
52
NestedType getAnImport ( ) { result .getEnclosingType ( ) = this .getTypeHoldingImport ( ) }
51
53
52
- override string toString ( ) { result = "import " + this .getTypeHoldingImport ( ) .toString ( ) + ".*" }
54
+ override string toString ( ) {
55
+ result = "import " + pragma [ only_bind_out ] ( this .getTypeHoldingImport ( ) ) .toString ( ) + ".*"
56
+ }
53
57
54
58
override string getAPrimaryQlClass ( ) { result = "ImportOnDemandFromType" }
55
59
}
@@ -71,7 +75,7 @@ class ImportOnDemandFromPackage extends Import {
71
75
72
76
/** Gets a printable representation of this import declaration. */
73
77
override string toString ( ) {
74
- result = "import " + this .getPackageHoldingImport ( ) .toString ( ) + ".*"
78
+ result = "import " + pragma [ only_bind_out ] ( this .getPackageHoldingImport ( ) ) .toString ( ) + ".*"
75
79
}
76
80
77
81
override string getAPrimaryQlClass ( ) { result = "ImportOnDemandFromPackage" }
@@ -100,7 +104,7 @@ class ImportStaticOnDemand extends Import {
100
104
101
105
/** Gets a printable representation of this import declaration. */
102
106
override string toString ( ) {
103
- result = "import static " + this .getTypeHoldingImport ( ) .toString ( ) + ".*"
107
+ result = "import static " + pragma [ only_bind_out ] ( this .getTypeHoldingImport ( ) ) .toString ( ) + ".*"
104
108
}
105
109
106
110
override string getAPrimaryQlClass ( ) { result = "ImportStaticOnDemand" }
@@ -141,7 +145,9 @@ class ImportStaticTypeMember extends Import {
141
145
142
146
/** Gets a printable representation of this import declaration. */
143
147
override string toString ( ) {
144
- result = "import static " + this .getTypeHoldingImport ( ) .toString ( ) + "." + this .getName ( )
148
+ result =
149
+ "import static " + pragma [ only_bind_out ] ( this .getTypeHoldingImport ( ) ) .toString ( ) + "." +
150
+ this .getName ( )
145
151
}
146
152
147
153
override string getAPrimaryQlClass ( ) { result = "ImportStaticTypeMember" }
0 commit comments