Lines Matching refs:Keywords

221                                          const AdditionalKeywords &Keywords,  in UnwrappedLineParser()  argument
226 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser()
454 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes()
455 Keywords.kw_as)) || in calculateBraceTypes()
609 const AdditionalKeywords &Keywords) { in isIIFE() argument
620 if (I->Tok->isNot(Keywords.kw_function)) in isIIFE()
644 (isGoogScope(*Line) || isIIFE(*Line, Keywords))); in parseChildBlock()
878 static bool mustBeJSIdent(const AdditionalKeywords &Keywords, in mustBeJSIdent() argument
884 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async, in mustBeJSIdent()
885 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
886 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is, in mustBeJSIdent()
887 Keywords.kw_let, Keywords.kw_var, tok::kw_const, in mustBeJSIdent()
888 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements, in mustBeJSIdent()
889 Keywords.kw_instanceof, Keywords.kw_interface, Keywords.kw_throws, in mustBeJSIdent()
890 Keywords.kw_from)); in mustBeJSIdent()
893 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, in mustBeJSIdentOrValue() argument
897 mustBeJSIdent(Keywords, FormatTok); in mustBeJSIdentOrValue()
902 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords, in isJSDeclOrStmt() argument
905 tok::kw_return, Keywords.kw_yield, in isJSDeclOrStmt()
913 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally, in isJSDeclOrStmt()
915 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let, in isJSDeclOrStmt()
916 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
918 Keywords.kw_import, tok::kw_export); in isJSDeclOrStmt()
940 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous); in readTokenWithJavaScriptASI()
955 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next); in readTokenWithJavaScriptASI()
964 isJSDeclOrStmt(Keywords, Next)) in readTokenWithJavaScriptASI()
1087 if (FormatTok->is(Keywords.kw_import)) { in parseStructuralElement()
1106 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement()
1107 Keywords.kw_slots, Keywords.kw_qslots)) { in parseStructuralElement()
1134 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1207 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
1208 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS)) in parseStructuralElement()
1297 FormatTok->is(Keywords.kw_function) && in parseStructuralElement()
1299 Keywords.kw_async)))) { in parseStructuralElement()
1305 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1314 if (Next && !mustBeJSIdent(Keywords, Next)) { in parseStructuralElement()
1460 assert(FormatTok->is(Keywords.kw_function) || in tryToParseJSFunction()
1461 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)); in tryToParseJSFunction()
1462 if (FormatTok->is(Keywords.kw_async)) in tryToParseJSFunction()
1521 if (FormatTok->is(Keywords.kw_function) || in parseBracedList()
1522 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) { in parseBracedList()
1645 (FormatTok->is(Keywords.kw_function) || in parseParens()
1646 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function))) in parseParens()
1778 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except, in parseTryCatch()
1782 FormatTok->is(Keywords.kw_finally)) || in parseTryCatch()
1863 FormatTok->is(Keywords.kw_await)) in parseForOrWhileLoop()
1959 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots)) in parseAccessSpecifier()
2105 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) { in parseRecord()
2306 bool IsImport = FormatTok->is(Keywords.kw_import); in parseJavaScriptEs6ImportExport()
2317 if (FormatTok->is(Keywords.kw_async)) in parseJavaScriptEs6ImportExport()
2319 if (FormatTok->is(Keywords.kw_function)) { in parseJavaScriptEs6ImportExport()