com.google.javascript.jscomp.SourceMapResolver.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 ? .com/google/javascript/jscomp/SourceMapResolver data:
java/lang/String
startsWith (Ljava/lang/String;)Z
extractBase64String &(Ljava/lang/String;)Ljava/lang/String;
'com/google/javascript/jscomp/SourceFile getName ()Ljava/lang/String; makeConcatWithConstants 7com/google/javascript/rhino/StaticSourceFile$SourceKind NON_CODE 9Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;
! fromCode ?(Ljava/lang/String;Ljava/lang/String;Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)Lcom/google/javascript/jscomp/SourceFile;
# $
isAbsolute
& ' ( getRelativePath O(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/SourceFile; * base64,
, - . contains (Ljava/lang/CharSequence;)Z
0 1 2 indexOf (Ljava/lang/String;)I
4 5 6 length ()I
8 9 : substring (II)Ljava/lang/String; < = > ACCEPTED_MEDIA_TYPES (Lcom/google/common/collect/ImmutableSet;
@ A B - C &com/google/common/collect/ImmutableSet (Ljava/lang/Object;)Z
E F G H I !com/google/common/io/BaseEncoding base64 %()Lcom/google/common/io/BaseEncoding;
K 9 L (I)Ljava/lang/String;
E N O P decode (Ljava/lang/CharSequence;)[B R S T U V !java/nio/charset/StandardCharsets UTF_8 Ljava/nio/charset/Charset;
X Y Z ([BLjava/nio/charset/Charset;)V \ java/net/URI
[ ^ Y _ (Ljava/lang/String;)V
[ a $ b ()Z d / f java/net/URISyntaxException h java/lang/RuntimeException
g k Y l *(Ljava/lang/String;Ljava/lang/Throwable;)V
n o p builder 3()Lcom/google/javascript/jscomp/SourceFile$Builder;
r s t u v java/nio/file/FileSystems
getDefault ()Ljava/nio/file/FileSystem;
x y z { | java/nio/file/FileSystem getPath ;(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path; ~ ? ? ? java/nio/file/Path resolveSibling ((Ljava/lang/String;)Ljava/nio/file/Path; ~ ? ? ? normalize ()Ljava/nio/file/Path;
? ? ? ? ? /com/google/javascript/jscomp/SourceFile$Builder withPath G(Ljava/nio/file/Path;)Lcom/google/javascript/jscomp/SourceFile$Builder;
? ? ? ? withKind l(Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)Lcom/google/javascript/jscomp/SourceFile$Builder;
? ? ? ? build +()Lcom/google/javascript/jscomp/SourceFile;
? ? ? Y ? java/lang/Object ()V ? application/json;charset=utf-8; ? application/json;
@ ? ? ? of N(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; BASE64_URL_PREFIX Ljava/lang/String;
ConstantValue BASE64_START Signature ; extractSourceMap g(Lcom/google/javascript/jscomp/SourceFile;Ljava/lang/String;Z)Lcom/google/javascript/jscomp/SourceFile; Code LineNumberTable LocalVariableTable extractedString jsFile )Lcom/google/javascript/jscomp/SourceFile; sourceMapURL parseInlineSourceMaps Z
StackMapTable MethodParameters RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; data [B base64StartIndex I mediaType url e Ljava/net/URISyntaxException; baseFilePath relativePath !addBase64PrefixToEncodedSourceMap encoded this 0Lcom/google/javascript/jscomp/SourceMapResolver;
SourceFile SourceMapResolver.java RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; value Accesses the file system 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; ? .inline.map ? Sourcemap url was invalid: ? data:application/json;base64, InnerClasses ? ,com/google/javascript/rhino/StaticSourceFile
SourceKind Builder ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup 1 ? ? ? ? ? ? ? ) = > ? ? ? ? ? ? ;? (+? ? +? N-? *? ? -? ? ??+? "? ?*? +? %? ? *
1
2 3 4 5 # 4 ' 7 ) ; 0 <