Class FileAwareWarningsGuard

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class FileAwareWarningsGuard
    extends WarningsGuard
    An abstract WarningsGuard that provides an additional getScriptNodeForError() method for accessing the containing SCRIPT node of the AST in a robust way.
    See Also:
    Serialized Form
    • Constructor Detail

      • FileAwareWarningsGuard

        protected FileAwareWarningsGuard​(AbstractCompiler compiler)
    • Method Detail

      • getScriptNodeForError

        @Nullable
        protected final Node getScriptNodeForError​(JSError error)