com.google.debugging.sourcemap.SourceMapGeneratorV3.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/util/ArrayList
3com/google/debugging/sourcemap/SourceMapGeneratorV3 mappings Ljava/util/List; java/util/LinkedHashMap
sourceFileMap Ljava/util/LinkedHashMap; sourceFileContentMap originalNameMap lastSourceFile Ljava/lang/String; " # $ lastSourceFileIndex I & +com/google/debugging/sourcemap/FilePosition
% ( ) (II)V + , - offsetPosition -Lcom/google/debugging/sourcemap/FilePosition; / 0 - prefixPosition 2 3
extensions 5 6 7 8 java/util/List clear : ; < lastMapping =Lcom/google/debugging/sourcemap/SourceMapGeneratorV3$Mapping;
6
? @ A B C java/lang/String length ()I
? E F G charAt (I)C
I J K L M $com/google/common/base/Preconditions
checkState (Z)V
% O P C getLine
% R S C getColumn U ;com/google/debugging/sourcemap/SourceMapGeneratorV3$Mapping
T T X Y
sourceFile T [ \ - originalPosition T ^ _ originalName T a b -
startPosition T d e - endPosition g AIncorrect source mappings order, previous : (%s,%s)
new : (%s,%s)
i j k l m java/lang/Integer valueOf (I)Ljava/lang/Integer;
I o L p ^(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V 5 r s t add (Ljava/lang/Object;)Z
v w x put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
z { ) setStartingPosition } 2com/google/debugging/sourcemap/SourceMapConsumerV3
|
| ? ? ? parse (Ljava/lang/String;)V ? Hcom/google/debugging/sourcemap/SourceMapGeneratorV3$ConsumerEntryVisitor
? ? ? 8(Lcom/google/debugging/sourcemap/SourceMapGeneratorV3;)V
| ? ? ?
visitMappings D(Lcom/google/debugging/sourcemap/SourceMapConsumerV3$EntryVisitor;)V
| ? ? ?
getExtensions ()Ljava/util/Map; ? ? ? ? ?
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 ? ? ? ? getKey
? ? t containsKey
? ? ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? getValue ? ? ? ? ? Hcom/google/debugging/sourcemap/SourceMapGeneratorV3$ExtensionMergeAction merge J(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
? ? C prepMappings ? {
? ? ? ? ? java/lang/Appendable append 0(Ljava/lang/CharSequence;)Ljava/lang/Appendable; ? version ? 3
? ? ? appendFirstField C(Ljava/lang/Appendable;Ljava/lang/String;Ljava/lang/CharSequence;)V ? file
? ? ? escapeString &(Ljava/lang/String;)Ljava/lang/String;
? ? ? appendField ? lineCount
? ? l ? (I)Ljava/lang/String; ? ? sourceRootPath
? ? ? ? isEmpty ?
sourceRoot
? ? ? appendFieldStart +(Ljava/lang/Appendable;Ljava/lang/String;)V ? >com/google/debugging/sourcemap/SourceMapGeneratorV3$LineMapper
? ? ? O(Lcom/google/debugging/sourcemap/SourceMapGeneratorV3;Ljava/lang/Appendable;I)V
? ? ? appendLineMappings
? ? ? appendFieldEnd (Ljava/lang/Appendable;)V ? sources ? [
? ? ? addSourceNameMap ? ]
? ? addSourcesContentMap names
? addSymbolNameMap
? keySet
toString ()Ljava/lang/String;
}
x_
?
startsWith (Ljava/lang/String;)Z 6com/google/debugging/sourcemap/SourceMapParseException ? makeConcatWithConstants
?
? remove
!"
addNameMap ((Ljava/lang/Appendable;Ljava/util/Map;)V
$% C size
' ( (I)V*
,-./0 java/util/Collections nCopies %(ILjava/lang/Object;)Ljava/util/List; 5234 addAll (Ljava/util/Collection;)Z
?
i78 C intValue 5:;< set '(ILjava/lang/Object;)Ljava/lang/Object;> sourcesContent@ , 5B ?C (I)Ljava/lang/Object;
EFGH ? com/google/common/base/Strings nullToEmpty
J ?K #com/google/debugging/sourcemap/Util
M ?N ,(Ljava/lang/Appendable;Ljava/lang/String;Z)VP ,
R "T :V Dcom/google/debugging/sourcemap/SourceMapGeneratorV3$MappingTraversal
U ?Y Dcom/google/debugging/sourcemap/SourceMapGeneratorV3$UsedMappingCheck
X
U\]^ traverse G(Lcom/google/debugging/sourcemap/SourceMapGeneratorV3$MappingVisitor;)V 5 ? Tabc used Z Tef $ id
hijkl java/lang/Math max (II)In sectionsp [
r /com/google/debugging/sourcemap/SourceMapSectiont offset
q O
q R
xyz appendOffsetValue (Ljava/lang/Appendable;II)V
q|}~ getSectionType ?()Lcom/google/debugging/sourcemap/SourceMapSection$SectionType; ????? ;com/google/debugging/sourcemap/SourceMapSection$SectionType URL =Lcom/google/debugging/sourcemap/SourceMapSection$SectionType;? url
q?? getSectionValue ???? MAP? map? java/io/IOException? Unexpected section type
??
}?
]? line? column
????? java/util/Objects equals '(Ljava/lang/Object;Ljava/lang/Object;)Z? 1com/google/debugging/sourcemap/SourceMapGenerator UNMAPPED
ConstantValue???? Signature OLjava/util/List; @Ljava/util/LinkedHashMap; ?Ljava/util/LinkedHashMap; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; ?Ljava/util/LinkedHashMap; Code LineNumberTable LocalVariableTable this 5Lcom/google/debugging/sourcemap/SourceMapGeneratorV3; reset validate MethodParameters setWrapperPrefix i prefix
prefixLine prefixIndex
StackMapTable
offsetLine offsetIndex
addMapping ?(Ljava/lang/String;Ljava/lang/String;Lcom/google/debugging/sourcemap/FilePosition;Lcom/google/debugging/sourcemap/FilePosition;Lcom/google/debugging/sourcemap/FilePosition;)V startOffsetPosition endOffsetPosition lastLine
lastColumn nextLine
nextColumn
sourceName
symbolName sourceStartPosition
adjustedStart adjustedEnd mapping addSourcesContent '(Ljava/lang/String;Ljava/lang/String;)V source content mergeMapSection (IILjava/lang/String;)V mapSectionContents section 4Lcom/google/debugging/sourcemap/SourceMapConsumerV3;
Exceptions a(IILjava/lang/String;Lcom/google/debugging/sourcemap/SourceMapGeneratorV3$ExtensionMergeAction;)V extensionKey entry Ljava/util/Map$Entry; mergeAction JLcom/google/debugging/sourcemap/SourceMapGeneratorV3$ExtensionMergeAction; LocalVariableTypeTable ;Ljava/util/Map$Entry; appendTo value objValue Ljava/lang/Object; key out Ljava/lang/Appendable; name maxLine
setSourceRoot path addExtension '(Ljava/lang/String;Ljava/lang/Object;)V object removeExtension hasExtension getExtension &(Ljava/lang/String;)Ljava/lang/Object; index Ljava/lang/Integer;
sourceContent found contents ; $Ljava/util/List; Ljava/util/Map; 6Ljava/util/Map; O(Ljava/lang/Appendable;Ljava/util/Map;)V Ljava/lang/CharSequence; first endPositionLine m appendIndexMapTo ;(Ljava/lang/Appendable;Ljava/lang/String;Ljava/util/List;)V 1Lcom/google/debugging/sourcemap/SourceMapSection; CLjava/util/List; n(Ljava/lang/Appendable;Ljava/lang/String;Ljava/util/List;)V getSourceId (Ljava/lang/String;)I getNameId originalNameIndex
SourceFile SourceMapGeneratorV3.java NestMembers Bcom/google/debugging/sourcemap/SourceMapGeneratorV3$MappingVisitor 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; "Extension '' must start with 'x_' InnerClasses Mapping ConsumerEntryVisitor ?com/google/debugging/sourcemap/SourceMapConsumerV3$EntryVisitor EntryVisitor Entry ExtensionMergeAction
LineMapper MappingTraversal UsedMappingCheck MappingVisitor SectionType# %java/lang/invoke/MethodHandles$Lookup% java/lang/invoke/MethodHandles Lookup 1 ? ? $ ? ? ? ? ? ? ? ? ? ? ? ? # $ ; <