com.google.javascript.jscomp.lint.CheckEs6Modules.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/lint/CheckEs6Modules importSpecifiers Ljava/util/Map; compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
com/google/javascript/rhino/Node isModuleBody ()Z
java/util/Map clear ! " # $ 3com/google/javascript/jscomp/lint/CheckEs6Modules$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
& ' ( getToken %()Lcom/google/javascript/rhino/Token;
* + , - . !com/google/javascript/rhino/Token ordinal ()I 0 1 2
ES6_MODULE 'Lcom/google/javascript/rhino/Node$Prop;
4 5 6 getBooleanProp *(Lcom/google/javascript/rhino/Node$Prop;)Z
8 9 : visitImport Q(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
< = : visitExport
? @ A getLastChild $()Lcom/google/javascript/rhino/Node;
C D E getString ()Ljava/lang/String; G H I putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; K L M DUPLICATE_IMPORT -Lcom/google/javascript/jscomp/DiagnosticType; O java/lang/String
Q R . getLineno T U V makeConcatWithConstants (I)Ljava/lang/String;
X Y . getCharno
[ \ ] ^ _ *com/google/javascript/jscomp/NodeTraversal report e(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V a b 2 EXPORT_DEFAULT d e M NO_DEFAULT_EXPORT
[ g h i traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V k JSC_DUPLICATE_IMPORT m 7The module "{0}" has already been imported at {1}, {2}.
o p q r s +com/google/javascript/jscomp/DiagnosticType warning S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; u JSC_DEFAULT_EXPORT w XDo not use the default export. There is no way to force consistent naming when imported. y 3com/google/javascript/jscomp/NodeTraversal$Callback { )com/google/javascript/jscomp/CompilerPass Signature ELjava/util/Map; 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this 3Lcom/google/javascript/jscomp/lint/CheckEs6Modules; MethodParameters visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V t ,Lcom/google/javascript/jscomp/NodeTraversal; n "Lcom/google/javascript/rhino/Node; parent
StackMapTable shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
importNode specifier Ljava/lang/String; duplicateImport export process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs root
SourceFile CheckEs6Modules.java NestMembers BootstrapMethods ?
? ? ? U ? $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; ? InnerClasses ? %com/google/javascript/rhino/Node$Prop Prop Callback ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup 1 x z L M e M | } ~ U *? *? Y? ?
*+? ? ? + ) , - ? ? ? ? ? ? j ,? ? *?
? ? ? 1 2 4 ? * ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? H? ,? %? ).? ; ! ! # + 3?,? /? 3?*+,? 7?*+,? ;?? ? " 8 , ; . = 6 ? <