All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.parsing.parser.Scanner.class Maven / Gradle / Ivy

Go to download

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()Vjava/util/ArrayList
	
3com/google/javascript/jscomp/parsing/parser/Scanner
currentTokensLjava/util/ArrayList;	
errorReporter@Lcom/google/javascript/jscomp/parsing/parser/util/ErrorReporter;	commentRecorderELcom/google/javascript/jscomp/parsing/parser/Scanner$CommentRecorder;	source8Lcom/google/javascript/jscomp/parsing/parser/SourceFile;=com/google/javascript/jscomp/parsing/parser/LineNumberScanner
 ;(Lcom/google/javascript/jscomp/parsing/parser/SourceFile;)V	"#$lineNumberScanner?Lcom/google/javascript/jscomp/parsing/parser/LineNumberScanner;	&'()*6com/google/javascript/jscomp/parsing/parser/SourceFilecontentsLjava/lang/String;	'
-./01java/lang/Stringlength()I	345contentsLengthI	785index	:;5typeParameterLevel
=>?isEmpty()Z
ABC	peekToken5()Lcom/google/javascript/jscomp/parsing/parser/Token;	EFGHI1com/google/javascript/jscomp/parsing/parser/Tokenlocation>Lcom/google/javascript/jscomp/parsing/parser/util/SourceRange;	KLMNOcom/google/javascript/jscomp/parsing/parser/trees/Comment$TypeSHEBANG@Lcom/google/javascript/jscomp/parsing/parser/trees/Comment$Type;
	?
C(Lcom/google/javascript/jscomp/parsing/parser/trees/Comment$Type;)V?In some cases, '' are treated as a '//' for legacy reasons. Removing this from your code is safe for all browsers currently in use.
?
reportWarning	LINE
-	substring(II)Ljava/lang/String;

