com.google.javascript.jscomp.InferJSDocInfo.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
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback ()V
+com/google/javascript/jscomp/InferJSDocInfo 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/javascript/jscomp/InferJSDocInfo$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
& ' ( inferJSDocForName G(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V
* + ( "inferJSDocForObjectKeyOrClassField
- . ( inferJSDocForProperty
0 1 2 3 4 %com/google/javascript/jscomp/NodeUtil isNameDeclaration %(Lcom/google/javascript/rhino/Node;)Z
6 7 8 getJSDocInfo )()Lcom/google/javascript/rhino/JSDocInfo;
: ; < getJSType -()Lcom/google/javascript/rhino/jstype/JSType;
> ? @
getFirstChild $()Lcom/google/javascript/rhino/Node;
B C D isQualifiedName ()Z
0 F G 4 isFunctionDeclaration
0 I J 4 isClassDeclaration
L M D isAssign
O P 4 isFirstChildOf
R S @ getNext
U V W dereferenced \(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/jstype/ObjectType;
Y Z [ %shouldAttachJSDocToNominalTypeOrShape ](Lcom/google/javascript/rhino/jstype/ObjectType;Lcom/google/javascript/rhino/jstype/JSType;)Z
] ^ _ getString ()Ljava/lang/String;
a b c #attachJSDocInfoToNominalTypeOrShape k(Lcom/google/javascript/rhino/jstype/ObjectType;Lcom/google/javascript/rhino/JSDocInfo;Ljava/lang/String;)V
e f D isClassMembers
h i @ getParent
k l m n o )com/google/javascript/rhino/jstype/JSType toMaybeFunctionType ^(Lcom/google/javascript/rhino/jstype/JSType;)Lcom/google/javascript/rhino/jstype/FunctionType;
q r D isStaticMember
t u D isMemberFieldDef
w x y z { /com/google/javascript/rhino/jstype/FunctionType getInstanceType 1()Lcom/google/javascript/rhino/jstype/ObjectType;
w } ~ { getPrototype
? ? ? ? ? -com/google/javascript/rhino/jstype/ObjectType hasOwnProperty (Ljava/lang/String;)Z
? ? ? ? getPropertyJSDocInfo ;(Ljava/lang/String;)Lcom/google/javascript/rhino/JSDocInfo;
? ? ? ? setPropertyJSDocInfo <(Ljava/lang/String;Lcom/google/javascript/rhino/JSDocInfo;)V
? ? D isExprResult
? ? ? ? D %com/google/javascript/rhino/JSDocInfo containsDeclaration
? ? ? ? getPropertyType ?(Ljava/lang/String;)Lcom/google/javascript/rhino/jstype/JSType;
? ? _ getQualifiedName
k ? ? { dereference
? 6
? ? ? ? equals (Ljava/lang/Object;)Z
? ? ? D
isConstructor
? ? ? D isInterface
? ? ? isReferenceNameOf D(Lcom/google/javascript/rhino/jstype/ObjectType;Ljava/lang/String;)Z
? ? ? ? setJSDocInfo *(Lcom/google/javascript/rhino/JSDocInfo;)V
? ? ? D
isEnumType
? ? ? ? toMaybeEnumType /()Lcom/google/javascript/rhino/jstype/EnumType;
? ? ? ? ? +com/google/javascript/rhino/jstype/EnumType getElementsType 6()Lcom/google/javascript/rhino/jstype/EnumElementType;
? ? ? D isNativeObjectType
? ? ? D isFunctionType
? ? ? D hasReferenceName
? ? ? _ getReferenceName
? ? ? java/lang/String ? )com/google/javascript/jscomp/CompilerPass 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V Code LineNumberTable LocalVariableTable this -Lcom/google/javascript/jscomp/InferJSDocInfo; MethodParameters process externs "Lcom/google/javascript/rhino/Node; root
StackMapTable visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V t ,Lcom/google/javascript/jscomp/NodeTraversal; n parent nameInfo 'Lcom/google/javascript/rhino/JSDocInfo; value typeDoc aliasedType +Lcom/google/javascript/rhino/jstype/JSType; inferredType objType /Lcom/google/javascript/rhino/jstype/ObjectType;
owningType ctorType 1Lcom/google/javascript/rhino/jstype/FunctionType; propName Ljava/lang/String; rhs lhsType propType type RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; elementType docInfo qName name
SourceFile InferJSDocInfo.java NestMembers InnerClasses AbstractPostOrderCallback 3com/google/javascript/jscomp/NodeTraversal$Callback Callback ?
? ? F
*? *+? ? ? b c d ?
? ?
? ? ( ? s +? *? +*?
,? *? ,*?
? ? h i
k l n ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? J? ,? ? .? > ) 0 0 0 0 0 7*,-? %?*,-? )?*,-? ,?? ? " r 4 u : v ; } A ~ B ? H ? I ? ? * J ? ? J ? ? J ? ? J ? ? ? 4 ?
? ? ? ' ( ? ? ?,? ?,? /? ?+? 5:? ? ,? 5N+? 9:+? =:? ? A? ? 9? :? Y,? E?
,? H? ,? 5N,? 9::? :,? K? 2+,? N? *,? 5N+? 9:+? Q:? A? ? 9? :? ?-? ?? T:? X?
-+? \? `? ? f ? ? ? ? ? ! ? ' ? - ? E ? V ? [ ? a ? g ? v ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3 ? ? - ? ? ! ' ? ? E ? ? ' ! ? ? [ ? ? d ? ? a ? ? ? ? ? { " ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ! ? ? ? ! ? ? ? ! ? ? ? ? ? ? ? ? ? C ?? ! ? k ? @ k?
? / ? k @ k? ? ? k k? ? ? ? ? + ( ? ? ~+? 5N-? ?,? d? >,? g? 9? j:? ?+? p?
:? +? s?
? v:?
? |:? ,? 9? T:? ?+? \:? ? ? ?? -? ?? ? R ? ? ?
? ? ? " ? # ? * ? 1 ? 8 ? B ? I ? L ? U ? Z ? [ ? a ? u ? } ? ? f
. ? ? ? ? ? , ? ? I ? ? ~ ? ? ~ ? ? ~ ? ? y ? ? U ) ? ? a ? ? ? 7 ?
?? w
? ? ? ? ? ?? ! ? ? ? ? . ( ? ? ?,? K? ,+,? N? $,? 5N+? Q:? A? ? 9? :? ,? ?? +? 5N:? ?-?
-? ?? ?+? =? 9? T:? ?+? \:? ? ? ?? -? ?? ?? T:? X?
-+? ?? `? ? R ? ? ? ? - ? 7 ? <