com.google.javascript.jscomp.ijs.PotentialDeclaration.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/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; java/lang/String 5com/google/javascript/jscomp/ijs/PotentialDeclaration fullyQualifiedName Ljava/lang/String; com/google/javascript/rhino/Node lhs "Lcom/google/javascript/rhino/Node; rhs
! isQualifiedName ()Z
# $ %
checkArgument (ZLjava/lang/Object;)V
' ( ) * + %com/google/javascript/jscomp/NodeUtil getRValueOfLValue F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
- . / 0 1 *com/google/javascript/jscomp/ijs/ClassUtil isThisPropInsideClassWithName %(Lcom/google/javascript/rhino/Node;)Z
- 3 4 5 getFullyQualifiedNameOfThisProp 6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String; 7 Icom/google/javascript/jscomp/ijs/PotentialDeclaration$ThisPropDeclaration
6 9 : Y(Ljava/lang/String;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V < Ecom/google/javascript/jscomp/ijs/PotentialDeclaration$NameDeclaration
> ? @ getQualifiedName ()Ljava/lang/String;
; 9
C D ! isMemberFieldDef
F $ G (Z)V
- I J 5 %getFullyQualifiedNameOfMemberFieldDef L Lcom/google/javascript/jscomp/ijs/PotentialDeclaration$MemberFieldDeclaration
K 9
- O P 1
isClassMethod
- R S 5 getFullyQualifiedNameOfMethod U Gcom/google/javascript/jscomp/ijs/PotentialDeclaration$MethodDeclaration
T W X 7(Ljava/lang/String;Lcom/google/javascript/rhino/Node;)V
Z [ ! isStringKey
] ^ _ getParent $()Lcom/google/javascript/rhino/Node;
a b ! isObjectLit
d e @ getString g h i makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String; k
properties
m n o equals (Ljava/lang/Object;)Z
' q r s getBestJSDocInfo K(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
u v w x ! %com/google/javascript/rhino/JSDocInfo isPolymerBehavior z Zcom/google/javascript/jscomp/ijs/PotentialDeclaration$PolymerBehaviorPropertiesDeclaration
y W } Jcom/google/javascript/jscomp/ijs/PotentialDeclaration$StringKeyDeclaration
| W ? goog.define
' ? ? ? isCallTo 7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Z
? ? ? ? ? Gcom/google/javascript/jscomp/ijs/PotentialDeclaration$DefineDeclaration from m(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ijs/PotentialDeclaration$DefineDeclaration; ? Fcom/google/javascript/jscomp/ijs/PotentialDeclaration$AliasDeclaration
? W
? ? ! isScript
' ? ? + getEnclosingStatement
? ? !
isDetached
? ? _ getRemovableNode
' ? ? ?
deleteNode T(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/AbstractCompiler;)V
? ? _ removeChildren
? ? _ getRhs
? ? ! hasChildren
? ? _
getFirstChild
? ? _ getOnlyChild
? ? ! isStringLit
? ? ? removeStringKeyValue %(Lcom/google/javascript/rhino/Node;)V
? ? ? length ()I
? ? ? truncateStringKeyValue
? ? _ getNext
? ? ? ? ? -com/google/javascript/jscomp/AbstractCompiler reportChangeToEnclosingScope
? ? _ getLhs ? ? ? ? ? 7com/google/javascript/jscomp/ijs/PotentialDeclaration$1 ,$SwitchMap$com$google$javascript$rhino$Token [I
? ? ? getToken %()Lcom/google/javascript/rhino/Token;
? ? ? ? ? !com/google/javascript/rhino/Token ordinal
' ? ? 1 isLhsByDestructuring
' ? ? +
getRootTarget
? ? ! isDestructuringLhs
? ? G
checkState
? ? _ getGrandparent
' ? ? 1 isNameDeclaration
? ? 1 isExportLhs
? ? ? getJsDoc )()Lcom/google/javascript/rhino/JSDocInfo;
u ? ? ! containsDeclaration
? ? 1
isTypedRhs
? ? 1 isConstToBeInferred
? ? ! isConst
u ? ? !
isConstant
? ? *com/google/javascript/jscomp/ijs/JsdocUtil hasAnnotatedType *(Lcom/google/javascript/rhino/JSDocInfo;)Z
' 1 isNamespaceDecl
!
isFunction
! isClass
goog.defineClass GOOG_ABSTRACTMETHOD +Lcom/google/javascript/rhino/QualifiedName;
1 )com/google/javascript/rhino/QualifiedName matches
! isName exports
matchesName (Ljava/lang/String;)Z
!" ! isGetProp $% MODULE_EXPORTS
'( ! isCall *+ GOOG_REQUIRE -. GOOG_REQUIRETYPE 01 GOOG_FORWARDDECLARE3 require
56 1 isQualifiedAliasExpression
89 ! isEmpty ;< GOOG_MODULE_GET
>?@AB com/google/javascript/rhino/IR number %(D)Lcom/google/javascript/rhino/Node;
DE +
srcrefTree
GH ? replaceWith
JKL substring (II)Ljava/lang/String; g
>OPQ string 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;S goog.abstractMethod
UVW of ?(Ljava/lang/String;)Lcom/google/javascript/rhino/QualifiedName;Y goog.require[ goog.requireType] goog.forwardDeclare_ module.exportsa goog.module.get STRING_ENUM_RETAIN_CAP I
ConstantValue
RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; Code LineNumberTable LocalVariableTable this 7Lcom/google/javascript/jscomp/ijs/PotentialDeclaration; MethodParameters fromName [(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/ijs/PotentialDeclaration; name nameNode
StackMapTable fromMemberFieldDef fieldNode
fromMethod functionNode
fromStringKey objLitJsDoc 'Lcom/google/javascript/rhino/JSDocInfo;
stringKeyNode
fromDefine callNode fromAlias getFullyQualifiedName current remove 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V compiler /Lcom/google/javascript/jscomp/AbstractCompiler; statement simplify breakDownDestructure 2(Lcom/google/javascript/jscomp/AbstractCompiler;)Z simplifyEnumValues content value key changed Z isDefiniteDeclaration
rootTarget parent shouldPreserve jsdoc isImportRhs callee isAliasDeclaration G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z n stringKey replacementValue
SourceFile PotentialDeclaration.java NestMembers BootstrapMethods?
??? h? $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;? this.? .. InnerClasses ThisPropDeclaration NameDeclaration MemberFieldDeclaration MethodDeclaration $PolymerBehaviorPropertiesDeclaration StringKeyDeclaration DefineDeclaration AliasDeclaration? %java/lang/invoke/MethodHandles$Lookup? java/lang/invoke/MethodHandles Lookup
bc d e f g + . 1 % < : h x *? *+? ?
? *,? ? ? *-? ? i 4 5 6 7 8j * kl m
f g no h ? 2*? *? "*? &L*? ,? *? 2M? 6Y,*+? 8?? ;Y*? =*+? A? i ; <