All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.refactoring.ErrorToFixMapper.class Maven / Gradle / Ivy

Go to download

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/lang/Object()Vjava/util/LinkedHashMap
	
2com/google/javascript/refactoring/ErrorToFixMappermetadataForEachScriptLjava/util/LinkedHashMap;	compiler/Lcom/google/javascript/jscomp/AbstractCompiler;
getFixForJsErrorX(Lcom/google/javascript/jscomp/JSError;)Lcom/google/javascript/refactoring/SuggestedFix;
'com/google/common/collect/ImmutableListof=(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
 !"#$com/google/javascript/jscomp/JSErrorgetType/()Lcom/google/javascript/jscomp/DiagnosticType;	%&'()+com/google/javascript/jscomp/DiagnosticTypekeyLjava/lang/String;
+,-./java/lang/StringhashCode()I1JSC_IMPLICITLY_NONNULL_JSDOC
+345equals(Ljava/lang/Object;)Z7JSC_IMPLICITLY_NULLABLE_JSDOC9&JSC_MISSING_NULLABILITY_MODIFIER_JSDOC;+JSC_NULL_MISSING_NULLABILITY_MODIFIER_JSDOC
=>?$getFixesForImplicitNullabilityErrorsQ(Lcom/google/javascript/jscomp/JSError;)Lcom/google/common/collect/ImmutableList;
AB+()Lcom/google/common/collect/ImmutableList;DJSC_REDECLARED_VARIABLEFJSC_REFERENCE_BEFORE_DECLAREHJSC_MISSING_SEMICOLONJJSC_REQUIRES_NOT_SORTEDLJSC_PROVIDES_NOT_SORTEDNJSC_DEBUGGER_STATEMENT_PRESENTPJSC_USELESS_EMPTY_STATEMENTR'JSC_INEXISTENT_PROPERTY_WITH_SUGGESTIONT.JSC_STRICT_INEXISTENT_PROPERTY_WITH_SUGGESTIONVJSC_MISSING_CALL_TO_SUPERX&JSC_INVALID_SUPER_CALL_WITH_SUGGESTIONZJSC_MISSING_REQUIRE\$JSC_MISSING_REQUIRE_IN_PROVIDES_FILE^JSC_MISSING_REQUIRE_TYPE`)JSC_MISSING_REQUIRE_TYPE_IN_PROVIDES_FILEbJSC_EXTRA_REQUIRE_WARNINGd?JSC_REFERENCE_TO_SHORT_IMPORT_BY_LONG_NAME_INCLUDING_SHORT_NAMEf,JSC_REFERENCE_TO_FULLY_QUALIFIED_IMPORT_NAMEh(JSC_REDUNDANT_NULLABILITY_MODIFIER_JSDOCj"JSC_MISSING_CONST_ON_CONSTANT_CASE
lmgetFixForRedeclaration
opgetFixForEarlyReference
rsgetFixForMissingSemicolon
uvgetFixForUnsortedRequires
xygetFixForUnsortedProvides{6com/google/javascript/refactoring/SuggestedFix$Builder
z
~?getNode$()Lcom/google/javascript/rhino/Node;
z???attachMatchedNodeInfo?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;?Remove debugger statement
z???setDescriptionL(Ljava/lang/String;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;
z???delete\(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;
z???build2()Lcom/google/javascript/refactoring/SuggestedFix;
??removeEmptyStatement
??getFixForInexistentProperty
??getFixForMissingSuper
??getFixForInvalidSuper	?????9com/google/javascript/refactoring/SuggestedFix$ImportTypeREQUIRE;Lcom/google/javascript/refactoring/SuggestedFix$ImportType;
???getFixForMissingRequire?(Lcom/google/javascript/jscomp/JSError;Lcom/google/javascript/refactoring/SuggestedFix$ImportType;)Lcom/google/javascript/refactoring/SuggestedFix;	????REQUIRE_TYPE
??getFixForExtraRequire
??)getFixForReferenceToShortImportByLongName
??*getFixForRedundantNullabilityModifierJsDoc
??getFixForConstantCaseErrors
????? com/google/javascript/rhino/NodeisName()Z
?????$com/google/common/base/Preconditions
checkState(ZLjava/lang/Object;)V
????	getParent
?????%com/google/javascript/jscomp/NodeUtilisNameDeclaration%(Lcom/google/javascript/rhino/Node;)Z
????hasChildren
????hasOneChild?Remove redundant declaration?+Convert redundant declaration to assignment
????	cloneNode
????
getFirstChild
????	cloneTree
?????com/google/javascript/rhino/IRassignh(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
????
exprResultF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
z???replace?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;?java/util/ArrayList
?????5java/util/Listadd
????getNext????isEmpty
????getToken%()Lcom/google/javascript/rhino/Token;
?&(Lcom/google/javascript/rhino/Token;)V?iterator()Ljava/util/Iterator;	
?java/util/IteratorhasNext
next()Ljava/lang/Object;
?addChildToBack%(Lcom/google/javascript/rhino/Node;)V1
zinsertBefore?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;2		EARLY_REFLjava/util/regex/Pattern;
!"#getDescription()Ljava/lang/String;
%&'()java/util/regex/Patternmatcher3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
+,-.?java/util/regex/Matchermatches
+012group(I)Ljava/lang/String;
?45?getEnclosingStatement7 Insert var declaration statement9:;makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
z=>n(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;@.com/google/javascript/refactoring/NodeMetadata
?BC2(Lcom/google/javascript/jscomp/AbstractCompiler;)VE'com/google/javascript/refactoring/Match
DGHU(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/refactoring/NodeMetadata;)V
JK#
getSourceName
MNOPQ-com/google/javascript/jscomp/AbstractCompiler
getScriptNode6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
STUgetMetadataForScriptV(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/refactoring/ScriptMetadata;	WXFULLY_QUALIFIED_NAME	Z[USE_SHORT_NAME
z]^_addGoogRequire?(Lcom/google/javascript/refactoring/Match;Ljava/lang/String;Lcom/google/javascript/refactoring/ScriptMetadata;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;
abcd;0com/google/javascript/refactoring/ScriptMetadatagetAlias
?fg?isQualifiedName
?ij#getQualifiedName
?lm#	getString
+o?pD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
?rstnewQNamee(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
?vw#getSourceFileNamey?{Make nullability explicit}!Make type non-nullable
??O(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;?"java/lang/IllegalArgumentException9
???(Ljava/lang/String;)V?Remove empty statement
z???deleteWithoutRemovingWhitespace?;
z??>insertAfter
????getFunctionBody?super();
z??>addChildToFront	??DID_YOU_MEAN
????checkNotNull&(Ljava/lang/Object;)Ljava/lang/Object;99
z??>rename	??MISSING_REQUIRE? Unexpected error description: %s
????((ZLjava/lang/String;Ljava/lang/Object;)V
+???
startsWith(Ljava/lang/String;)Z?7Expected error location %s to start with namespace <%s>
????:(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
z???	addImport?(Lcom/google/javascript/refactoring/Match;Ljava/lang/String;Lcom/google/javascript/refactoring/SuggestedFix$ImportType;Lcom/google/javascript/refactoring/ScriptMetadata;)Lcom/google/javascript/refactoring/SuggestedFix$Builder;	?????!com/google/javascript/rhino/TokenOBJECT_PATTERN#Lcom/google/javascript/rhino/Token;
????getEnclosingTypei(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Token;)Lcom/google/javascript/rhino/Node;?Delete unused symbol
????isStringKey?Delete extra require
z???%deleteWithoutRemovingWhitespaceBefore
????getEnclosingScript?5com/google/javascript/jscomp/lint/CheckRequiresSorted	?????:com/google/javascript/jscomp/lint/CheckRequiresSorted$ModeCOLLECT_ONLYaddOrReplaceJsDoc
??isScript
? !
checkArgument(Z)V#$%applyS(Lcom/google/javascript/refactoring/ErrorToFixMapper;)Ljava/util/function/Function;
'()computeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
a+,-create?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/refactoring/ScriptMetadata;/.*Did you mean (.*)\?
%123compile-(Ljava/lang/String;)Ljava/util/regex/Pattern;5,Variable referenced before declaration: (.*)7'([^']+)' references a .*
%92:.(Ljava/lang/String;I)Ljava/util/regex/Pattern;<4Reference to fully qualified import name '([^']+)'.*>+.*Please use the short name '(.*)' instead.	SignatureoLjava/util/LinkedHashMap;CodeLineNumberTableLocalVariableTablethis4Lcom/google/javascript/refactoring/ErrorToFixMapper;MethodParametersgetFixesForJsErrorerror&Lcom/google/javascript/jscomp/JSError;fix0Lcom/google/javascript/refactoring/SuggestedFix;
StackMapTableN.com/google/javascript/refactoring/SuggestedFix?(Lcom/google/javascript/jscomp/JSError;)Lcom/google/common/collect/ImmutableList;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;nodeToDelete"Lcom/google/javascript/rhino/Node;nvarnameparent8Lcom/google/javascript/refactoring/SuggestedFix$Builder;childrenOfAddedVarStatementLjava/util/List;LocalVariableTypeTable4Ljava/util/List;stmtmLjava/util/regex/Matcher;	shortNamemetadata0Lcom/google/javascript/refactoring/NodeMetadata;match)Lcom/google/javascript/refactoring/Match;scriptscriptMetadata2Lcom/google/javascript/refactoring/ScriptMetadata;fullNameMatcherfullNameshortNameMatcheroldNameqmarkbangconstructorFunctionbodysuperDotSuggestionsuggestedPropName
importTyperegexMatchernamespaceToRequireqNamealiasnode
destructuringZcallback7Lcom/google/javascript/jscomp/lint/CheckRequiresSorted;7Lcom/google/javascript/jscomp/lint/CheckProvidesSorted;info'Lcom/google/javascript/rhino/JSDocInfo;?%com/google/javascript/rhino/JSDocInfolambda$getMetadataForScript$0s
SourceFileErrorToFixMapper.javaBootstrapMethods?
???:?$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;?var ;
?Unexpected JSError Type: ?Call '' instead?Change property name to ''?
?????"java/lang/invoke/LambdaMetafactorymetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;??
??UUInnerClassesBuilder
ImportTypeMode?3com/google/javascript/jscomp/NodeTraversal$CallbackCallback?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup1??X[?@CAU*?*?Y?	?
*+??B><?@CDEFG?A?*+?M,?,??+??$N6-?*?c?G?W?g?9?~?H`B*-0?2?36?--6?2?$6?-8?2?6?-:?2?6?#*+?,?*???K???!{\v???H???"??Di??%e?
?????????RgfM:2?U?)??+8dR??,E?2?>?
,G?2?>??,I?2??>??,K?2??>??,M?2??>??,O?2??>??,Q?2??>??,S?2??>??,U?2??	>??,W?2??
>??,Y?2?~>?x,[?2?o>?i,]?2?`
>?Z,_?2?Q>?K,a?2?B>?<,c?2?3>?-,e?2?$>?,g?2?>?,i?2?>??`flrx~??????????????*+?k?*+?n?*+?q?*+?t?*+?w??zY?|+?}*??????+?}?????*+???*+???*+???*+???*+?????*+?????*+???*+???*+???*+????B^W<YB[H]N_TaZcbdnerfxg{c|i?l?n?p?s?v?x?{?}???C?DE?HIL0&??+





?`!FHPQmA?
h+?}M,??,??,??N-?ǚ??zY?|,*???:,?͚$-?Й-?+?}:Ӷ??????ն?W,??,?ڶݸ??:-?Й-*???????Y??:-??:? ,????W??:??????L??Y-???:?:?????:		?ݶ???-*??W,???G?:?????:??W???,??W-*??W?-*???W???B?#??
????,?3?D?T?\?]?j?o?v?????????????????????????
??0?8?;?B?U?b?CzDRS?"TS?
TS	?<US0TShDEhHIcVSVWS,<JXo??S??YZ[??Y\LC????"zC??1????
????"??? FHPQpA?J?+? ?$M,?*?9,?/N+?}?3:?zY?|+?}*???6??-?8??A?+?}?u??@??zY?|+?}*???+?}x?<z????M?zY?|+?}*???+?}|?<~????N+??$:6?*?f?G?)?g?I?~?9`BY:?2?66?08?2?&6? 6?2?6?0?2?6?3"(.,??-,???,-???-????Y+??$?????BJ?
!-04	<GS
VZ???C*DEHI4?lKZ?mKL#??MM+FH?O?Ak#?zY?|+?}*??????+?}?????B"#$%&""C#DE#HIFHsAd ?zY?|+?}*???+?}??????B*+,-*C DE HIFH?A?*+?}??M,??N?zY?|+?}*???-??????B12
34#5&6)3C**DE*HI"nS
oSFH?A?R??+? ?$M,?*?A,?/???+N?zY?|+?}*???-????+?}*?-?q*??????B*
:;<=&>6?:@LAO=PCC*2p)RDERHIG^_L?P+FHPQ?A?A??+? ?$M,?*?0,?/N?zY?|+?}*???-????+?}-??????B*
GHIJ K0L4M;N>J?PC*'q)ADEAHI6^_L??+FHPQ??AѲ?+? ?$N-?*?+? ??-?/:+?}?e?
+?}?h?
+?}?k:???+?}??*?+?I?L:*?R:??Y*??A:?DY+?}?F:	?zY?|+?}*???	,??:
?`:?!
+?}*??n?q*???W
???BbTUV Y*Z4[=]A^H`M]Pc]defrg?h?j?k?m?n?o?p?q?o?uCz?DE?HI?r??s_ ?t)=?u)]teSelfgr_ab?Pcd	?2JX
?)v)L:?4++F+???+++?a?Dz+F	Hr?A
s+?}M?zY?|,*???N,??????6?5-ƶ?W,?ș-,??W?.,?Ķ?,?ĸ?-,?Ķ?W?-˶?W-,?3??W-???B2y{|&}+~3:?C?Q?]?e?n?C4sDEsHInwS^JX&MxyL?#?z@?FHvA?J+?}??M??Y?շ?N*?,-??-????zY?|-??*???-??-??-??????B*
????#?%?-?8?F?I?C*JDEJHIBeS7z{L?%??FHPQyA?J+?}??M??Y????N*?,-??-?????zY?|-??*???-??-?-?????B*
????#?%?-?8?F?I?C*JDEJHIBeS7z|L?%??FHPQ?Ae!?zY?|+?}*???+?}????B???? ?C!DE!HIFH?A2w+?}M,??N,???
-?ǚ?-??$?zY?|??-*???-
????-?-??-?:?#?zY?|??-*???-?????BV??
???!?+?3?;?>?A?B?J?P?U?_?g?n?q?t?u?C4wDEwHIrTS
mWSP'}~L???'?2FHPQTUAQ+??*?
+*?"?&?a?B
??CDEeSFe?UA=	+*??*?B?C	DE	?S?Al0.?0??4?0?6 ?8??;?0?V=?0?Y?B*
1	23456 7&8)9/8???$?????????????2zM??M?@???@???	???@???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy