com.google.javascript.jscomp.deps.BrowserWithTransformedPrefixesModuleResolver.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
0com/google/javascript/jscomp/deps/ModuleResolver ?(Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableList;Lcom/google/javascript/jscomp/ErrorHandler;Lcom/google/javascript/jscomp/deps/ModuleLoader$PathEscaper;)V
&com/google/common/collect/ImmutableMap entrySet *()Lcom/google/common/collect/ImmutableSet;
&com/google/common/collect/ImmutableSet stream ()Ljava/util/stream/Stream; apply ()Ljava/util/function/Function; java/util/stream/Stream map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;
applyAsInt $()Ljava/util/function/ToIntFunction; " # $ % & java/util/Comparator comparingInt :(Ljava/util/function/ToIntFunction;)Ljava/util/Comparator; " ( ) * reversed ()Ljava/util/Comparator; " - . /
thenComparing 5(Ljava/util/function/Function;)Ljava/util/Comparator; 1 2 3 sorted 1(Ljava/util/Comparator;)Ljava/util/stream/Stream;
5 6 7 toImmutableSet ()Ljava/util/stream/Collector; 9 : ; collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; = > ? @ A Ncom/google/javascript/jscomp/deps/BrowserWithTransformedPrefixesModuleResolver prefixReplacements (Lcom/google/common/collect/ImmutableSet; C 2 E ,
G H I J K java/util/stream/Collectors joining 6(Ljava/lang/CharSequence;)Ljava/util/stream/Collector; M java/lang/String = O P Q expectedPrefixes Ljava/lang/String;
S T U iterator 2()Lcom/google/common/collect/UnmodifiableIterator; W X Y Z [ java/util/Iterator hasNext ()Z W ] ^ _ next ()Ljava/lang/Object; a `com/google/javascript/jscomp/deps/BrowserWithTransformedPrefixesModuleResolver$PrefixReplacement
` c d e prefix ()Ljava/lang/String;
L g h i
startsWith (Ljava/lang/String;)Z
` k l e replacement
L n o p length ()I
L r s t substring (I)Ljava/lang/String; v w x makeConcatWithConstants 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
z { | } i .com/google/javascript/jscomp/deps/ModuleLoader isAmbiguousIdentifier = ? ? errorHandler +Lcom/google/javascript/jscomp/ErrorHandler; ? ? ? ? ? 'com/google/javascript/jscomp/CheckLevel WARNING )Lcom/google/javascript/jscomp/CheckLevel; = ? ? ? INVALID_AMBIGUOUS_PATH -Lcom/google/javascript/jscomp/DiagnosticType;
? ? ? ? ? $com/google/javascript/jscomp/JSError make |(Ljava/lang/String;IILcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError; ? ? ? ? ? )com/google/javascript/jscomp/ErrorHandler report R(Lcom/google/javascript/jscomp/CheckLevel;Lcom/google/javascript/jscomp/JSError;)V
= ? ? x locate z ? ? ? LOAD_WARNING
z ? ? i isRelativeIdentifier
? ? x resolveModuleAsPath = ? ? ? moduleRootPaths )Lcom/google/common/collect/ImmutableList;
z ? ? ? normalize :(Ljava/lang/String;Ljava/lang/Iterable;)Ljava/lang/String; ? ? ? ? _ java/util/Map$Entry getKey ? ? ? _ getValue
` ? ? ? of ?(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/deps/BrowserWithTransformedPrefixesModuleResolver$PrefixReplacement; ? JSC_INVALID_AMBIGUOUS_PATH ? ^The path "{0}" is invalid. Expected any of the following prefixes for non-relative paths: {1}.
? ? ? ? ? +com/google/javascript/jscomp/DiagnosticType error S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; Signature ?Lcom/google/common/collect/ImmutableSet; ?(Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableList;Lcom/google/javascript/jscomp/ErrorHandler;Lcom/google/javascript/jscomp/deps/ModuleLoader$PathEscaper;Lcom/google/common/collect/ImmutableMap;)V Code LineNumberTable LocalVariableTable this PLcom/google/javascript/jscomp/deps/BrowserWithTransformedPrefixesModuleResolver; modulePaths pathEscaper