com.google.javascript.jscomp.GatherModuleMetadata.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/LinkedHashMap
1com/google/javascript/jscomp/GatherModuleMetadata
modulesByPath Ljava/util/Map; modulesByGoogNamespace compiler /Lcom/google/javascript/jscomp/AbstractCompiler; processCommonJsModules Z moduleResolutionMode ?Lcom/google/javascript/jscomp/deps/ModuleLoader$ResolutionMode; 8com/google/javascript/jscomp/GatherModuleMetadata$Finder
" # 6(Lcom/google/javascript/jscomp/GatherModuleMetadata;)V
% & ' ( ) *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V + 6com/google/javascript/jscomp/modules/ModuleMetadataMap
* - . !(Ljava/util/Map;Ljava/util/Map;)V
0 1 2 3 4 -com/google/javascript/jscomp/AbstractCompiler setModuleMetadataMap ;(Lcom/google/javascript/jscomp/modules/ModuleMetadataMap;)V 6 7 8 DOT_SPLITTER !Lcom/google/common/base/Splitter;
: ; < = > com/google/common/base/Splitter split .(Ljava/lang/CharSequence;)Ljava/lang/Iterable; @ A B C D java/lang/Iterable iterator ()Ljava/util/Iterator; F G H I J java/util/Iterator hasNext ()Z F L M N next ()Ljava/lang/Object; P java/lang/String
O R S J isEmpty
O U V W length ()I
O Y Z [ charAt (I)C
] ^ _ ` a 7com/google/javascript/jscomp/parsing/parser/Identifiers isIdentifierPart (C)Z c d e NAMESPACE_SEGMENT_REGEX Ljava/util/regex/Pattern;
g h i j k java/util/regex/Pattern matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
m n o p J java/util/regex/Matcher matches r JSC_MIXED_MODULE_TYPE t "A file cannot be both {0} and {1}.
v w x y z +com/google/javascript/jscomp/DiagnosticType error S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; | } ~ MIXED_MODULE_TYPE -Lcom/google/javascript/jscomp/DiagnosticType; ? "JSC_INVALID_NAMESPACE_OR_MODULE_ID ? ?Namespace and module ID must be a dot-separated sequence of legal property identifiers and must only contain ASCII, 0-9, $, ., and _. Found ''{0}'' ? ? ~ INVALID_NAMESPACE_OR_MODULE_ID ? "JSC_INVALID_DECLARE_NAMESPACE_CALL ? 8goog.declareModuleId parameter must be a string literal. ? ? ~ INVALID_DECLARE_MODULE_ID_CALL ? /JSC_DECLARE_MODULE_NAMESPACE_OUTSIDE_ES6_MODULE ? ;goog.declareModuleId can only be called within ES6 modules. ? ? ~ $DECLARE_MODULE_ID_OUTSIDE_ES6_MODULE ? %JSC_MULTIPLE_DECLARE_MODULE_NAMESPACE ?