Lines Matching refs:Keywords
226 const AdditionalKeywords &Keywords, in UnwrappedLineParser() argument
231 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser()
333 if (FormatTok->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
507 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes()
508 Keywords.kw_as)) || in calculateBraceTypes()
682 const AdditionalKeywords &Keywords) { in isIIFE() argument
693 if (I->Tok->isNot(Keywords.kw_function)) in isIIFE()
717 (isGoogScope(*Line) || isIIFE(*Line, Keywords))); in parseChildBlock()
952 static bool mustBeJSIdent(const AdditionalKeywords &Keywords, in mustBeJSIdent() argument
958 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async, in mustBeJSIdent()
959 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
960 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is, in mustBeJSIdent()
961 Keywords.kw_let, Keywords.kw_var, tok::kw_const, in mustBeJSIdent()
962 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements, in mustBeJSIdent()
963 Keywords.kw_instanceof, Keywords.kw_interface, Keywords.kw_throws, in mustBeJSIdent()
964 Keywords.kw_from)); in mustBeJSIdent()
967 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, in mustBeJSIdentOrValue() argument
971 mustBeJSIdent(Keywords, FormatTok); in mustBeJSIdentOrValue()
976 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords, in isJSDeclOrStmt() argument
979 tok::kw_return, Keywords.kw_yield, in isJSDeclOrStmt()
987 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally, in isJSDeclOrStmt()
989 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let, in isJSDeclOrStmt()
990 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
992 Keywords.kw_import, tok::kw_export); in isJSDeclOrStmt()
1014 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous); in readTokenWithJavaScriptASI()
1029 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next); in readTokenWithJavaScriptASI()
1038 isJSDeclOrStmt(Keywords, Next)) in readTokenWithJavaScriptASI()
1178 if (FormatTok->is(Keywords.kw_import)) { in parseStructuralElement()
1197 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement()
1198 Keywords.kw_slots, Keywords.kw_qslots)) { in parseStructuralElement()
1229 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1310 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
1311 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS, in parseStructuralElement()
1312 Keywords.kw_CF_CLOSED_ENUM, in parseStructuralElement()
1313 Keywords.kw_NS_CLOSED_ENUM)) in parseStructuralElement()
1389 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) && in parseStructuralElement()
1406 FormatTok->is(Keywords.kw_function) && in parseStructuralElement()
1408 Keywords.kw_async)))) { in parseStructuralElement()
1414 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1423 if (Next && !mustBeJSIdent(Keywords, Next)) { in parseStructuralElement()
1433 if (FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1550 tok::kw_protected, Keywords.kw_internal, Keywords.kw_get, in tryToParsePropertyAccessor()
1551 Keywords.kw_set)) { in tryToParsePropertyAccessor()
1552 if (Tok->isOneOf(Keywords.kw_get, Keywords.kw_set)) in tryToParsePropertyAccessor()
1604 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_set) && in tryToParsePropertyAccessor()
1732 assert(FormatTok->is(Keywords.kw_function) || in tryToParseJSFunction()
1733 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)); in tryToParseJSFunction()
1734 if (FormatTok->is(Keywords.kw_async)) in tryToParseJSFunction()
1805 if (FormatTok->is(Keywords.kw_function) || in parseBracedList()
1806 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) { in parseBracedList()
1936 (FormatTok->is(Keywords.kw_function) || in parseParens()
1937 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function))) in parseParens()
2091 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except, in parseTryCatch()
2095 FormatTok->is(Keywords.kw_finally)) || in parseTryCatch()
2218 FormatTok->is(Keywords.kw_await)) in parseForOrWhileLoop()
2333 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots)) in parseAccessSpecifier()
2664 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) { in parseRecord()
2710 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) { in parseRecord()
2888 bool IsImport = FormatTok->is(Keywords.kw_import); in parseJavaScriptEs6ImportExport()
2899 if (FormatTok->is(Keywords.kw_async)) in parseJavaScriptEs6ImportExport()
2901 if (FormatTok->is(Keywords.kw_function)) { in parseJavaScriptEs6ImportExport()