com.google.javascript.jscomp.InferConsts.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/lang/Object ()V
(com/google/javascript/jscomp/InferConsts compiler /Lcom/google/javascript/jscomp/AbstractCompiler; /com/google/javascript/jscomp/ReferenceCollector
DO_NOTHING_BEHAVIOR :Lcom/google/javascript/jscomp/ReferenceCollector$Behavior; 2com/google/javascript/jscomp/SyntacticScopeCreator
2(Lcom/google/javascript/jscomp/AbstractCompiler;)V
?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/ReferenceCollector$Behavior;Lcom/google/javascript/jscomp/ScopeCreator;)V
process %(Lcom/google/javascript/rhino/Node;)V
! "
getAllSymbols ()Ljava/lang/Iterable; $ % & ' ( java/lang/Iterable iterator ()Ljava/util/Iterator; * + , - . java/util/Iterator hasNext ()Z * 0 1 2 next ()Ljava/lang/Object; 4 com/google/javascript/jscomp/Var
6 7 8
getReferences V(Lcom/google/javascript/jscomp/Var;)Lcom/google/javascript/jscomp/ReferenceCollection;
: ; < considerVar W(Lcom/google/javascript/jscomp/Var;Lcom/google/javascript/jscomp/ReferenceCollection;)V
> ? @ createScope l(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Scope;)Lcom/google/javascript/jscomp/Scope;
B C "com/google/javascript/jscomp/Scope
3 E F . isImplicitGoogNamespace
3 H I J getNameNode $()Lcom/google/javascript/rhino/Node;
3 L M N getJSDocInfo )()Lcom/google/javascript/rhino/JSDocInfo;
P Q R S . %com/google/javascript/rhino/JSDocInfo
isConstant
U V W X Y com/google/javascript/rhino/Node setDeclaredConstantVar (Z)V
U [ \ J getParent
U ^ _ . isConst
a b c isInferredConst W(Lcom/google/javascript/jscomp/Var;Lcom/google/javascript/jscomp/ReferenceCollection;)Z
U e f Y setInferredConstantVar
h i j k . 0com/google/javascript/jscomp/ReferenceCollection isAssignedOnceInLifetime
3 m n o declarationType %()Lcom/google/javascript/rhino/Token; q r s t u *com/google/javascript/jscomp/InferConsts$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
w x y z { !com/google/javascript/rhino/Token ordinal ()I
U } ~ . isLet
U ? ? . hasChildren
h ? ? . $firstReferenceIsAssigningDeclaration
h ? ? .
isWellDefined ? java/lang/IllegalStateException ? ? ? makeConcatWithConstants 7(Lcom/google/javascript/rhino/Token;)Ljava/lang/String;
? ? ? (Ljava/lang/String;)V ? )com/google/javascript/jscomp/CompilerPass Code LineNumberTable LocalVariableTable this *Lcom/google/javascript/jscomp/InferConsts; MethodParameters G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V v "Lcom/google/javascript/jscomp/Var; externs "Lcom/google/javascript/rhino/Node; js collector 1Lcom/google/javascript/jscomp/ReferenceCollector; globalExternsScope $Lcom/google/javascript/jscomp/Scope;
StackMapTable
refCollection 2Lcom/google/javascript/jscomp/ReferenceCollection; nameNode docInfo 'Lcom/google/javascript/rhino/JSDocInfo; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; #Lcom/google/javascript/rhino/Token;
SourceFile InferConsts.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; ? Unrecognized declaration type InnerClasses ? 8com/google/javascript/jscomp/ReferenceCollector$Behavior Behavior ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup ? ? F
*? *+? ? ? &