Class ClosureUnawareCodeWarningsGuard

java.lang.Object
com.google.javascript.jscomp.WarningsGuard
com.google.javascript.jscomp.ClosureUnawareCodeWarningsGuard
All Implemented Interfaces:
Serializable

public final class ClosureUnawareCodeWarningsGuard extends WarningsGuard
A warnings guard that suppresses warnings that are spurious for code that is unaware of Closure compiler's requirements.
See Also:
  • Constructor Details

    • ClosureUnawareCodeWarningsGuard

      public ClosureUnawareCodeWarningsGuard()
  • Method Details

    • level

      public @Nullable CheckLevel level(JSError error)
      Description copied from class: WarningsGuard
      Returns a new check level for a given error.

      `null` means that this guard does not know what to do with the error. `null` can be used it chain multiple guards; if current guard returns null, then the next in the chain should process it.

      Specified by:
      level in class WarningsGuard
      Parameters:
      error - a reported error.
      Returns:
      what level given error should have.
    • getPriority

      protected int getPriority()
      Description copied from class: WarningsGuard
      The priority in which warnings guards are applied. Lower means the guard will be applied sooner. Expressed on a scale of 1 to 100.
      Overrides:
      getPriority in class WarningsGuard