Create a new diagnostic group for errors that may come from using a
type without including the code that defines the type
These errors can be hit when compiling modules using goog.forwardDeclare,
although using this pattern is not recommended.
@@ -424,6 +424,10 @@ public class DiagnosticGroups {
CheckProvides.MISSING_PROVIDE_WARNING,
ClosureRewriteModule.MISSING_MODULE_OR_PROVIDE);
+ public static final DiagnosticGroup UNRECOGNIZED_TYPE_ERROR =
+ DiagnosticGroups.registerGroup("unrecognizedTypeError", // undocumented
+ RhinoErrorReporter.UNRECOGNIZED_TYPE_ERROR);
+
public static final DiagnosticGroup MISSING_REQUIRE =
DiagnosticGroups.registerGroup(
"missingRequire", CheckMissingAndExtraRequires.MISSING_REQUIRE_WARNING);
