com.google.javascript.jscomp.DefaultNameGenerator.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!
???? 7A
java/lang/Object ()V
1com/google/javascript/jscomp/DefaultNameGenerator buildPriorityLookupMap
com/google/common/collect/Sets newLinkedHashSetWithExpectedSize (I)Ljava/util/LinkedHashSet;
reset &(Ljava/util/Set;Ljava/lang/String;[C)V
((Ljava/util/Set;Ljava/lang/String;[C[C)V
NONFIRST_CHAR [C
" # $ % & com/google/common/collect/Maps newLinkedHashMapWithExpectedSize (I)Ljava/util/LinkedHashMap; ( ) * priorityLookupMap Ljava/util/Map; , - . / 0
java/util/Map entrySet ()Ljava/util/Set; 2 3 4 5 6
java/util/Set iterator ()Ljava/util/Iterator; 8 9 : ; < java/util/Iterator hasNext ()Z 8 > ? @ next ()Ljava/lang/Object; B java/util/Map$Entry A D E @ getKey G java/lang/Character A I J @ getValue L >com/google/javascript/jscomp/DefaultNameGenerator$CharPriority
K N O P clone B()Lcom/google/javascript/jscomp/DefaultNameGenerator$CharPriority; , R S T put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
F V W X valueOf (C)Ljava/lang/Character;
K Z [ (CI)V ] ^ _ BAD_NAMES (Lcom/google/common/collect/ImmutableSet;
a b c d e &com/google/common/collect/ImmutableSet contains (Ljava/lang/Object;)Z g h i
reservedNames Ljava/util/Set; k l m prefix Ljava/lang/String; o p q nameCount I s t
FIRST_CHAR
v w x reserveCharacters G([C[C)[Lcom/google/javascript/jscomp/DefaultNameGenerator$CharPriority; z { |
firstChars A[Lcom/google/javascript/jscomp/DefaultNameGenerator$CharPriority; ~ |
nonFirstChars
? ? ? ? ? java/util/Arrays sort ([Ljava/lang/Object;)V
? ? ? checkPrefix (Ljava/lang/String;)V
? ? 5(Ljava/util/Set;Ljava/lang/String;[CLjava/util/Map;)V ? ? ? ? ? java/lang/CharSequence length ()I ? ? ? ? charAt (I)C , ? ? ? get &(Ljava/lang/Object;)Ljava/lang/Object; K ? ? q
occurrence ? java/util/LinkedHashSet
? ? ? ? ? "com/google/common/primitives/Chars asList ([C)Ljava/util/List;
? ? ? (Ljava/util/Collection;)V 2 ? ? e remove 2 ? ? ? size
F ? ? ? charValue ()C
? ? ? java/lang/String
? ?
? d ? E([Lcom/google/javascript/jscomp/DefaultNameGenerator$CharPriority;C)Z K ? ? ? name C ? "java/lang/IllegalArgumentException
? ? ? ? toString ([C)Ljava/lang/String; ? ? ? makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String;
? ? ? ? ? java/lang/StringBuilder
?
? ? ? < isEmpty
? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ?
? ? ? ? (C)Ljava/lang/StringBuilder;
? ? ? ? ()Ljava/lang/String;
? ? ? ? ? 'com/google/javascript/rhino/TokenStream isKeyword (Ljava/lang/String;)Z 2 b
? ? ? isBadName ? 5abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$
? ? ? ? toCharArray ()[C ? @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789$ ? let ? yield ? await ? eval
a ? ? ? of r(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; ? *com/google/javascript/jscomp/NameGenerator Signature fLjava/util/Map; ; #Ljava/util/Set; Code LineNumberTable LocalVariableTable this 3Lcom/google/javascript/jscomp/DefaultNameGenerator; LocalVariableTypeTable reservedCharacters MethodParameters :(Ljava/util/Set;Ljava/lang/String;[C)V RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; reservedFirstCharacters reservedNonFirstCharacters <(Ljava/util/Set;Ljava/lang/String;[C[C)V entry Ljava/util/Map$Entry; lLjava/util/Map$Entry;
StackMapTable ?(Ljava/util/Set;Ljava/lang/String;[CLjava/util/Map;)V c order Q(Ljava/util/Set;Ljava/lang/String;[C)Lcom/google/javascript/jscomp/NameGenerator; e(Ljava/util/Set;Ljava/lang/String;[C)Lcom/google/javascript/jscomp/NameGenerator; favors (Ljava/lang/CharSequence;)V @Lcom/google/javascript/jscomp/DefaultNameGenerator$CharPriority; i sequence Ljava/lang/CharSequence; result reservedCharacter chars charSet index &Ljava/util/Set; | pos arr generateNextName sb Ljava/lang/StringBuilder;
SourceFile DefaultNameGenerator.java NestMembers BootstrapMethods0
123 ?4 $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;6 prefix must start with one of: 8 0prefix has invalid characters, must be one of: InnerClasses Entry CharPriority= %java/lang/invoke/MethodHandles$Lookup? java/lang/invoke/MethodHandles Lookup 1 ? ) * ? ? t ^ _ ? ? h i ? ? l m p q { | | l *? *? ? L*+? ? p q r
s t
h i
h ? g *+,--? ?
x y * h i l m h ?
h l ?
? *? *? *+,-? ? ? ? ? ? 4 h i l m h ? h l ?
? `*? *? ?? !? '? + ? 1 :? 7 ? 3? = ? A:*? '? C ? F? H ? K? M? Q W???*+,--? ? ? ? ? 3 ? T ? W ? _ ? > 3 ! ` ` h i ` l m ` ` ) * 3 ! ` h ? ` ) ? ? 2 ? , 8 ? 9 h l ) ?
? F*? ?? !? '