com.google.javascript.jscomp.ConstCheck.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 ?
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback ()V
'com/google/javascript/jscomp/ConstCheck compiler /Lcom/google/javascript/jscomp/AbstractCompiler; java/util/LinkedHashSet
initializedConstants Ljava/util/Set;
*com/google/javascript/jscomp/NodeTraversal
traverseRoots ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/NodeTraversal$Callback;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V )com/google/javascript/jscomp/ConstCheck$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
! " # $ % com/google/javascript/rhino/Node getToken %()Lcom/google/javascript/rhino/Token;
' ( ) * + !com/google/javascript/rhino/Token ordinal ()I
- . / 0 1 %com/google/javascript/jscomp/NodeUtil isNameDeclaration %(Lcom/google/javascript/rhino/Node;)Z
! 3 4 5 getString ()Ljava/lang/String;
7 8 9 getScope &()Lcom/google/javascript/jscomp/Scope;
; < = > ? "com/google/javascript/jscomp/Scope getVar >(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar; A com/google/javascript/jscomp/Var
C D E
isConstant G(Lcom/google/javascript/jscomp/Var;Lcom/google/javascript/rhino/Node;)Z
! G H I
isFromExterns ()Z K L M N O
java/util/Set add (Ljava/lang/Object;)Z
! Q R I hasChildren
T U V reportError Y(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Var;Ljava/lang/String;)V
! X Y Z
getFirstChild $()Lcom/google/javascript/rhino/Node;
! \ ] I isName
@ _ ` I isGoogModuleExports b c d CONST_REASSIGNED_VALUE_ERROR -Lcom/google/javascript/jscomp/DiagnosticType; f java/lang/String h exports
! j k 5 getSourceFileName
m n o p q $com/google/javascript/jscomp/JSError make ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
s t u v w -com/google/javascript/jscomp/AbstractCompiler report )(Lcom/google/javascript/jscomp/JSError;)V y #Found unexpected undeclared name %s
{ | } ~ $com/google/common/base/Preconditions checkNotNull J(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
@ ? ? I isConst
@ ? ? I isDeclaredOrInferredConst
- ? ? ? getBestJSDocInfo K(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
? ? ? ? ? %com/google/javascript/rhino/JSDocInfo getSuppressions ()Ljava/util/Set; ? const K ? ? O contains
@ ? ? Z getNode
! ? ? + getLineno ? ? ? makeConcatWithConstants '(Ljava/lang/String;I)Ljava/lang/String; ? #JSC_CONSTANT_REASSIGNED_VALUE_ERROR ? Hconstant {0} assigned a value more than once.
Original definition at {1}
? ? ? ? ? +com/google/javascript/jscomp/DiagnosticType warning S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; ? )com/google/javascript/jscomp/CompilerPass Signature 3Ljava/util/Set; 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this )Lcom/google/javascript/jscomp/ConstCheck; MethodParameters process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs "Lcom/google/javascript/rhino/Node; root visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V name Ljava/lang/String; var "Lcom/google/javascript/jscomp/Var; lhs t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent
StackMapTable nameNode declNode declaredPosition info 'Lcom/google/javascript/rhino/JSDocInfo;
SourceFile ConstCheck.java NestMembers BootstrapMethods ?
? ? ? ? ? $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; ? : InnerClasses AbstractPostOrderCallback ? 3com/google/javascript/jscomp/NodeTraversal$Callback Callback ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup ? c d ? ? ? ? U *? *+? *?
Y? ? ? ? 2 3 4 5 ? ? ? ? ? ? ? M *? *+,? ? ?
9
: ? ? ? ? ? ? ? ? ? ? ? ? ? ? s? ,? ? &.? g M ? ? ? ? ? ? ? ? ? ? ? ? ? - --? ,?,? 2:+? 6? :? @:*,? B? 7,? F? *? ? J W? !,? P? *? ? J ? *,? S? ?,? W:? [? ?? 2:+? 6? :? @:*? B? *? ? J ? *,? S? <? 7? ^? /*? ? J ? !*? ,? a? eYgSY,? iS? l? r? =,? W:? [? /? 2:+? 6? :? @:*? B? *,? S? ? ? z > X @ _ A e B s C } F ? G ? H ? I ? J ? N ? _ ? ` ? a ? b ? c ? d ? e f+ g2 f5 i8 p> qF rM s[ tf uo wr } ? z e L ? ? s > ? ? ? l ? ? ? ^ ? ? ? ~ ? ? M " ? ? [ ? ? > 4 ? ? s ? ? s ? ? s ? ? s ? ? ? - ? X? : e @? ? G ! e @? 8? ? 6 !? ?
? ? ? D E ? j +x,? zW+? ??
+? ?? ? ? ?
? ? ? ? ? ? ? ? ? ? @ ? ? ? U V ? ? M+? ?:? ? ??? ? ? 5,? ?:? i? ?? ? :*? +? a? eY-SYS? l? r? ? ? ? ? ? 1 ? L ? ? H , ? ? 1 ? ? M ? ? M ? ? M ? ? M ? ? G ? ? ? ? ?1 ?
? ? ? ? ? + ??? ?? a? ? ) *
) ? ? ? ? ? ? ? " ? ? ? ? ? ?
© 2015 - 2024 Weber Informatics LLC | Privacy Policy