com.google.javascript.jscomp.lint.CheckEs6ModuleFileStructure.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 ?
Ccom/google/javascript/jscomp/NodeTraversal$AbstractPreOrderCallback ()V java/util/TreeSet
=com/google/javascript/jscomp/lint/CheckEs6ModuleFileStructure orderedStatements Ljava/util/TreeSet; compiler /Lcom/google/javascript/jscomp/AbstractCompiler; ?com/google/javascript/jscomp/lint/CheckEs6ModuleFileStructure$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
com/google/javascript/rhino/Node getToken %()Lcom/google/javascript/rhino/Token;
! " # $ % !com/google/javascript/rhino/Token ordinal ()I ' ( )
ES6_MODULE 'Lcom/google/javascript/rhino/Node$Prop;
+ , - getBooleanProp *(Lcom/google/javascript/rhino/Node$Prop;)Z
/ 0 clear
2 3 4 visitImport Q(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
6 7 8 visitExprResult s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
: ; 8 visitDeclaration
= > ? isModuleBody ()Z A B C D E Ncom/google/javascript/jscomp/lint/CheckEs6ModuleFileStructure$OrderedStatement OTHER PLcom/google/javascript/jscomp/lint/CheckEs6ModuleFileStructure$OrderedStatement;
G H I
checkOrder ?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/lint/CheckEs6ModuleFileStructure$OrderedStatement;)V
K L M add (Ljava/lang/Object;)Z
O P Q tailSet -(Ljava/lang/Object;Z)Ljava/util/NavigableSet; S T U V ?
java/util/Set isEmpty X Y Z MUST_COME_BEFORE -Lcom/google/javascript/jscomp/DiagnosticType; \ java/lang/String
A ^ _ ` toString ()Ljava/lang/String; b ,
d e f g h com/google/common/base/Joiner on 3(Ljava/lang/String;)Lcom/google/common/base/Joiner;
d j k l join ((Ljava/lang/Iterable;)Ljava/lang/String;
n o p q r *com/google/javascript/jscomp/NodeTraversal report e(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V
t u v
getFirstChild $()Lcom/google/javascript/rhino/Node;
x y ? isCall { | } GOOG_DECLAREMODULEID +Lcom/google/javascript/rhino/QualifiedName;
? ? ? ? )com/google/javascript/rhino/QualifiedName matches %(Lcom/google/javascript/rhino/Node;)Z A ? ? E DECLARE_MODULE_ID ? ? } GOOG_REQUIRE A ? ? E
? ? ? hasOneChild
? ? v getFirstFirstChild A ? ? E IMPORT
n ? ? ? traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V ? "JSC_MUST_COME_BEFORE_IN_ES6_MODULE ? +In ES6 modules, {0} should come before {1}.
? ? ? ? ? +com/google/javascript/jscomp/DiagnosticType warning S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; ? goog.declareModuleId
? ? ? of ?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName; ? goog.require ? )com/google/javascript/jscomp/CompilerPass Signature eLjava/util/TreeSet; 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this ?Lcom/google/javascript/jscomp/lint/CheckEs6ModuleFileStructure; MethodParameters shouldTraverse t ,Lcom/google/javascript/jscomp/NodeTraversal; n "Lcom/google/javascript/rhino/Node; parent
StackMapTable statement
outOfOrder Ljava/util/Set; LocalVariableTypeTable aLjava/util/Set; call
exprResult declaration
importNode process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs root
SourceFile CheckEs6ModuleFileStructure.java NestMembers InnerClasses AbstractPreOrderCallback ? %com/google/javascript/rhino/Node$Prop Prop OrderedStatement ? 3com/google/javascript/jscomp/NodeTraversal$Callback Callback 1 ? Y Z ? ? | } ? } ? ? U *? *? Y? ?
*+? ? ? <