Skip to content

Commit

Permalink
Use shadow nodes instead of printing and re-parsing closure-unaware J…
Browse files Browse the repository at this point in the history
…S in the ManageClosureUnawareCode passes.

PiperOrigin-RevId: 720206818
  • Loading branch information
12wrigja authored and copybara-github committed Jan 27, 2025
1 parent 9718c6b commit a5d411a
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 306 deletions.
1 change: 1 addition & 0 deletions src/com/google/javascript/jscomp/DiagnosticGroups.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ public static DiagnosticGroup forName(String name) {

public static final DiagnosticGroup INVALID_CLOSURE_UNAWARE_ANNOTATED_CODE =
DiagnosticGroups.registerUnsuppressibleGroup(
ManageClosureUnawareCode.UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_PRESERVE,
ManageClosureUnawareCode.UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_CODE);

public static final DiagnosticGroup CANNOT_TRANSPILE_FEATURE =
Expand Down
Loading

0 comments on commit a5d411a

Please sign in to comment.