Class DiagnosticGroupPathSuppressingWarningsGuard

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

public final class DiagnosticGroupPathSuppressingWarningsGuard extends WarningsGuard
A warnings guard that suppresses warnings for a particular diagnostic group for a file that contains the specified substring.
See Also:
  • Constructor Details

    • DiagnosticGroupPathSuppressingWarningsGuard

      public DiagnosticGroupPathSuppressingWarningsGuard(DiagnosticGroup group, String part)
  • Method Details

    • level

      public @Nullable CheckLevel level(JSError error)
      Does not touch warnings in other paths.
      Specified by:
      level in class WarningsGuard
      Parameters:
      error - a reported error.
      Returns:
      what level given error should have.
    • toString

      public String toString()
      Overrides:
      toString in class Object