com.google.javascript.jscomp.IdMappingUtil.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 java/lang/StringBuilder
java/util/Map entrySet ()Ljava/util/Set;
java/util/Set iterator ()Ljava/util/Iterator; java/util/Iterator hasNext ()Z next ()Ljava/lang/Object; ! java/util/Map$Entry # $ getValue & ' isEmpty
) * + append (C)Ljava/lang/StringBuilder; - . getKey 0 java/lang/String
2 * 3 -(Ljava/lang/String;)Ljava/lang/StringBuilder; 5 *com/google/javascript/jscomp/IdMappingUtil
7 8 9 toString ()Ljava/lang/String;
; < = > ? com/google/common/base/Strings
isNullOrEmpty (Ljava/lang/String;)Z
A B C D E &com/google/common/collect/ImmutableMap of *()Lcom/google/common/collect/ImmutableMap; G java/util/LinkedHashMap
F 4 J K L
LINE_SPLITTER !Lcom/google/common/base/Splitter;
N O P Q R com/google/common/base/Splitter split .(Ljava/lang/CharSequence;)Ljava/lang/Iterable; T U java/lang/Iterable
/ &
/ X Y Z charAt (I)C
/ \ ] ^ length ()I
/ ` a b substring (II)Ljava/lang/String; d e f get &(Ljava/lang/Object;)Ljava/lang/Object; h com/google/common/collect/BiMap
j k l m n #com/google/common/collect/HashBiMap create '()Lcom/google/common/collect/HashBiMap; p q r put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; t "java/lang/IllegalArgumentException v 0Cannot parse id map: %s
Line: $s, lineIndex: %s
x y z { | java/lang/Integer valueOf (I)Ljava/lang/Integer;
~ ? ? ? 5com/google/javascript/jscomp/base/format/SimpleFormat format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
s ? ? (Ljava/lang/String;)V
/ ? ? ? indexOf (I)I
/ ? a ? (I)Ljava/lang/String; g p
N ? ? ? on $(C)Lcom/google/common/base/Splitter;
N ? ? ? omitEmptyStrings #()Lcom/google/common/base/Splitter; NEW_LINE C
ConstantValue
RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; Code LineNumberTable LocalVariableTable this ,Lcom/google/javascript/jscomp/IdMappingUtil; generateSerializedIdMappings #(Ljava/util/Map;)Ljava/lang/String; replacement Ljava/util/Map$Entry; replacements idGeneratorMaps Ljava/util/Map; sb Ljava/lang/StringBuilder; LocalVariableTypeTable ;Ljava/util/Map$Entry; ^Ljava/util/Map$Entry;>; XLjava/util/Map;>;
StackMapTable MethodParameters Signature l(Ljava/util/Map;>;)Ljava/lang/String; parseSerializedIdMappings #(Ljava/lang/String;)Ljava/util/Map; currentSection Ljava/lang/String; name location I line
idMappings resultMap currentSectionMap !Lcom/google/common/collect/BiMap; lineIndex jLjava/util/Map;>; GLcom/google/common/collect/BiMap; ~(Ljava/lang/String;)Ljava/util/Map;>;
SourceFile IdMappingUtil.java InnerClasses Entry 1 4 ? ? ? ? ? ? K L ? / *? ? ? % ? ? ? ? ? ? ~ ?? Y? L*?
? M,? ? ?,? ? N-? " ? ? % ? ?+[? (-? , ? /? 1]? (
? (
? (W-? " ? ?
? :? ? 8? ? :+? , ? /? 1:? (? " ? /? 1
? (W???+
? (W??_+? 6? ? 6
+ , ' - 8 . Z 0 ? 1 ? 2 ? 3 ? 4 ? 5 ? 6 ? 8 ? 9 ? * ? &