recordComment?(Lcom/google/javascript/jscomp/parsing/parser/trees/Comment$Type;Lcom/google/javascript/jscomp/parsing/parser/util/SourceRange;Ljava/lang/String;)VCcom/google/javascript/jscomp/parsing/parser/Scanner$CommentRecorder	 BLOCK
-"#?charAt	%&JSDOC	()	IMPORTANT+unterminated comment
-.skipComments	{01END_OF_FILE
345createTokenm(Lcom/google/javascript/jscomp/parsing/parser/TokenType;I)Lcom/google/javascript/jscomp/parsing/parser/Token;	{78
OPEN_CURLY	{:;
OPEN_PAREN	{=>CLOSE_PAREN	{@AOPEN_SQUARE	{CDCLOSE_SQUARE
FG?isDecimalDigit
IJ?scanNumberPostPeriod	{LMELLIPSIS	{OPPERIOD	{RS
SEMI_COLON	{UVCOMMA	{XYTILDE	{[\QUESTION_QUESTION_EQUAL	{^_QUESTION_QUESTION	{abQUESTION_DOT	{deQUESTION	{ghCOLON	{jkLEFT_SHIFT_EQUAL	{mn
LEFT_SHIFT	{pq
LESS_EQUAL	{st
OPEN_ANGLE	{vwCLOSE_ANGLE	{yzRIGHT_SHIFT_EQUAL	{|}UNSIGNED_RIGHT_SHIFT_EQUAL	{?UNSIGNED_RIGHT_SHIFT	{??RIGHT_SHIFT	{??
GREATER_EQUAL	{??EQUAL_EQUAL_EQUAL	{??EQUAL_EQUAL	{??ARROW	{??EQUAL	{??NOT_EQUAL_EQUAL	{??	NOT_EQUAL	{??BANG	{??
STAR_EQUAL	{??STAR_STAR_EQUAL	{??	STAR_STAR	{??STAR	{??
PERCENT_EQUAL	{??PERCENT	{??CARET_EQUAL	{??CARET	{??SLASH_EQUAL	{??SLASH	{??	PLUS_PLUS	{??
PLUS_EQUAL	{??PLUS	{??MINUS_MINUS	{??MINUS_EQUAL	{??MINUS	{??	AND_EQUAL	{??AND	{??AMPERSAND_EQUAL	{??	AMPERSAND	{??OR_EQUAL	{??OR	{??	BAR_EQUAL	{??BAR	{??POUND
???scanPostZero
???
scanPostDigit
???scanStringLiteral7(IC)Lcom/google/javascript/jscomp/parsing/parser/Token;
???scanTemplateLiteral
???scanIdentifierOrKeyword
??skipDecimalDigits
???scanExponentOfNumericLiteral=(I)Lcom/google/javascript/jscomp/parsing/parser/LiteralToken;	{?BIGINT
?scanFractionalNumericLiteral
?
isBinaryDigit6Binary Integer Literal must contain at least one digit

skipBinaryDigits	{
NUMBER
?isOctalDigit5Octal Integer Literal must contain at least one digit
skipOctalDigits%Invalid octal digit in octal literal.
?peekHexDigit3Hex Integer Literal must contain at least one digit
 
skipHexDigits"3SyntaxError: nonzero BigInt can't have leading zero
E$%x(Lcom/google/javascript/jscomp/parsing/parser/TokenType;Lcom/google/javascript/jscomp/parsing/parser/util/SourceRange;)V
'()processUnicodeEscapes&(Ljava/lang/String;)Ljava/lang/String;+Invalid escape sequence	{-.ERROR
?01?isIdentifierStart3java/lang/Integer(I)Ljava/lang/Integer;
@AB?C4com/google/javascript/jscomp/parsing/parser/KeywordsJ(Ljava/lang/String;)Lcom/google/javascript/jscomp/parsing/parser/Keywords;	@?F;com/google/javascript/jscomp/parsing/parser/IdentifierToken
EHIS(Lcom/google/javascript/jscomp/parsing/parser/util/SourceRange;Ljava/lang/String;)VK\
-MNOcontains(Ljava/lang/CharSequence;)Z
-QRSindexOf(I)I
UV?
isHexDigit
;XYZparseInt(Ljava/lang/String;I)I
-\?^_`makeConcatWithConstants9(Ljava/lang/String;CLjava/lang/String;)Ljava/lang/String;bjava/lang/NumberFormatExceptiond)java/lang/StringIndexOutOfBoundsException
fg?peekStringLiteralChar
ij?skipStringLiteralCharl>com/google/javascript/jscomp/parsing/parser/StringLiteralToken
n?o?(Lcom/google/javascript/jscomp/parsing/parser/util/SourcePosition;)Lcom/google/javascript/jscomp/parsing/parser/util/SourceRange;
kqrT(Ljava/lang/String;Lcom/google/javascript/jscomp/parsing/parser/util/SourceRange;Z)VtUnterminated string literalvUnterminated template literal	{xyNO_SUBSTITUTION_TEMPLATE	{{|
TEMPLATE_HEAD
~?skipTemplateCharactersT()Lcom/google/javascript/jscomp/parsing/parser/Scanner$SkipTemplateCharactersResult;?@com/google/javascript/jscomp/parsing/parser/TemplateLiteralToken
?????Pcom/google/javascript/jscomp/parsing/parser/Scanner$SkipTemplateCharactersResultgetErrorMessage()Ljava/lang/String;
????
getErrorLevelO()Lcom/google/javascript/jscomp/parsing/parser/TemplateLiteralToken$ErrorLevel;
??^?C()Lcom/google/javascript/jscomp/parsing/parser/util/SourcePosition;
???*(Lcom/google/javascript/jscomp/parsing/parser/TokenType;Ljava/lang/String;Ljava/lang/String;Lcom/google/javascript/jscomp/parsing/parser/TemplateLiteralToken$ErrorLevel;Lcom/google/javascript/jscomp/parsing/parser/util/SourcePosition;Lcom/google/javascript/jscomp/parsing/parser/util/SourceRange;)V
???isStringLineTerminator
???skipStringLiteralEscapeSequence
???"createSkipTemplateCharactersResult?(Ljava/lang/String;Lcom/google/javascript/jscomp/parsing/parser/TemplateLiteralToken$ErrorLevel;)Lcom/google/javascript/jscomp/parsing/parser/Scanner$SkipTemplateCharactersResult;
???!skipTemplateLiteralEscapeSequence
????hasError?-Unterminated template literal escape sequence
??skipLineTerminator
???peekOctalDigit	???.?Kcom/google/javascript/jscomp/parsing/parser/TemplateLiteralToken$ErrorLevelMLcom/google/javascript/jscomp/parsing/parser/TemplateLiteralToken$ErrorLevel;
???skipHexDigit?Hex digit expected?Empty unicode escape?4Unnecessary escape: "\%s" is equivalent to just "%s"
?????com/google/common/base/Strings
lenientFormat9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;	????WARNING?4Unnecessary escape: '\%s' is equivalent to just '%s'?+Unterminated string literal escape sequence?-Exponent part must contain at least one digit?Trailing numeric separator
5???digit(CI)I
???valueOfOctalDigit(C)I
???valueOfBinaryDigit
?
???>com/google/javascript/jscomp/parsing/parser/util/ErrorReporter
???
????(Ljava/lang/String;Lcom/google/javascript/jscomp/parsing/parser/TemplateLiteralToken$ErrorLevel;Lcom/google/javascript/jscomp/parsing/parser/util/SourcePosition;)V	SignatureJLjava/util/ArrayList;?(Lcom/google/javascript/jscomp/parsing/parser/util/ErrorReporter;Lcom/google/javascript/jscomp/parsing/parser/Scanner$CommentRecorder;Lcom/google/javascript/jscomp/parsing/parser/SourceFile;I)VCodeLineNumberTableLocalVariableTablethis5Lcom/google/javascript/jscomp/parsing/parser/Scanner;fileMethodParametersgetFile:()Lcom/google/javascript/jscomp/parsing/parser/SourceFile;	getOffset
StackMapTablepositionstartOffset!nextRegularExpressionLiteralToken<()Lcom/google/javascript/jscomp/parsing/parser/LiteralToken;
beginTokennextTemplateLiteralTokenD()Lcom/google/javascript/jscomp/parsing/parser/TemplateLiteralToken;token3Lcom/google/javascript/jscomp/parsing/parser/Token;chCfoundLineTerminatorZ
isStartOfLinerangevalueisBigIntvalueStartIndexcontainsUnicodeEscapebracedUnicodeEscapeunicodeEscapeLenk6Lcom/google/javascript/jscomp/parsing/parser/Keywords;	hexDigits	escapeEndeLjava/lang/RuntimeException;escapeStart	java/lang/RuntimeExceptionRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;c
beginIndex
terminatorstartingPosition+hasUnescapedUnicodeLineOrParagraphSeparatorendType
middleTypeskipTemplateCharactersResultRLcom/google/javascript/jscomp/parsing/parser/Scanner$SkipTemplateCharactersResult;newErrorresultdoubleHexDigitallHexDigitsquadHexDigitnextfirstformat	arguments[Ljava/lang/Object;RuntimeInvisibleAnnotations0Lcom/google/errorprone/annotations/FormatMethod;$RuntimeInvisibleParameterAnnotations0Lcom/google/errorprone/annotations/FormatString;incTypeParameterLeveldecTypeParameterLevelmessage
errorLevel
SourceFileScanner.javaNestMembersBootstrapMethods,
-./_0$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;2InnerClassesCommentRecorder69com/google/javascript/jscomp/parsing/parser/trees/CommentTypeSkipTemplateCharactersResult
ErrorLevel;%java/lang/invoke/MethodHandles$Lookup=java/lang/invoke/MethodHandlesLookup!	#$)*45??85;5N???L*?*?Y?	?
*+?*,?*-?*?Y*???!*-?%?+*-?%?,?2*?6*?9??.5,6789-<5=@>F?K@?4L??LLL?LT5??T???/*???G????1?T*?
?????	???h?*??<*????*????#?-?/+<Z*???'*!/*???*????g*??!?]*??-?S*??-?I*??*????;*??-?1*??>?'*??*???*?6?*??!?*?????VABC<E\G`HbJfKhNkR?S?T?U?\?]?^?_?c?d?e?k????????
?<'!?:*??
??
os?????6*????
vw????
??B*?6=*???*???ƚ*?qW???*?!*?6?cN*?+*?6?:*+-???z{|~+9?A??4B??B?=?5+?I9	?*?????Y
*?+,-???
???*
??
?
?I
?*?
?????b?*?6<*?qW*?qW*???*??*?
*??/?*?qW???*???j*?qW*?qW?M*?6d?,*?+`?!*?
?$M?*?+`?!!??'M*?!*?6?cN*?+*?6?:*,-??**?????R??
??)?1?8?=?B?F?P?_?f?u?y????????????4FV???I??*?????5???4?%
?C??=*?,*?6<*???*?/?2?*?q=?!~?
?V>
???????n?wx???v???*?6?2?*???2?*?9?2?*?<?2?*???2?*?B?2?*???E?	*?H?*.?ә *??.?*?qW*?qW*?K?2?*?N?2?*?Q?2?*?T?2?*?W?2?*??ә(*?qW*=?ә*?qW*?Z?2?*?]?2?*.?ә*???E?*?qW*?`?2?*?c?2?*?f?2?*???M<=?*?qW*=?ә*?qW*?i?2?*?l?2?*?qW*?o?2?*?r?2?*?9?*?u?2?*????=|>*?qW*???N=>)*?qW*?x?2?*?qW*=?ә*?qW*?{?2?*?~?2?*???2?*?qW*???2?*?u?2?*???L=>>*?qW*=?ә*?qW*???2?*???2?*?qW*???2?*???2?*=?ә(*?qW*=?ә*?qW*???2?*???2?*???2?*=?ә*?qW*???2?**?ә(*?qW*=?ә*?qW*???2?*???2?*???2?*=?ә*?qW*???2?*???2?*=?ә*?qW*???2?*???2?*=?ә*?qW*???2?*???2?*???7+=)*?qW*???2?*?qW*???2?*???2?*???7-=)*?qW*???2?*?qW*???2?*???2?*???N&=@*?qW*=?ә*?qW*???2?*???2?*?qW*???2?*???2?*???O=A|*?qW*=?ә*?qW*???2?*???2?*?qW*???2?*???2?*???2?*??*??*???*??*???????	????????????????????????????"?+?4?=?B?K?P?Y?b?k?v?{???????????????????????????? ?%?D?I?R?W?`?e?n?w???????	?
??
??????'0 5!>"G#L%U&Z'c)l,u.~/?0?2?4?5?6?8?:?;?<?>?@?B?CEFHK8M=NFPKQTS]V|X?Y?Z?[?]?_?`?b?e?g?h?i?j?l?noqtx#?)?0?6?? =??	4?5???RJ???%$!
#


$$





J??B
*??*????
???
??
?5??????-*??*n?ә*?qW?xY??*??*?????*?????
???&?'??-??-?5?'???????*????.xC?IIIIIIIIII????????<??=????????????????????????????<??=???????????????????*?qW*????*???*?	*n??=?*?qW?xY?	????*??*?????*?qW*????*???*?*8?Ӛ*9?ә*???*n??=?*?qW?xY?	????*??*?????*?qW*??*???*?*n??=?*?qW?xY?	????*??*?????*???*??*??*.?ә*?qW*??*n?ә*!????xY?*??*?????*?qW?xY??*??*??????xY?*??*???????9?@?E?O?Z?^?e?i?n?r????????????????????????????????????????????"?&?5?:?@?A?G?M?Q?Z?_?c?l?w????????????????????4e(???(??(???????5???@??
nn?nn{?

??
?????{?
??
""?""{?
??45?L?EY+*???#???? ????5?	?????p
2*?6d>\??66??6*??=??? \?{?	?}?M?H\?6\???{?6}???	66*?qW*??=???*?+*?6?:?+?&:?***?6?\*???*?,?2??!6?/?,**?\2?Y?4SY?:S??*?,?2???:		??EY	?D*???#??EY*???G???#??#(LR	U`
cil~?????!?"?#?$?%?+?,?-?.?0?1?-?2567#:?f
2??2?52??+?5????#5???*?^N?&	?,?@?
@?

?:-?8?@?	??
()??*J?L??*\?P<*`?!u??*`?!{?`>*?,??*`?M?0`>*?!?T?	????*?!}??*`?M?,?W?6????*?*?[?]K?M???a*?
?a?c9?a9?c:f?a:f?cg??ag??c???a???c?fB
CEFK+M0P8Q:SFVJWUX[Ze[g]p^sa|b?c?e?h?f?g?i?j?RC*05p)*JO5|????5??*?;?????--??-???
???=?*?\N6*?e?C*??6? (? )??6*?h??kY*??*-?m?p????*???*-s????*?qW?kY*??*-?m?p??Joq	rst3v:w@xEyMwN|Q}Y~h?m?s?x????>7?????
5??{O	x???	Q?"@??	
???g"*???**?\u???*?w?z????????"??"
5??
????	?*?6>*?\:*?}:*???*u???*??:*???j$@`*?qW??Y+??????*?m???*?qW*?qW??Y,??????*?m?????Y+??????*?m????r?????&?-?L?Q?Z?_?d?j?p?q?v?{????????????????????????H??????
5?O?-??*??&Q??%-$)?	???A
*?+*?6?????
??

5?
g??^*???*???*??????????????@?j??T*\?ә*???*?qW???	??????????a*??L*???T*???E$9\$`"+?*??M,???+?????,L???*??{?+?*?qW???+??.???4?6?;?F?K?U?W?_?? ;a??Z?
??,?????*?qW*???*?????*???ƙ	*???*?q<?U$x3UU5UUUUUUUUauuuuuuuUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU3UUU3U3UUU3UUUUUUU3UUU3U3?3U?*???**??????**?????*???*????=?*???????*{?әU*?qW*}?ә*??????>*}?Ӛ??*????>????*??????*?qW?*???*???*???*????>?*????????*??Y?4SY?4S???????*??Y?4SY?4S?????????(?????#?'?)?.?????????????????	??
(-/0QU`b'd*o+?*?.?/?.?4???7?Q????.v??0?f
@??!?@?@??
????{*?qW*???*?????*?????	*???*?q<?(
"q'q0q\q`qbqfqnqrqtqu?vqxs?*???*????=?*?????*{?әW*?qW*}?ә*?????>*}?Ӛ??*????>????*????*?qW?*???*???*???*????>?*?????/??*??Y?4SY?4S?
???"6789;#<'=)@.A?M?O?P?Q?S?U?V?W?X?Y?[?\?]_`b"c$e%fFgJhUjWp`syu?4???7?F?{??.M??.?v@??#?@?@?????O*???*?qW??yz	|}????	??f*?q<
?*
?ә*?qW??????????????a*.?ә*?qW*??*?????	???????5???????}*???dEe*?qW*???#+-*?qW?*???E?*????*????xY?*??*??????2? ?%?D?I?L?V?a?e?h?q?|??}??}?5? #?????C*??<?E?	_?3*?qW_? *???E?*?qW?*????*?????
?

G??x<?9097777777777????8?:??<???8????2*???T??????
V??D?ʛ????????
@?? ??@*??<?T?	_?0*?qW_?*??*?qW?*????*?????
?

??B
?Λ?????
???@??
???s7?407////////0d????05?7???0????C*??<??	_?3*?qW_? *????*?qW?*????*?????
?

??B
?қ????
???@??
???c"?01????  ?"?????st?W*????*?+*Y?6Z`?6?!??%&	(????	???M*??????,??????@???t?0*????0??????^**?6`???*?+*?6`?!??4???T5?L?T????M**??+,????
9
:? ??*?	 !	"????W*?+,-?ֱ?
?
@?*???O*?
? !"???P*?*??+,?ٱ?
D
E? ??*?	 !	"#?9*Y?9`?9??
H
I???$?9*Y?9d?9??
L
M??????L??Y+,*?շ۰?Q? ??%*&??	%&
'()?*+13*4	57@?8
??9@:<>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy