Skip to content

Commit a5d411a

Browse files
12wrigjacopybara-github
authored andcommitted
Use shadow nodes instead of printing and re-parsing closure-unaware JS in the ManageClosureUnawareCode passes.
PiperOrigin-RevId: 720206818
1 parent 9718c6b commit a5d411a

File tree

4 files changed

+327
-306
lines changed

4 files changed

+327
-306
lines changed

src/com/google/javascript/jscomp/DiagnosticGroups.java

+1
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ public static DiagnosticGroup forName(String name) {
671671

672672
public static final DiagnosticGroup INVALID_CLOSURE_UNAWARE_ANNOTATED_CODE =
673673
DiagnosticGroups.registerUnsuppressibleGroup(
674+
ManageClosureUnawareCode.UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_PRESERVE,
674675
ManageClosureUnawareCode.UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_CODE);
675676

676677
public static final DiagnosticGroup CANNOT_TRANSPILE_FEATURE =

0 commit comments

Comments
 (0)