@@ -27,7 +27,9 @@ class ImportType extends Import {
2727 /** Gets the imported type. */
2828 ClassOrInterface getImportedType ( ) { imports ( this , result , _, _) }
2929
30- override string toString ( ) { result = "import " + this .getImportedType ( ) .toString ( ) }
30+ override string toString ( ) {
31+ result = "import " + pragma [ only_bind_out ] ( this .getImportedType ( ) ) .toString ( )
32+ }
3133
3234 override string getAPrimaryQlClass ( ) { result = "ImportType" }
3335}
@@ -49,7 +51,9 @@ class ImportOnDemandFromType extends Import {
4951 /** Gets an imported type. */
5052 NestedType getAnImport ( ) { result .getEnclosingType ( ) = this .getTypeHoldingImport ( ) }
5153
52- override string toString ( ) { result = "import " + this .getTypeHoldingImport ( ) .toString ( ) + ".*" }
54+ override string toString ( ) {
55+ result = "import " + pragma [ only_bind_out ] ( this .getTypeHoldingImport ( ) ) .toString ( ) + ".*"
56+ }
5357
5458 override string getAPrimaryQlClass ( ) { result = "ImportOnDemandFromType" }
5559}
@@ -71,7 +75,7 @@ class ImportOnDemandFromPackage extends Import {
7175
7276 /** Gets a printable representation of this import declaration. */
7377 override string toString ( ) {
74- result = "import " + this .getPackageHoldingImport ( ) .toString ( ) + ".*"
78+ result = "import " + pragma [ only_bind_out ] ( this .getPackageHoldingImport ( ) ) .toString ( ) + ".*"
7579 }
7680
7781 override string getAPrimaryQlClass ( ) { result = "ImportOnDemandFromPackage" }
@@ -100,7 +104,7 @@ class ImportStaticOnDemand extends Import {
100104
101105 /** Gets a printable representation of this import declaration. */
102106 override string toString ( ) {
103- result = "import static " + this .getTypeHoldingImport ( ) .toString ( ) + ".*"
107+ result = "import static " + pragma [ only_bind_out ] ( this .getTypeHoldingImport ( ) ) .toString ( ) + ".*"
104108 }
105109
106110 override string getAPrimaryQlClass ( ) { result = "ImportStaticOnDemand" }
@@ -141,7 +145,9 @@ class ImportStaticTypeMember extends Import {
141145
142146 /** Gets a printable representation of this import declaration. */
143147 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 ( )
145151 }
146152
147153 override string getAPrimaryQlClass ( ) { result = "ImportStaticTypeMember" }
0 commit comments