com.google.javascript.jscomp.ReplaceIdGenerators$ReplaceGenerators.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!
???? 7r Bcom/google/javascript/jscomp/ReplaceIdGenerators$ReplaceGenerators this$0 2Lcom/google/javascript/jscomp/ReplaceIdGenerators;
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback ()V
com/google/javascript/rhino/Node isCall ()Z
isTaggedTemplateLit
%com/google/javascript/jscomp/NodeUtil #getCallTargetResolvingIndirectCalls F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
getQualifiedName ()Ljava/lang/String; ! " # $ % 0com/google/javascript/jscomp/ReplaceIdGenerators nameGenerators Ljava/util/Map; ' ( ) * +
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; - =com/google/javascript/jscomp/ReplaceIdGenerators$NameSupplier
/ 0 1 2 *com/google/javascript/jscomp/NodeTraversal inGlobalHoistScope , 4 5 6 getRenameStrategy C()Lcom/google/javascript/jscomp/ReplaceIdGenerators$RenameStrategy; 8 9 : ; < ?com/google/javascript/jscomp/ReplaceIdGenerators$RenameStrategy INCONSISTENT ALcom/google/javascript/jscomp/ReplaceIdGenerators$RenameStrategy; ! > ? @ compiler /Lcom/google/javascript/jscomp/AbstractCompiler; ! B C D NON_GLOBAL_ID_GENERATOR_CALL -Lcom/google/javascript/jscomp/DiagnosticType; F java/lang/String
H I J K L $com/google/javascript/jscomp/JSError make ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
N O P Q R -com/google/javascript/jscomp/AbstractCompiler report )(Lcom/google/javascript/jscomp/JSError;)V
T U V getAncestors 5()Lcom/google/javascript/rhino/Node$AncestorIterable;
X Y Z [ \ 1com/google/javascript/rhino/Node$AncestorIterable iterator ()Ljava/util/Iterator; ^ _ ` a java/util/Iterator hasNext ^ c d e next ()Ljava/lang/Object;
g h i isControlStructure %(Lcom/google/javascript/rhino/Node;)Z ! k l D CONDITIONAL_ID_GENERATOR_CALL
n o p maybeReplaceCall ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/ReplaceIdGenerators$NameSupplier;)V
r s p maybeReplaceTaggedTemplateLit
u v w getLastChild $()Lcom/google/javascript/rhino/Node;
y z
isTemplateLit | java/lang/IllegalStateException
{
? hasOneChild
? ? w
getFirstChild
? ? getCookedString ! ? ? D "INVALID_TEMPLATE_LITERAL_PARAMETER
? ? ? getObfuscatedName ?(Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/jscomp/ReplaceIdGenerators$NameSupplier;Ljava/lang/String;)Ljava/lang/String;
? ? ? ? ? com/google/javascript/rhino/IR string 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
? ? ? replaceWith %(Lcom/google/javascript/rhino/Node;)V
/ ? ? reportCodeChange
? ? ? w templateLiteral
? ? isTemplateLitString
? ? ? ? templateLiteralString H(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
? ? srcrefIfMissing
? ? ? addChildToBack
? ? w detach
? ? ? templateLiteralSubstitution
? ? w getNext
/ ? ? ?
? ? w getSecondChild ! ? ? D INVALID_GENERATOR_PARAMETER
? ? isStringLit
? ? getString
? ? isObjectLit
? ? isMemberFunctionDef ! ? ? D *SHORTHAND_FUNCTION_NOT_SUPPORTED_IN_ID_GEN
? ? isComputedProp ! ? ? D %COMPUTED_PROP_NOT_SUPPORTED_IN_ID_GEN
? ? ? setString (Ljava/lang/String;)V ? ? ? QUOTED_PROP 'Lcom/google/javascript/rhino/Node$Prop;
? ? ? putBooleanProp +(Lcom/google/javascript/rhino/Node$Prop;Z)V ! ? ? ? templateLiteralsAreTranspiled Z
? ? isName
? ? ?
findTtlVar r(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
? ? w getFirstFirstChild
? ?
isArrayLit ? bad transpiled structure
{ ? ?
? ? ?
getChildCount ()I
/ ? ? ? getScope &()Lcom/google/javascript/jscomp/Scope;
? ? ? ? ? "com/google/javascript/jscomp/Scope getVar >(Ljava/lang/String;)Lcom/google/javascript/jscomp/AbstractVar; com/google/javascript/jscomp/Var
w getNode
w getParent
isVar
isScript >The AST is normalized so there should only be one name per var
$com/google/common/base/Preconditions
checkState (ZLjava/lang/Object;)V !$jscomp$createTemplateTagFirstArg
matchesName (Ljava/lang/String;)Z ! CREATE_TEMPLATE_TAG_FIRST_ARG +Lcom/google/javascript/rhino/QualifiedName;
!"#$ i )com/google/javascript/rhino/QualifiedName matches !&' % idGeneratorMaps
!)*+ getIdForGeneratorNode I(ZLcom/google/javascript/rhino/Node;Ljava/lang/String;)Ljava/lang/String; 8-. <
CONSISTENT !01 % consistNameMap ,345 getName 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; '789 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 5(Lcom/google/javascript/jscomp/ReplaceIdGenerators;)V Code LineNumberTable LocalVariableTable this DLcom/google/javascript/jscomp/ReplaceIdGenerators$ReplaceGenerators; MethodParameters visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V ancestor "Lcom/google/javascript/rhino/Node; t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent qname callName Ljava/lang/String;
nameGenerator ?Lcom/google/javascript/jscomp/ReplaceIdGenerators$NameSupplier;
StackMapTable cooked rename child newTemplateLit arg key originalName param ttlVar ttlFunctionCall paramsArrayLiteral name
ttlVarName callNode callExpr RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; entry id idGeneratorMap
instanceId LocalVariableTypeTable 5Ljava/util/Map;
SourceFile ReplaceIdGenerators.java NestHost InnerClasses ReplaceGenerators AbstractPostOrderCallback NameSupplier RenameStrategy AncestorIterablep %com/google/javascript/rhino/Node$Prop Prop : ; 4
*+? *? ? <