File tree 1 file changed +18
-0
lines changed
packages/compiler/src/aot
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,24 @@ class ToJsonSerializer extends ValueTransformer {
221
221
}
222
222
}
223
223
224
+ /**
225
+ * Strip line and character numbers from ngsummaries.
226
+ * Emitting them causes white spaces changes to retrigger upstream
227
+ * recompilations in bazel.
228
+ * TODO: find out a way to have line and character numbers in errors without
229
+ * excessive recompilation in bazel.
230
+ */
231
+ visitStringMap ( map : { [ key : string ] : any } , context : any ) : any {
232
+ if ( map [ '__symbolic' ] === 'resolved' ) {
233
+ return visitValue ( map . symbol , this , context ) ;
234
+ }
235
+ if ( map [ '__symbolic' ] === 'error' ) {
236
+ delete map [ 'line' ] ;
237
+ delete map [ 'character' ] ;
238
+ }
239
+ return super . visitStringMap ( map , context ) ;
240
+ }
241
+
224
242
/**
225
243
* Returns null if the options.resolveValue is true, and the summary for the symbol
226
244
* resolved to a type or could not be resolved.
You can’t perform that action at this time.
0 commit comments