com.google.javascript.jscomp.SyntacticScopeCreator$ScopeScanner.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!
???? 7f 2com/google/javascript/jscomp/SyntacticScopeCreator
java/lang/Object ()V
?com/google/javascript/jscomp/SyntacticScopeCreator$ScopeScanner compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
redeclarationHandler ILcom/google/javascript/jscomp/SyntacticScopeCreator$RedeclarationHandler;
scope $Lcom/google/javascript/jscomp/Scope;
changeRootSet Ljava/util/Set;
"com/google/javascript/jscomp/Scope isGlobal ()Z
" # $ % & $com/google/common/base/Preconditions
checkState (Z)V
( ) * treatProvidesAsRedeclarations Z
, - . getRootNode $()Lcom/google/javascript/rhino/Node;
0 1 2 3 4 %com/google/javascript/jscomp/NodeUtil
getInputId I(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/InputId;
6 7 8 inputId %Lcom/google/javascript/rhino/InputId; : ; < = > 4com/google/javascript/jscomp/SyntacticScopeCreator$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
@ A B C D com/google/javascript/rhino/Node getToken %()Lcom/google/javascript/rhino/Token;
F G H I J !com/google/javascript/rhino/Token ordinal ()I
@ L M .
getFirstChild
@ O P . getNext
@ R S isParamList
U V W
declareLHS I(Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/rhino/Node;)V
@ Y Z [ getString ()Ljava/lang/String;
] ^ _ ` java/lang/String isEmpty
0 b c d isFunctionExpression %(Lcom/google/javascript/rhino/Node;)Z
f g W
declareVar
@ ^
0 j k d isClassExpression
" m % n (ZLjava/lang/Object;)V
p q r scanVars m(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/Scope;Lcom/google/javascript/jscomp/Scope;)V
0 t u d isFunctionBlock
0 w x d isClassStaticBlock z java/lang/RuntimeException | } ~ makeConcatWithConstants 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
y ? ? (Ljava/lang/String;)V
@ ? ? hasOneChild
@ ? ? isName ? ? ? accept ?(Lcom/google/javascript/jscomp/SyntacticScopeCreator$ScopeScanner;Lcom/google/javascript/jscomp/Scope;)Ljava/util/function/Consumer;
0 ? ? ? visitLhsNodesInNode B(Lcom/google/javascript/rhino/Node;Ljava/util/function/Consumer;)V
@ ? ? hasTwoChildren
@ ? ? . getSecondChild ? ? ? ? ?
java/util/Set contains (Ljava/lang/Object;)Z
@ ? 3 ? '()Lcom/google/javascript/rhino/InputId;
? ? d isLegacyGoogModule
? ? W $declareImplicitGoogNamespaceFromCall
@ ? ? . getParent
@ ? ? isScript
0 ? ? d isGoogProvideCall
? ? ? getGlobalScope .()Lcom/google/javascript/jscomp/AbstractScope;
0 ? ? d isBundledGoogModuleCall
@ ? ?
isFunction
0 ? ? ? getFunctionBody F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
0 ? ? d createsBlockScope
0 ? ? d isControlStructure
0 ? ? d isStatementBlock
@ ? ? isImportStar ? Invalid node for declareVar: %s
" ? % ? ((ZLjava/lang/String;Ljava/lang/Object;)V
? ? ?
getOwnSlot >(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar; ? com/google/javascript/jscomp/Var
? ? ? . getNode
? ? ? isImplicitGoogNamespace
? ? ? undeclare -(Lcom/google/javascript/jscomp/AbstractVar;)V
? ? ? ? ? -com/google/javascript/jscomp/AbstractCompiler getInput S(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
? ? ? isShadowingAllowed 9(Ljava/lang/String;Lcom/google/javascript/jscomp/Scope;)Z
? ? isFunctionScope
? ? isFunctionBlockScope ? arguments
] ? ? ? equals ? ? ? ? ? Gcom/google/javascript/jscomp/SyntacticScopeCreator$RedeclarationHandler onRedeclaration ?(Lcom/google/javascript/jscomp/Scope;Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/CompilerInput;)V
? ? ? declare ?(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/CompilerInput;)Lcom/google/javascript/jscomp/Var;
@ ? ? isString
0 getRootOfQualifiedName &(Ljava/lang/String;)Ljava/lang/String;
$declareImplicitGoogNamespaceIfAbsent X(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/Var;
? &()Lcom/google/javascript/jscomp/Scope;
? isParam
0 d isGoogModuleCall
0 d &isGoogModuleDeclareLegacyNamespaceCall RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; Signature 3Ljava/util/Set; ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/SyntacticScopeCreator$RedeclarationHandler;Lcom/google/javascript/jscomp/Scope;Ljava/util/Set;Z)V Code LineNumberTable LocalVariableTable this ALcom/google/javascript/jscomp/SyntacticScopeCreator$ScopeScanner; LocalVariableTypeTable
StackMapTable MethodParameters ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/jscomp/SyntacticScopeCreator$RedeclarationHandler;Lcom/google/javascript/jscomp/Scope;Ljava/util/Set;Z)V populate
fnNameNode "Lcom/google/javascript/rhino/Node; args fnName Ljava/lang/String;
classNameNode n s className block expr fn
moduleCall next child
hoistScope
blockScope isBlockStart enteringNewBlock name v "Lcom/google/javascript/jscomp/Var; input ,Lcom/google/javascript/jscomp/CompilerInput;; *com/google/javascript/jscomp/CompilerInput existing exprCall
namespaceNode namespace root
maybeParam lambda$declareLHS$0 lhs
SourceFile SyntacticScopeCreator.java NestHost BootstrapMethodsI
JKL }M $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;O Illegal scope root: Q
RSTUV "java/lang/invoke/LambdaMetafactory metafactory ?(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;X (Ljava/lang/Object;)VZ
[B W] %(Lcom/google/javascript/rhino/Node;)V InnerClasses ScopeScanner RedeclarationHandlerb %java/lang/invoke/MethodHandles$Lookupd java/lang/invoke/MethodHandles Lookup
) * 7 8 ? 4*? *+? *,? *-? *? ?
-? ? ? ? !*? '? " _ ` a b c d - e 3 f > 4 4
4 4 4 4 ) * 4 ? %
? ? ? @
) ! *? ? +L*+? /? 5? 9+? ?? E.? ?
A z ? ? ? ? ? ? ? ? ? ? ?+? KM,? NN-? Q? !**? -? T,? X:? \? +? a? **? ,? e?+? KM,? h? +? i? **? ,? e?*? ? *? ? l*+*? *? ? o?*+*? *? ? o?*+*? ? o?+? s?
+? v? *+*? *? ? o?
*+*? ? o??? yY+? { ? ? r i l m \ o a p f s m t v x | y ? z ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > a 4"# f /$# | %&