com.google.javascript.jscomp.Es6ForOfConverter.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/Es6ForOfConverter compiler /Lcom/google/javascript/jscomp/AbstractCompiler; 1com/google/javascript/jscomp/DefaultNameGenerator
namer 3Lcom/google/javascript/jscomp/DefaultNameGenerator;
-com/google/javascript/jscomp/AbstractCompiler createAstFactory +()Lcom/google/javascript/jscomp/AstFactory;
astFactory )Lcom/google/javascript/jscomp/AstFactory;
! getTranspilationNamespace +()Lcom/google/javascript/rhino/StaticScope; # $ % namespace )Lcom/google/javascript/rhino/StaticScope; ' ( ) transpiledFeatures 8Lcom/google/javascript/jscomp/parsing/parser/FeatureSet; + 3com/google/javascript/jscomp/NodeTraversal$Callback
- . / 0 1 0com/google/javascript/jscomp/TranspilationPasses processTranspile ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;[Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
- 3 4 5 !maybeMarkFeaturesAsTranspiledAway ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)V
7 8 9 : ; com/google/javascript/rhino/Node isForOf ()Z
= > ?
visitForOf %(Lcom/google/javascript/rhino/Node;)V
7 A B C removeFirstChild $()Lcom/google/javascript/rhino/Node;
7 E F G getJSDocInfo )()Lcom/google/javascript/rhino/JSDocInfo;
I J K getUniqueNameIdSupplier ()Ljava/util/function/Supplier; M N O P Q java/util/function/Supplier get ()Ljava/lang/Object; S java/lang/String U V W makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String; Y Z [ \ ] 2com/google/javascript/jscomp/colors/StandardColors ITERATOR_ID -Lcom/google/javascript/jscomp/colors/ColorId;
_ ` a b c 'com/google/javascript/jscomp/AstFactory type ](Lcom/google/javascript/jscomp/colors/ColorId;)Lcom/google/javascript/jscomp/AstFactory$Type;
_ e f g
createName d(Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
7 i j makeNonIndexable
7 l m C cloneTree o next
_ q r s createGetPropWithUnknownType X(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
_ u v w createCallWithUnknownType i(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
y z { getUniqueIdSupplier 1()Lcom/google/javascript/jscomp/UniqueIdSupplier;
} ~ ? ? %com/google/javascript/jscomp/NodeUtil getEnclosingScript F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
7 ? ? ?
getInputId '()Lcom/google/javascript/rhino/InputId;
? ? ? getInput S(Lcom/google/javascript/rhino/InputId;)Lcom/google/javascript/jscomp/CompilerInput;
? ? ? ? ? -com/google/javascript/jscomp/UniqueIdSupplier getUniqueId @(Lcom/google/javascript/jscomp/CompilerInput;)Ljava/lang/String; U
} ? ? ? isNameDeclaration %(Lcom/google/javascript/rhino/Node;)Z
7 ? ? C
getFirstChild
7 ? ? ? getString ()Ljava/lang/String; ? V ? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
7 ? ? ; isName
? ? ? generateNextName
_ ? ? ? createNameWithUnknownType 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
_ ? ? ? createJSCompMakeIteratorCall o(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/StaticScope;)Lcom/google/javascript/rhino/Node;
7 ? ? ? srcrefTreeIfMissing
? ? ? ? ? com/google/javascript/rhino/IR var h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; ? done Y ? ? ? BOOLEAN +Lcom/google/javascript/jscomp/colors/Color;
_ ? b ? [(Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
_ ? ? ?
createGetProp ?(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/AstFactory$Type;)Lcom/google/javascript/rhino/Node;
_ ? ? ? createNot
_ ? ? ? createAssign
7 ? ? ? setJSDocInfo K(Lcom/google/javascript/rhino/JSDocInfo;)Lcom/google/javascript/rhino/Node; ? value
_ ? b ? R(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/AstFactory$Type;
? ? ? ?
exprResult
7 ? ? ? getToken %()Lcom/google/javascript/rhino/Token; ? ? ? ? ? !com/google/javascript/rhino/Token VAR #Lcom/google/javascript/rhino/Token;
? ? ? ? equals (Ljava/lang/Object;)Z ? Fvar initializers must've gotten moved out of the loop during normalize
? ? ? ? ? $com/google/common/base/Preconditions
checkState (ZLjava/lang/Object;)V
_ ? ? ? createSingleNameDeclaration {(Lcom/google/javascript/rhino/Token;Ljava/lang/String;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; 7 ? ? ? IS_CONSTANT_NAME 'Lcom/google/javascript/rhino/Node$Prop;
7 ? ? ? getBooleanProp *(Lcom/google/javascript/rhino/Node$Prop;)Z
7 ? ? ? putBooleanProp +(Lcom/google/javascript/rhino/Node$Prop;Z)V
? ? ? ? block G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
7 ? srcref
_ C createEmpty
? forNode ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
7
? replaceWith
7
C getParent
7 ; isLabel
7 ? insertBefore
7 ? insertAfter
? reportChangeToEnclosingScope ) 6com/google/javascript/jscomp/parsing/parser/FeatureSet BARE_MINIMUM !"#$% >com/google/javascript/jscomp/parsing/parser/FeatureSet$Feature FOR_OF @Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;
'() with z(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;+ )com/google/javascript/jscomp/CompilerPass ITER_BASE Ljava/lang/String;
ConstantValue0
$jscomp$iter$ ITER_RESULT3 $jscomp$key$ 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this 0Lcom/google/javascript/jscomp/Es6ForOfConverter; 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 t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent
StackMapTable declarationOrAssign .Lcom/google/javascript/jscomp/AstFactory$Type; declarationType node variable iterable body varJSDocInfo 'Lcom/google/javascript/rhino/JSDocInfo; iterName getNext iteratorResultName
iterResult callMakeIterator initIter initIterResult cond incr newBody empty newFor insertionPoint^ %com/google/javascript/rhino/JSDocInfo` ,com/google/javascript/jscomp/AstFactory$Type
SourceFile Es6ForOfConverter.java BootstrapMethodsf
ghi Vj $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;l $jscomp$iter$n $jscomp$key$$p InnerClassess *com/google/javascript/jscomp/NodeTraversal AbstractPostOrderCallback Callback Typex %com/google/javascript/rhino/Node$Prop Prop Feature| %java/lang/invoke/MethodHandles$Lookup~ java/lang/invoke/MethodHandles Lookup 1 * ( ) $ % ,- . / 1- . 2 4 5 m %*? *+? *?
Y? ? *+? ? *+? ? "? 6 + , - . / $ 07 %89 % : ;<