Lines Matching refs:Keywords

334                                          const AdditionalKeywords &Keywords,  in UnwrappedLineParser()  argument
339 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser()
441 if (FormatTok->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
709 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes()
710 Keywords.kw_as)); in calculateBraceTypes()
829 TokenAnnotator Annotator(Style, Keywords); in mightFitOnOneLine()
870 if (Keywords.isVerilogIdentifier(*FormatTok)) in parseBlock()
878 Style.isVerilog() && Keywords.isVerilogHierarchy(*FormatTok); in parseBlock()
881 (Keywords.isVerilogBegin(*FormatTok) || VerilogHierarchy))) && in parseBlock()
1052 const AdditionalKeywords &Keywords) { in isIIFE() argument
1063 if (I->Tok->isNot(Keywords.kw_function)) in isIIFE()
1099 (isGoogScope(*Line) || isIIFE(*Line, Keywords))); in parseChildBlock()
1286 FormatTok->Tok.setIdentifierInfo(Keywords.kw_internal_ident_after_define); in parsePPDefine()
1352 static bool mustBeJSIdent(const AdditionalKeywords &Keywords, in mustBeJSIdent() argument
1358 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async, in mustBeJSIdent()
1359 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
1360 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is, in mustBeJSIdent()
1361 Keywords.kw_let, Keywords.kw_var, tok::kw_const, in mustBeJSIdent()
1362 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements, in mustBeJSIdent()
1363 Keywords.kw_instanceof, Keywords.kw_interface, in mustBeJSIdent()
1364 Keywords.kw_override, Keywords.kw_throws, Keywords.kw_from)); in mustBeJSIdent()
1367 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, in mustBeJSIdentOrValue() argument
1371 mustBeJSIdent(Keywords, FormatTok); in mustBeJSIdentOrValue()
1376 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords, in isJSDeclOrStmt() argument
1379 tok::kw_return, Keywords.kw_yield, in isJSDeclOrStmt()
1387 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally, in isJSDeclOrStmt()
1389 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let, in isJSDeclOrStmt()
1390 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
1392 Keywords.kw_import, tok::kw_export); in isJSDeclOrStmt()
1442 assert(FormatTok->is(Keywords.kw_import) && "'import' expected"); in parseModuleImport()
1498 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous); in readTokenWithJavaScriptASI()
1512 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next); in readTokenWithJavaScriptASI()
1522 isJSDeclOrStmt(Keywords, Next)) { in readTokenWithJavaScriptASI()
1542 if (FormatTok->isOneOf(Keywords.kw_priority, Keywords.kw_unique, in parseStructuralElement()
1543 Keywords.kw_unique0)) { in parseStructuralElement()
1666 if (Keywords.isVerilogHierarchy(*FormatTok)) { in parseStructuralElement()
1701 if (FormatTok->is(Keywords.kw_import) && parseModuleImport()) in parseStructuralElement()
1722 if (FormatTok->is(Keywords.kw_import)) { in parseStructuralElement()
1743 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement()
1744 Keywords.kw_slots, Keywords.kw_qslots)) { in parseStructuralElement()
1775 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1863 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
1864 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS, in parseStructuralElement()
1865 Keywords.kw_CF_CLOSED_ENUM, in parseStructuralElement()
1866 Keywords.kw_NS_CLOSED_ENUM)) { in parseStructuralElement()
1942 Line->Tokens.front().Tok->is(Keywords.kw_synchronized)) { in parseStructuralElement()
1972 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) && in parseStructuralElement()
1988 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_function) && in parseStructuralElement()
1990 Keywords.kw_async)))) { in parseStructuralElement()
1995 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
2004 if (!mustBeJSIdent(Keywords, Next)) { in parseStructuralElement()
2015 if (FormatTok->is(Keywords.kw_table)) { in parseStructuralElement()
2019 if (Keywords.isVerilogBegin(*FormatTok) || in parseStructuralElement()
2020 Keywords.isVerilogHierarchy(*FormatTok)) { in parseStructuralElement()
2027 if (FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
2143 if (FormatTok->is(Keywords.kw_clocking)) { in parseStructuralElement()
2190 tok::kw_protected, Keywords.kw_internal, Keywords.kw_get, in tryToParsePropertyAccessor()
2191 Keywords.kw_init, Keywords.kw_set)) { in tryToParsePropertyAccessor()
2192 if (Tok->isOneOf(Keywords.kw_get, Keywords.kw_init, Keywords.kw_set)) in tryToParsePropertyAccessor()
2244 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_init, in tryToParsePropertyAccessor()
2245 Keywords.kw_set) && in tryToParsePropertyAccessor()
2390 assert(FormatTok->is(Keywords.kw_function) || in tryToParseJSFunction()
2391 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)); in tryToParseJSFunction()
2392 if (FormatTok->is(Keywords.kw_async)) in tryToParseJSFunction()
2469 if (FormatTok->is(Keywords.kw_function) || in parseBracedList()
2470 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) { in parseBracedList()
2595 (FormatTok->is(Keywords.kw_function) || in parseParens()
2596 FormatTok->startsSequence(Keywords.kw_async, in parseParens()
2597 Keywords.kw_function))) { in parseParens()
2759 return Style.isVerilog() ? Keywords.isVerilogBegin(Tok) in isBlockBegin()
2953 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except, in parseTryCatch()
2956 FormatTok->is(Keywords.kw_finally)) || in parseTryCatch()
3123 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_await)) in parseForOrWhileLoop()
3282 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots)) in parseAccessSpecifier()
3863 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) { in parseRecord()
3916 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) { in parseRecord()
4111 bool IsImport = FormatTok->is(Keywords.kw_import); in parseJavaScriptEs6ImportExport()
4122 if (FormatTok->is(Keywords.kw_async)) in parseJavaScriptEs6ImportExport()
4124 if (FormatTok->is(Keywords.kw_function)) { in parseJavaScriptEs6ImportExport()
4170 Keywords.isVerilogIdentifier(*FormatTok)) { in parseVerilogHierarchyIdentifier()
4203 if (FormatTok->is(Keywords.kw_clocking)) { in parseVerilogHierarchyHeader()
4205 if (Keywords.isVerilogIdentifier(*FormatTok)) in parseVerilogHierarchyHeader()
4210 } else if (FormatTok->isOneOf(tok::kw_case, Keywords.kw_casex, in parseVerilogHierarchyHeader()
4211 Keywords.kw_casez, Keywords.kw_randcase, in parseVerilogHierarchyHeader()
4212 Keywords.kw_randsequence)) { in parseVerilogHierarchyHeader()
4220 if (FormatTok->isOneOf(Keywords.kw_inside, Keywords.kw_matches)) in parseVerilogHierarchyHeader()
4231 if (Prev && Keywords.isVerilogIdentifier(*Prev)) in parseVerilogHierarchyHeader()
4234 } else if (Keywords.isVerilogIdentifier(*FormatTok) || in parseVerilogHierarchyHeader()
4235 FormatTok->isOneOf(Keywords.kw_automatic, tok::kw_static)) { in parseVerilogHierarchyHeader()
4248 while (FormatTok->is(Keywords.kw_import)) { in parseVerilogHierarchyHeader()
4257 if (FormatTok->is(Keywords.kw_verilogHash)) { in parseVerilogHierarchyHeader()
4269 if (FormatTok->is(Keywords.kw_extends)) { in parseVerilogHierarchyHeader()
4276 if (FormatTok->is(Keywords.kw_implements)) { in parseVerilogHierarchyHeader()
4299 assert(FormatTok->is(Keywords.kw_table)); in parseVerilogTable()
4304 while (!eof() && !Keywords.isVerilogEnd(*FormatTok)) { in parseVerilogTable()
4327 else if (!Style.IndentCaseBlocks && Keywords.isVerilogBegin(*FormatTok)) in parseVerilogCaseLabel()
4525 if (Keywords.isVerilogEnd(*FormatTok)) in nextToken()
4624 Keywords.isVerilogPPDirective(*Tokens->peekNextToken())) && in readToken()