@@ -0,0 +1,1599 @@
+/*%0A * Copyright 2016 The Closure Compiler Authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.google.javascript.jscomp;%0A%0A/**%0A * A warnings guard that suppresses warnings for a particular diagnostic group for a file that%0A * contains the specified substring.%0A * @author nicksantos@google.com (Nick Santos)%0A */%0Apublic class DiagnosticGroupPathSuppressingWarningsGuard extends DiagnosticGroupWarningsGuard %7B%0A  private final String part;%0A%0A  public DiagnosticGroupPathSuppressingWarningsGuard(DiagnosticGroup type, String part) %7B%0A    super(type, CheckLevel.OFF);%0A    this.part = part;%0A  %7D%0A%0A  /** Does not suppress all warnings of any type. */%0A  @Override public boolean disables(DiagnosticGroup type) %7B%0A    return false;%0A  %7D%0A%0A  /** Does not touch warnings in other paths. */%0A  @Override public CheckLevel level(JSError error) %7B%0A    return error.sourceName != null && error.sourceName.contains(part)%0A        ? super.level(error) /** suppress */%0A        : null /** proceed */;%0A  %7D%0A%0A  @Override public String toString() %7B%0A    return super.toString() + %22(%22 + part + %22)%22;%0A  %7D%0A%7D%0A

Make the warnings guard that allow suppressing specific groups by path public