com.google.javascript.jscomp.RhinoErrorReporter.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
Closure Compiler is a JavaScript optimizing compiler. It parses your
JavaScript, analyzes it, removes dead code and rewrites and minimizes
what's left. It also checks syntax, variable references, and types, and
warns about common JavaScript pitfalls. It is used in many of Google's
JavaScript apps, including Gmail, Google Web Search, Google Maps, and
Google Docs.
The newest version!
???? 7?
java/util/regex/Pattern quote &(Ljava/lang/String;)Ljava/lang/String; \{\d+\}
\\E.*\\Q
java/lang/String
replaceAll 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
compile -(Ljava/lang/String;)Ljava/util/regex/Pattern;
java/lang/Object ()V /com/google/javascript/jscomp/RhinoErrorReporter internalReporter +Lcom/google/javascript/jscomp/ErrorHandler; " Ecom/google/javascript/jscomp/RhinoErrorReporter$OldRhinoErrorReporter
! $ % .(Lcom/google/javascript/jscomp/ErrorHandler;)V ' ( ) * + 'com/google/javascript/jscomp/CheckLevel WARNING )Lcom/google/javascript/jscomp/CheckLevel;
- . / makeError w(Ljava/lang/String;Ljava/lang/String;IILcom/google/javascript/jscomp/CheckLevel;)Lcom/google/javascript/jscomp/JSError; 1 2 3 4 5 )com/google/javascript/jscomp/ErrorHandler report R(Lcom/google/javascript/jscomp/CheckLevel;Lcom/google/javascript/jscomp/JSError;)V ' 7 8 + ERROR : ; < typeMap (Lcom/google/common/collect/ImmutableMap;
> ? @ A B &com/google/common/collect/ImmutableMap entrySet *()Lcom/google/common/collect/ImmutableSet;
D E F G H &com/google/common/collect/ImmutableSet iterator 2()Lcom/google/common/collect/UnmodifiableIterator; J K L M N java/util/Iterator hasNext ()Z J P Q R next ()Ljava/lang/Object; T java/util/Map$Entry S V W R getKey
Y Z [ matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
] ^ _ ` N java/util/regex/Matcher matches S b c R getValue e +com/google/javascript/jscomp/DiagnosticType
g h i mapError A(Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; k l m PARSE_ERROR -Lcom/google/javascript/jscomp/DiagnosticType;
o p q r s $com/google/javascript/jscomp/JSError builder p(Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError$Builder;
u v w x y ,com/google/javascript/jscomp/JSError$Builder setSourceLocation D(Ljava/lang/String;II)Lcom/google/javascript/jscomp/JSError$Builder;
u { | } setLevel Y(Lcom/google/javascript/jscomp/CheckLevel;)Lcom/google/javascript/jscomp/JSError$Builder;
u ? ? build (()Lcom/google/javascript/jscomp/JSError; ? JSC_PARSE_ERROR ? Parse error. {0}
d ? ? ? error S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; ? JSC_TYPE_PARSE_ERROR ? {0}
d ? ? ? warning ? ? m TYPE_PARSE_ERROR ? JSC_UNRECOGNIZED_TYPE_ERROR ? ? m UNRECOGNIZED_TYPE_ERROR ? JSC_UNRECOGNIZED_TYPEOF_ERROR ? ? m UNRECOGNIZED_TYPEOF_ERROR ? JSC_CYCLIC_INHERITANCE_ERROR ? ? m CYCLIC_INHERITANCE_ERROR ? JSC_JSDOC_MISSING_BRACES_WARNING
d ? ? ? disabled ? ? m JSDOC_MISSING_BRACES_WARNING ? JSC_JSDOC_MISSING_TYPE_WARNING ? ? m JSDOC_MISSING_TYPE_WARNING ? JSC_JSDOC_IMPORT_TYPE_WARNING ? ? m JSDOC_IMPORT_TYPE_WARNING ? JSC_TOO_MANY_TEMPLATE_PARAMS ? ? m TOO_MANY_TEMPLATE_PARAMS ? JSC_TRAILING_COMMA ? ?Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option. ? ? m TRAILING_COMMA ? JSC_DUPLICATE_PARAM ? ? m DUPLICATE_PARAM ? JSC_DUPLICATE_VISIBILITY ? ? m DUPLICATE_VISIBILITY ? JSC_UNNECESSARY_ESCAPE ? ? m UNNECESSARY_ESCAPE ? JSC_INVALID_PARAM ? ? m
INVALID_PARAM ? JSC_BAD_JSDOC_ANNOTATION ? ? m BAD_JSDOC_ANNOTATION ? JSC_INVALID_ES3_PROP_NAME ? ?Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. ? ? m INVALID_ES3_PROP_NAME ? JSC_PARSE_TREE_TOO_DEEP ? Parse tree too deep. ? ? m PARSE_TREE_TOO_DEEP ? JSC_INVALID_OCTAL_LITERAL ?