com.google.debugging.sourcemap.SourceMapObjectParser.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!
???? 70
.com/google/debugging/sourcemap/SourceMapObject builder :()Lcom/google/debugging/sourcemap/SourceMapObject$Builder;
4com/google/debugging/sourcemap/SourceMapObjectParser gson Lcom/google/gson/Gson; com/google/gson/JsonObject
com/google/gson/Gson fromJson 7(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; version
get 1(Ljava/lang/String;)Lcom/google/gson/JsonElement;
com/google/gson/JsonElement getAsInt ()I
" # $ % & 6com/google/debugging/sourcemap/SourceMapObject$Builder
setVersion ;(I)Lcom/google/debugging/sourcemap/SourceMapObject$Builder; ( file
* + , getStringOrNull B(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
" . / 0 setFile L(Ljava/lang/String;)Lcom/google/debugging/sourcemap/SourceMapObject$Builder; 2 lineCount
4 5 6 has (Ljava/lang/String;)Z
" 8 9 & setLineCount ; mappings
" = > 0 setMappings @
sourceRoot
" B C 0
setSourceRoot E sections
G H I J 'com/google/common/collect/ImmutableList 3()Lcom/google/common/collect/ImmutableList$Builder;
L M N getAsJsonArray ()Lcom/google/gson/JsonArray;
P Q R S T com/google/gson/JsonArray iterator ()Ljava/util/Iterator; V W X Y Z java/util/Iterator hasNext ()Z V \ ] ^ next ()Ljava/lang/Object;
` a b getAsJsonObject ()Lcom/google/gson/JsonObject;
d e f buildSection O(Lcom/google/gson/JsonObject;)Lcom/google/debugging/sourcemap/SourceMapSection;
h i j k l /com/google/common/collect/ImmutableList$Builder add E(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder;
h n o p build +()Lcom/google/common/collect/ImmutableList;
" r s t setSections J(Ljava/util/List;)Lcom/google/debugging/sourcemap/SourceMapObject$Builder; v sources
x y z getJavaStringArray 2(Lcom/google/gson/JsonElement;)[Ljava/lang/String;
" | } ~
setSources M([Ljava/lang/String;)Lcom/google/debugging/sourcemap/SourceMapObject$Builder; ? sourcesContent
" ? ? ~ setSourcesContent ? names
" ? ? ~ setNames ? java/util/LinkedHashMap
? ? ? ? ()V
? ? ? entrySet ()Ljava/util/Set; ? Q ?
java/util/Set ? java/util/Map$Entry ? ? ? ^ getKey ? java/lang/String ? x_
? ? ? 6
startsWith ? ? ? ^ getValue ? ? ? ? ?
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
? ? ? ? ? java/util/Collections unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;
" ? ? ?
setExtensions I(Ljava/util/Map;)Lcom/google/debugging/sourcemap/SourceMapObject$Builder; ? "com/google/gson/JsonParseException ? 6com/google/debugging/sourcemap/SourceMapParseException ? ? ? makeConcatWithConstants 8(Lcom/google/gson/JsonParseException;)Ljava/lang/String;
? ? ? ? (Ljava/lang/String;)V
" ? o ? 2()Lcom/google/debugging/sourcemap/SourceMapObject; ? offset ? line ? column ? map ? url ? =Invalid map format: section may not have both 'map' and 'url'
? ? ? getAsString ()Ljava/lang/String;
? ? ? ? ? /com/google/debugging/sourcemap/SourceMapSection forURL G(Ljava/lang/String;II)Lcom/google/debugging/sourcemap/SourceMapSection;
? ? ? toString
? ? ? ? forMap ? ;Invalid map format: section must have either 'map' or 'url' ? com/google/gson/JsonNull
P ? ? size
P ? ? (I)Lcom/google/gson/JsonElement;
? ? Z
isJsonNull
? ? ? java/lang/Object
? parse D(Ljava/lang/String;)Lcom/google/debugging/sourcemap/SourceMapObject; Code LineNumberTable LocalVariableTable each Lcom/google/gson/JsonElement; listBuilder 1Lcom/google/common/collect/ImmutableList$Builder; entry Ljava/util/Map$Entry;
sourceMapRoot Lcom/google/gson/JsonObject;
extensions Ljava/util/Map; ex $Lcom/google/gson/JsonParseException; contents Ljava/lang/String; 8Lcom/google/debugging/sourcemap/SourceMapObject$Builder; LocalVariableTypeTable dLcom/google/common/collect/ImmutableList$Builder; FLjava/util/Map$Entry; 5Ljava/util/Map;
StackMapTable
Exceptions MethodParameters section I object key RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; item i element array Lcom/google/gson/JsonArray; len result [Ljava/lang/String; this 6Lcom/google/debugging/sourcemap/SourceMapObjectParser;
SourceFile SourceMapObjectParser.java BootstrapMethods!
"#$ ?% $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;' JSON parse exception: InnerClasses Builder Entry, %java/lang/invoke/MethodHandles$Lookup. java/lang/invoke/MethodHandles Lookup ! ? ? ? ? ? E? L? *
? ?
M+,? ? ? !W+,'? )? -W+,1? 3? ,1? ? ? ? 7W+,:? )?