com.google.javascript.jscomp.RewriteGlobalDeclarationsForTryCatchWrapping.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
+com/google/common/collect/ArrayListMultimap create /()Lcom/google/common/collect/ArrayListMultimap; Icom/google/javascript/jscomp/RewriteGlobalDeclarationsForTryCatchWrapping functions (Lcom/google/common/collect/ListMultimap; java/util/ArrayList
classes Ljava/util/ArrayList; compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
! " # *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
% & ' ( ) #com/google/common/collect/Multimaps asMap 9(Lcom/google/common/collect/ListMultimap;)Ljava/util/Map; + , - . /
java/util/Map entrySet ()Ljava/util/Set; 1 2 3 4 5
java/util/Set iterator ()Ljava/util/Iterator; 7 8 9 : ; java/util/Iterator hasNext ()Z 7 = > ? next ()Ljava/lang/Object; A java/util/Map$Entry @ C D ? getKey F $com/google/javascript/jscomp/JSChunk
H I J K L -com/google/javascript/jscomp/AbstractCompiler getNodeForCodeInsertion J(Lcom/google/javascript/jscomp/JSChunk;)Lcom/google/javascript/rhino/Node; @ N O ? getValue Q java/util/List
S T U V W com/google/common/collect/Lists reverse "(Ljava/util/List;)Ljava/util/List; P Y Z ; isEmpty P 2 ] com/google/javascript/rhino/Node
\ _ ` a getParent $()Lcom/google/javascript/rhino/Node;
\ c d a detach
H f g h reportChangeToEnclosingScope %(Lcom/google/javascript/rhino/Node;)V
\ j k a
getFirstChild
\ m n o getString ()Ljava/lang/String; q
\ s t u setString (Ljava/lang/String;)V
w x y z { com/google/javascript/rhino/IR name 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
w } ~ var h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
\ ? ? ? srcrefTreeIfMissing F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
\ ? ? h addChildToFront
2
w ? ? a empty
\ ? ? h replaceWith
w ? ~ ?
\ ? ? ? getAncestor %(I)Lcom/google/javascript/rhino/Node;
\ ? ? ; isScript
? ? ? ? ? %com/google/javascript/jscomp/NodeUtil isFunctionDeclaration %(Lcom/google/javascript/rhino/Node;)Z
? ? ? getChunk (()Lcom/google/javascript/jscomp/JSChunk; ? ? ? ? ? &com/google/common/collect/ListMultimap put '(Ljava/lang/Object;Ljava/lang/Object;)Z
? ? ? ? isClassDeclaration
? ? ? add (Ljava/lang/Object;)Z
\ ? ? ; isConst
\ ? ? ; isLet ? ? ? ? ? !com/google/javascript/rhino/Token VAR #Lcom/google/javascript/rhino/Token;
\ ? ? ? setToken &(Lcom/google/javascript/rhino/Token;)V ? 3com/google/javascript/jscomp/NodeTraversal$Callback ? )com/google/javascript/jscomp/CompilerPass Signature rLcom/google/common/collect/ListMultimap; 9Ljava/util/ArrayList; 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this KLcom/google/javascript/jscomp/RewriteGlobalDeclarationsForTryCatchWrapping; MethodParameters process G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V parent "Lcom/google/javascript/rhino/Node; nameNode Ljava/lang/String; n
addingRoot fnNodes Ljava/util/List; entry Ljava/util/Map$Entry; originalNameNode externs root LocalVariableTypeTable 4Ljava/util/List; qLjava/util/Map$Entry;>;
StackMapTable shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z t ,Lcom/google/javascript/jscomp/NodeTraversal; grandparent visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
SourceFile 1RewriteGlobalDeclarationsForTryCatchWrapping.java InnerClasses Callback Entry ? ? ? ? ? ? ? ? ` *? *? ?
*? Y? ? *+? ? ? @ = > A B ? ? ? ? ? ? ? *? ,*? *?
? $? * ? 0 N-? 6 ? ?-? < ? @:*? ? B ? E? G:? M ? P? R:? X ? v? [ :? 6 ? Z? < ? \:? ^: ? bW*? ? e? i:
? l:
p? r? v? |? ?? ?*?
? e???*? ? e??M*? ? ?N-? 6 ? >-? < ? \:? i:? ?? ?? ?:? ?? ?*? ? e???? ? j F G / H B I Q J [ K z L ? M ? N ? P ? Q ? R ? S ? T ? U ? V ? X ? Z ? \ ? ] ? ^ _
` a b c ? ?
? A ? ? ? + ? ?
? $ z ? z H ? ? B ? ? ? Q } ? ? / ? ? ? ? &