com.google.javascript.jscomp.CheckGlobalThis.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/javascript/jscomp/CheckGlobalThis assignLhsChild "Lcom/google/javascript/rhino/Node; compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
com/google/javascript/rhino/Node
isFunction ()Z
isArrowFunction
%com/google/javascript/jscomp/NodeUtil getBestJSDocInfo K(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
! " # $ %com/google/javascript/rhino/JSDocInfo
isConstructor
! & ' isInterface
! ) * hasThisType
! , -
isOverride
! / 0 1 getType 0()Lcom/google/javascript/rhino/JSTypeExpression;
3 4 5 6 7 ,com/google/javascript/rhino/JSTypeExpression getRoot $()Lcom/google/javascript/rhino/Node;
9 : 7
getFirstChild
< = isThis
? @ A getToken %()Lcom/google/javascript/rhino/Token; C D E F G !com/google/javascript/rhino/Token BLOCK #Lcom/google/javascript/rhino/Token; C I J G SCRIPT C L M G NAME C O P G ASSIGN C R S G
STRING_KEY
U V 7 getParent
X Y Z mayBeObjectLitKey %(Lcom/google/javascript/rhino/Node;)Z
\ ] ^ getJSDocInfo )()Lcom/google/javascript/rhino/JSDocInfo;
! ` a hasLendsName
! c d 1 getLendsName
f g h getString ()Ljava/lang/String; j
.prototype
l m n o p java/lang/String endsWith (Ljava/lang/String;)Z
r s Z isClassStaticBlock
u v isAssign
x y Z isNormalGet
{ | isGetProp ~ prototype
l ? ? ? equals (Ljava/lang/Object;)Z
? ? Z shouldReportThis ? ? ? GLOBAL_THIS -Lcom/google/javascript/jscomp/DiagnosticType;
? ? ? ? ? $com/google/javascript/jscomp/JSError make ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
? ? ? ? ? -com/google/javascript/jscomp/AbstractCompiler report )(Lcom/google/javascript/jscomp/JSError;)V ? JSC_USED_GLOBAL_THIS ? )dangerous use of the global 'this' object
? ? ? ? ? +com/google/javascript/jscomp/DiagnosticType warning S(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType; ? 3com/google/javascript/jscomp/NodeTraversal$Callback RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this .Lcom/google/javascript/jscomp/CheckGlobalThis; MethodParameters shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z thisNode functionNode functionType .Lcom/google/javascript/rhino/JSTypeExpression;
maybeLends 'Lcom/google/javascript/rhino/JSDocInfo; jsDoc pType grandparent llhs lhs t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent
StackMapTable visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V unused
SourceFile CheckGlobalThis.java InnerClasses ? *com/google/javascript/jscomp/NodeTraversal Callback 0 ? ? ? ? ? ? ? O *? *? *+?
? ? J H K L ? ? ? ? ? ? ? ? M,? ? ?,? ? ?,? :? %? ? ? %? ? (? ? +? ?? 9? .:? -? 2:? !? ? ? 8:?
? ;? ?-? >:? B? %? H? ? K? ? N?
? Q? ?-? T:-? W? ,? [:? ? _? ? b? 2? ei? k? ?,? q? ?-? c-? t? \-? 8:,? *? ? I*? ? @? w? 8? z? ? e}? ? ?? 8:? z? ? e}? ? ?? ? ? * U Z [ ` a b % c - d 5 e ; f = i B j I k N l U m b q i r v t x ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+ ?- ?4 ?I ?K ? ? ?
i ? U # ? I / ? ? ? " ? ? ? ? ? ~ ` ? G ? 0 ? 4 ? ? S ? M ? ? M ? ? M ? M ? ?
? * !:? / C? 5? & ? ?
? ? ? ? ? ? ? /,? ;? *,? ?? *?
,? ?? l? ?? ?,*? ? *? ? ? ? ? ! ? ) ? . ? ? * / ? ? / ? ? / ? / ? ? ! ?
? ? ? ? Z ? z +? TM*? ? ?,? ,? w? ? ? ? ? ? ? ? ? ? ? ? ? ? ? @ ? ? ? ? # ??? ?? ?? ? > ? ? ?
? ? ?
© 2015 - 2024 Weber Informatics LLC | Privacy Policy