Lines Matching refs:Keywords
317 const AdditionalKeywords &Keywords, in UnwrappedLineParser() argument
322 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser()
424 if (FormatTok->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
688 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes()
689 Keywords.kw_as)); in calculateBraceTypes()
808 TokenAnnotator Annotator(Style, Keywords); in mightFitOnOneLine()
837 if (Keywords.isVerilogIdentifier(*FormatTok)) in parseBlock()
843 (Style.isVerilog() && Keywords.isVerilogBegin(*FormatTok))) && in parseBlock()
994 const AdditionalKeywords &Keywords) { in isIIFE() argument
1005 if (I->Tok->isNot(Keywords.kw_function)) in isIIFE()
1041 (isGoogScope(*Line) || isIIFE(*Line, Keywords))); in parseChildBlock()
1226 FormatTok->Tok.setIdentifierInfo(Keywords.kw_internal_ident_after_define); in parsePPDefine()
1283 static bool mustBeJSIdent(const AdditionalKeywords &Keywords, in mustBeJSIdent() argument
1289 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async, in mustBeJSIdent()
1290 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
1291 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is, in mustBeJSIdent()
1292 Keywords.kw_let, Keywords.kw_var, tok::kw_const, in mustBeJSIdent()
1293 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements, in mustBeJSIdent()
1294 Keywords.kw_instanceof, Keywords.kw_interface, in mustBeJSIdent()
1295 Keywords.kw_override, Keywords.kw_throws, Keywords.kw_from)); in mustBeJSIdent()
1298 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, in mustBeJSIdentOrValue() argument
1302 mustBeJSIdent(Keywords, FormatTok); in mustBeJSIdentOrValue()
1307 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords, in isJSDeclOrStmt() argument
1310 tok::kw_return, Keywords.kw_yield, in isJSDeclOrStmt()
1318 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally, in isJSDeclOrStmt()
1320 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let, in isJSDeclOrStmt()
1321 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
1323 Keywords.kw_import, tok::kw_export); in isJSDeclOrStmt()
1420 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous); in readTokenWithJavaScriptASI()
1434 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next); in readTokenWithJavaScriptASI()
1444 isJSDeclOrStmt(Keywords, Next)) { in readTokenWithJavaScriptASI()
1601 if (FormatTok->is(Keywords.kw_import)) { in parseStructuralElement()
1624 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement()
1625 Keywords.kw_slots, Keywords.kw_qslots)) { in parseStructuralElement()
1656 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1747 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
1748 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS, in parseStructuralElement()
1749 Keywords.kw_CF_CLOSED_ENUM, in parseStructuralElement()
1750 Keywords.kw_NS_CLOSED_ENUM)) { in parseStructuralElement()
1818 Line->Tokens.front().Tok->is(Keywords.kw_synchronized)) { in parseStructuralElement()
1849 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) && in parseStructuralElement()
1865 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_function) && in parseStructuralElement()
1867 Keywords.kw_async)))) { in parseStructuralElement()
1872 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1881 if (!mustBeJSIdent(Keywords, Next)) { in parseStructuralElement()
1891 if (FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
2016 tok::kw_protected, Keywords.kw_internal, Keywords.kw_get, in tryToParsePropertyAccessor()
2017 Keywords.kw_init, Keywords.kw_set)) { in tryToParsePropertyAccessor()
2018 if (Tok->isOneOf(Keywords.kw_get, Keywords.kw_init, Keywords.kw_set)) in tryToParsePropertyAccessor()
2070 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_init, in tryToParsePropertyAccessor()
2071 Keywords.kw_set) && in tryToParsePropertyAccessor()
2213 assert(FormatTok->is(Keywords.kw_function) || in tryToParseJSFunction()
2214 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)); in tryToParseJSFunction()
2215 if (FormatTok->is(Keywords.kw_async)) in tryToParseJSFunction()
2292 if (FormatTok->is(Keywords.kw_function) || in parseBracedList()
2293 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) { in parseBracedList()
2418 (FormatTok->is(Keywords.kw_function) || in parseParens()
2419 FormatTok->startsSequence(Keywords.kw_async, in parseParens()
2420 Keywords.kw_function))) { in parseParens()
2600 if (Keywords.isBlockBegin(*FormatTok, Style)) { in parseIfThenElse()
2633 if (Keywords.isBlockBegin(*FormatTok, Style)) { in parseIfThenElse()
2765 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except, in parseTryCatch()
2768 FormatTok->is(Keywords.kw_finally)) || in parseTryCatch()
2900 if (Keywords.isBlockBegin(*FormatTok, Style)) { in parseLoopBody()
2930 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_await)) in parseForOrWhileLoop()
3089 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots)) in parseAccessSpecifier()
3684 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) { in parseRecord()
3743 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) { in parseRecord()
3938 bool IsImport = FormatTok->is(Keywords.kw_import); in parseJavaScriptEs6ImportExport()
3949 if (FormatTok->is(Keywords.kw_async)) in parseJavaScriptEs6ImportExport()
3951 if (FormatTok->is(Keywords.kw_function)) { in parseJavaScriptEs6ImportExport()
4196 if (Keywords.isVerilogEnd(*FormatTok)) in nextToken()
4295 Keywords.isVerilogPPDirective(*Tokens->peekNextToken())) && in readToken()