com.google.javascript.jscomp.parsing.JsDocInfoParser.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!
???? 7E 4com/google/javascript/jscomp/parsing/JsDocInfoParser stream 7Lcom/google/javascript/jscomp/parsing/JsDocTokenStream;
5com/google/javascript/jscomp/parsing/JsDocTokenStream getLineno ()I
getCharno
addParserWarning 8(Lcom/google/javascript/rhino/Msg;Ljava/lang/String;II)V
errorReporter +Lcom/google/javascript/rhino/ErrorReporter; java/lang/Object
com/google/javascript/rhino/Msg format '([Ljava/lang/Object;)Ljava/lang/String;
! " #
getSourceName ()Ljava/lang/String; % & ' ( ) )com/google/javascript/rhino/ErrorReporter warning )(Ljava/lang/String;Ljava/lang/String;II)V
+ , &(Lcom/google/javascript/rhino/Msg;II)V
. #
0 1 addTypeWarning 3 4 5 makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String;
7 1 , 9 Missing type declaration.
; < = > ? $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; A B C licenseText Ljava/lang/String;
; E F G
checkState (Z)V I J K fileOverviewJSDocInfo 'Lcom/google/javascript/rhino/JSDocInfo; M N O templateNode "Lcom/google/javascript/rhino/Node;
Q R S T U com/google/javascript/rhino/Node getStaticSourceFile 0()Lcom/google/javascript/rhino/StaticSourceFile;
W X Y ()V [ \ ] NO_UNREAD_TOKEN 1Lcom/google/javascript/jscomp/parsing/JsDocToken; _ ` ] unreadToken
b c d e f +com/google/javascript/jscomp/parsing/Config jsDocParsingMode <()Lcom/google/javascript/jscomp/parsing/Config$JsDocParsing;
h i j k l 8com/google/javascript/jscomp/parsing/Config$JsDocParsing shouldParseDescriptions ()Z
n o p q r %com/google/javascript/rhino/JSDocInfo builder 1()Lcom/google/javascript/rhino/JSDocInfo$Builder; t u v jsdocBuilder /Lcom/google/javascript/rhino/JSDocInfo$Builder;
x y z { r -com/google/javascript/rhino/JSDocInfo$Builder parseDocumentation
x } ~ recordOriginalCommentString (Ljava/lang/String;)V
x ? ? ? recordOriginalCommentPosition (I)V
b ? ? ? annotations *()Lcom/google/common/collect/ImmutableMap; ? ? ? (Lcom/google/common/collect/ImmutableMap;
b ? ? ? suppressionNames *()Lcom/google/common/collect/ImmutableSet; ? ? ? (Lcom/google/common/collect/ImmutableSet;
b ? ? ? closurePrimitiveNames ? ? ?
h ? ? l shouldPreserveWhitespace ? ? ? preserveWhitespace Z ? ? ? jsDocSourceKind FLcom/google/javascript/jscomp/parsing/JsDocInfoParser$JsDocSourceKind;
? ? ? ? ? com/google/javascript/rhino/IR script $()Lcom/google/javascript/rhino/Node;
? ? U
getSourceFile ? ? ? ? # ,com/google/javascript/rhino/StaticSourceFile getName
? ? Y skipEOLs
? ? ? next 3()Lcom/google/javascript/jscomp/parsing/JsDocToken;
? ? ? parseParamTypeExpression U(Lcom/google/javascript/jscomp/parsing/JsDocToken;)Lcom/google/javascript/rhino/Node; ? ? ? ? ] /com/google/javascript/jscomp/parsing/JsDocToken
LEFT_CURLY
? ? ? recordTypeNode ((IILcom/google/javascript/rhino/Node;Z)V
? ? ? createJSTypeExpression R(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSTypeExpression;
x ? ? ?
recordType 1(Lcom/google/javascript/rhino/JSTypeExpression;)Z
x ? ? Y recordInlineType
? ? ? retrieveAndResetParsedJSDocInfo )()Lcom/google/javascript/rhino/JSDocInfo;
x ? ? ? markTypeNode *(Lcom/google/javascript/rhino/Node;IIIIZ)V
? ? ? getParser J(Ljava/lang/String;)Lcom/google/javascript/jscomp/parsing/JsDocInfoParser;
? ? ? parseTopLevelTypeExpression
? ? l parse
? ? ? getFileOverviewJSDocInfo
b ? q ? 7()Lcom/google/javascript/jscomp/parsing/Config$Builder; ? ? ? ? ? 8com/google/javascript/jscomp/parsing/Config$LanguageMode ECMASCRIPT3 :Lcom/google/javascript/jscomp/parsing/Config$LanguageMode;
? ? ? ? ? 3com/google/javascript/jscomp/parsing/Config$Builder setLanguageMode q(Lcom/google/javascript/jscomp/parsing/Config$LanguageMode;)Lcom/google/javascript/jscomp/parsing/Config$Builder; ? ? ? ? ? 6com/google/javascript/jscomp/parsing/Config$StrictMode SLOPPY 8Lcom/google/javascript/jscomp/parsing/Config$StrictMode;
? ? ? ?
setStrictMode o(Lcom/google/javascript/jscomp/parsing/Config$StrictMode;)Lcom/google/javascript/jscomp/parsing/Config$Builder; ?
testPrimitive
&com/google/common/collect/ImmutableSet of <(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
? setClosurePrimitiveNames K(Ljava/lang/Iterable;)Lcom/google/javascript/jscomp/parsing/Config$Builder;
?
build /()Lcom/google/javascript/jscomp/parsing/Config;
X ? Dcom/google/javascript/jscomp/parsing/JsDocInfoParser$JsDocSourceKind NORMAL %
NULL_INSTANCE
X
(Lcom/google/javascript/jscomp/parsing/JsDocTokenStream;Ljava/lang/String;ILcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/Config;Lcom/google/javascript/jscomp/parsing/JsDocInfoParser$JsDocSourceKind;Lcom/google/javascript/rhino/ErrorReporter;)V :com/google/javascript/jscomp/parsing/JsDocInfoParser$State SEARCHING_ANNOTATION