com.google.javascript.jscomp.ManageClosureUnawareCode.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
5com/google/javascript/jscomp/ManageClosureUnawareCode preserveFunctionInjected Z compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
-com/google/javascript/jscomp/AbstractCompiler createAstFactory +()Lcom/google/javascript/jscomp/AstFactory;
astFactory )Lcom/google/javascript/jscomp/AstFactory; isUnwrapping
3(Lcom/google/javascript/jscomp/AbstractCompiler;Z)V " Wcom/google/javascript/jscomp/ManageClosureUnawareCode$UnwrapConcealedClosureUnawareCode
! $ % :(Lcom/google/javascript/jscomp/ManageClosureUnawareCode;)V
' ( ) * + *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V - Scom/google/javascript/jscomp/ManageClosureUnawareCode$ValidateAndWrapGlobalIifeCode
, $ 0 !$jscomp_wrap_closure_unaware_code
2 3 4 5 6 %com/google/javascript/jscomp/NodeUtil createSynthesizedExternsSymbol D(Lcom/google/javascript/jscomp/AbstractCompiler;Ljava/lang/String;)V
8 9 : ; < com/google/javascript/rhino/Node getFirstFirstChild $()Lcom/google/javascript/rhino/Node;
8 > ? @ getChildAtIndex %(I)Lcom/google/javascript/rhino/Node;
B C D toSource 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
F G H I J 'com/google/javascript/jscomp/AstFactory createNameWithUnknownType 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node; L M N O P /com/google/javascript/rhino/jstype/JSTypeNative UNKNOWN_TYPE 1Lcom/google/javascript/rhino/jstype/JSTypeNative; R S T U V 2com/google/javascript/jscomp/colors/StandardColors UNKNOWN +Lcom/google/javascript/jscomp/colors/Color;
F X Y Z type ?(Lcom/google/javascript/rhino/jstype/JSTypeNative;Lcom/google/javascript/jscomp/colors/Color;)Lcom/google/javascript/jscomp/AstFactory$Type;
F \ ] J createString
F _ ` a
createCall ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AstFactory$Type;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
8 c d e
srcrefTree F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
8 g h <
getFirstChild 8 j k l IS_CONSTANT_NAME 'Lcom/google/javascript/rhino/Node$Prop;
8 n o p putBooleanProp +(Lcom/google/javascript/rhino/Node$Prop;Z)V
8 r s t replaceWith %(Lcom/google/javascript/rhino/Node;)V
2 v w x markFunctionsDeleted T(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)V
' z { reportCodeChange } 2JSC_UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_PRESERVE DThis reference to $jscomp_wrap_closure_unaware_code is not expected.
? ? ? ? ? +com/google/javascript/jscomp/DiagnosticType error S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; ? ? ? .UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_PRESERVE -Lcom/google/javascript/jscomp/DiagnosticType; ? .JSC_UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_CODE ? ZThis script does not conform to the expected shape of code annotated with @closureUnaware. ? ? ? *UNEXPECTED_JSCOMPILER_CLOSURE_UNAWARE_CODE ? )com/google/javascript/jscomp/CompilerPass 'JSCOMP_CLOSURE_UNAWARE_CODE_PRESERVE_FN Ljava/lang/String;
ConstantValue Code LineNumberTable LocalVariableTable this 7Lcom/google/javascript/jscomp/ManageClosureUnawareCode; unwrapPhase MethodParameters wrap h(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/ManageClosureUnawareCode; unwrap process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V externs "Lcom/google/javascript/rhino/Node; root
StackMapTable wrapClosureUnawareCode Q(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V t ,Lcom/google/javascript/jscomp/NodeTraversal; iifeNode codeBlock stringifiedCode wrappedReplacement
SourceFile ManageClosureUnawareCode.java NestMembers InnerClasses !UnwrapConcealedClosureUnawareCode ? 3com/google/javascript/jscomp/NodeTraversal$Callback Callback ValidateAndWrapGlobalIifeCode ? ,com/google/javascript/jscomp/AstFactory$Type Type ? %com/google/javascript/rhino/Node$Prop Prop 0 ? ? ? ? ? ? ? ? / ? n *? *? *+?
*+? ? *? ? ? <