Lines Matching refs:Keywords
201 const AdditionalKeywords &Keywords, in UnwrappedLineParser() argument
205 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr), in UnwrappedLineParser()
367 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in)) || in calculateBraceTypes()
666 static bool mustBeJSIdent(const AdditionalKeywords &Keywords, in mustBeJSIdent() argument
671 !FormatTok->isOneOf(Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, in mustBeJSIdent()
672 Keywords.kw_async, Keywords.kw_await, in mustBeJSIdent()
673 Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
674 Keywords.kw_function, Keywords.kw_import, in mustBeJSIdent()
675 Keywords.kw_is, Keywords.kw_let, Keywords.kw_var, in mustBeJSIdent()
676 Keywords.kw_abstract, Keywords.kw_extends, in mustBeJSIdent()
677 Keywords.kw_implements, Keywords.kw_instanceof, in mustBeJSIdent()
678 Keywords.kw_interface, Keywords.kw_throws)); in mustBeJSIdent()
681 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, in mustBeJSIdentOrValue() argument
683 return FormatTok->Tok.isLiteral() || mustBeJSIdent(Keywords, FormatTok); in mustBeJSIdentOrValue()
688 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords, in isJSDeclOrStmt() argument
691 tok::kw_return, Keywords.kw_yield, in isJSDeclOrStmt()
699 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally, in isJSDeclOrStmt()
701 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let, in isJSDeclOrStmt()
702 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
704 Keywords.kw_import, tok::kw_export); in isJSDeclOrStmt()
726 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous); in readTokenWithJavaScriptASI()
736 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next); in readTokenWithJavaScriptASI()
741 if (PreviousMustBeValue && isJSDeclOrStmt(Keywords, Next)) in readTokenWithJavaScriptASI()
885 if (FormatTok->is(Keywords.kw_import)) { in parseStructuralElement()
903 if (FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement()
904 Keywords.kw_slots, Keywords.kw_qslots)) { in parseStructuralElement()
944 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
945 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS)) in parseStructuralElement()
1029 (FormatTok->is(Keywords.kw_function) || in parseStructuralElement()
1030 FormatTok->startsSequence(Keywords.kw_async, in parseStructuralElement()
1031 Keywords.kw_function)) && in parseStructuralElement()
1038 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1047 if (Next && !mustBeJSIdent(Keywords, Next)) { in parseStructuralElement()
1218 assert(FormatTok->is(Keywords.kw_function) || in tryToParseJSFunction()
1219 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)); in tryToParseJSFunction()
1220 if (FormatTok->is(Keywords.kw_async)) in tryToParseJSFunction()
1273 if (FormatTok->is(Keywords.kw_function) || in parseBracedList()
1274 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) { in parseBracedList()
1372 (FormatTok->is(Keywords.kw_function) || in parseParens()
1373 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function))) in parseParens()
1499 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except, in parseTryCatch()
1503 FormatTok->is(Keywords.kw_finally)) || in parseTryCatch()
1676 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots)) in parseAccessSpecifier()
1938 bool IsImport = FormatTok->is(Keywords.kw_import); in parseJavaScriptEs6ImportExport()
1949 if (FormatTok->is(Keywords.kw_async)) in parseJavaScriptEs6ImportExport()
1951 if (FormatTok->is(Keywords.kw_function)) { in parseJavaScriptEs6ImportExport()