Lines Matching refs:Keywords
151 const AdditionalKeywords &Keywords, unsigned FirstStartColumn, in UnwrappedLineParser() argument
156 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser()
294 if (FormatTok->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
559 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes()
560 Keywords.kw_as)); in calculateBraceTypes()
705 TokenAnnotator Annotator(Style, Keywords); in mightFitOnOneLine()
747 if (Keywords.isVerilogIdentifier(*FormatTok)) in parseBlock()
755 Style.isVerilog() && Keywords.isVerilogHierarchy(*FormatTok); in parseBlock()
758 (Keywords.isVerilogBegin(*FormatTok) || VerilogHierarchy))) && in parseBlock()
931 const AdditionalKeywords &Keywords) { in isIIFE() argument
942 if (I->Tok->isNot(Keywords.kw_function)) in isIIFE()
977 (isGoogScope(*Line) || isIIFE(*Line, Keywords))); in parseChildBlock()
1164 FormatTok->Tok.setIdentifierInfo(Keywords.kw_internal_ident_after_define); in parsePPDefine()
1241 static bool mustBeJSIdent(const AdditionalKeywords &Keywords, in mustBeJSIdent() argument
1247 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async, in mustBeJSIdent()
1248 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
1249 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is, in mustBeJSIdent()
1250 Keywords.kw_let, Keywords.kw_var, tok::kw_const, in mustBeJSIdent()
1251 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements, in mustBeJSIdent()
1252 Keywords.kw_instanceof, Keywords.kw_interface, in mustBeJSIdent()
1253 Keywords.kw_override, Keywords.kw_throws, Keywords.kw_from)); in mustBeJSIdent()
1256 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, in mustBeJSIdentOrValue() argument
1260 mustBeJSIdent(Keywords, FormatTok); in mustBeJSIdentOrValue()
1265 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords, in isJSDeclOrStmt() argument
1268 tok::kw_return, Keywords.kw_yield, in isJSDeclOrStmt()
1276 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally, in isJSDeclOrStmt()
1278 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let, in isJSDeclOrStmt()
1279 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
1281 Keywords.kw_import, tok::kw_export); in isJSDeclOrStmt()
1331 assert(FormatTok->is(Keywords.kw_import) && "'import' expected"); in parseModuleImport()
1387 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous); in readTokenWithJavaScriptASI()
1401 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next); in readTokenWithJavaScriptASI()
1411 isJSDeclOrStmt(Keywords, Next)) { in readTokenWithJavaScriptASI()
1432 if (Keywords.isVerilogStructuredProcedure(*FormatTok)) { in parseStructuralElement()
1436 if (FormatTok->isOneOf(Keywords.kw_foreach, Keywords.kw_repeat)) { in parseStructuralElement()
1440 if (FormatTok->isOneOf(tok::kw_restrict, Keywords.kw_assert, in parseStructuralElement()
1441 Keywords.kw_assume, Keywords.kw_cover)) { in parseStructuralElement()
1448 if (FormatTok->isOneOf(Keywords.kw_priority, Keywords.kw_unique, in parseStructuralElement()
1449 Keywords.kw_unique0)) { in parseStructuralElement()
1573 if (Keywords.isVerilogHierarchy(*FormatTok)) { in parseStructuralElement()
1608 if (FormatTok->is(Keywords.kw_import) && parseModuleImport()) in parseStructuralElement()
1629 if (FormatTok->is(Keywords.kw_import)) { in parseStructuralElement()
1650 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement()
1651 Keywords.kw_slots, Keywords.kw_qslots)) { in parseStructuralElement()
1699 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1787 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
1788 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS, in parseStructuralElement()
1789 Keywords.kw_CF_CLOSED_ENUM, in parseStructuralElement()
1790 Keywords.kw_NS_CLOSED_ENUM)) { in parseStructuralElement()
1890 Line->Tokens.front().Tok->is(Keywords.kw_synchronized)) { in parseStructuralElement()
1921 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) && in parseStructuralElement()
1937 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_function) && in parseStructuralElement()
1940 Line->Tokens.front().Tok->isNot(Keywords.kw_async)))) { in parseStructuralElement()
1945 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1954 if (!mustBeJSIdent(Keywords, Next)) { in parseStructuralElement()
1965 if (FormatTok->is(Keywords.kw_table)) { in parseStructuralElement()
1969 if (Keywords.isVerilogBegin(*FormatTok) || in parseStructuralElement()
1970 Keywords.isVerilogHierarchy(*FormatTok)) { in parseStructuralElement()
1977 if (!Style.isCpp() && FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
2047 Line->Tokens.begin()->Tok->is(Keywords.kw_defset)) { in parseStructuralElement()
2094 if (FormatTok->is(Keywords.kw_clocking)) { in parseStructuralElement()
2141 tok::kw_protected, Keywords.kw_internal, Keywords.kw_get, in tryToParsePropertyAccessor()
2142 Keywords.kw_init, Keywords.kw_set)) { in tryToParsePropertyAccessor()
2143 if (Tok->isOneOf(Keywords.kw_get, Keywords.kw_init, Keywords.kw_set)) in tryToParsePropertyAccessor()
2195 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_init, in tryToParsePropertyAccessor()
2196 Keywords.kw_set) && in tryToParsePropertyAccessor()
2355 assert(FormatTok->is(Keywords.kw_function)); in tryToParseJSFunction()
2356 if (FormatTok->is(Keywords.kw_async)) in tryToParseJSFunction()
2431 if (FormatTok->is(Keywords.kw_function)) { in parseBracedList()
2586 if (Style.isJavaScript() && (FormatTok->is(Keywords.kw_function))) in parseParens()
2748 return Style.isVerilog() ? Keywords.isVerilogBegin(Tok) in isBlockBegin()
2757 FormatTok->isOneOf(tok::kw_restrict, Keywords.kw_assert, in parseIfThenElse()
2758 Keywords.kw_assume, Keywords.kw_cover))) && in parseIfThenElse()
2764 if (FormatTok->is(Keywords.kw_verilogHash)) { in parseIfThenElse()
2768 } else if (FormatTok->isOneOf(Keywords.kw_final, Keywords.kw_property, in parseIfThenElse()
2769 Keywords.kw_sequence)) { in parseIfThenElse()
2776 while (!eof() && FormatTok->isNot(Keywords.kw_then)) { in parseIfThenElse()
2981 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except, in parseTryCatch()
2984 FormatTok->is(Keywords.kw_finally)) || in parseTryCatch()
3145 FormatTok->isOneOf(Keywords.kw_always, Keywords.kw_always_comb, in parseForOrWhileLoop()
3146 Keywords.kw_always_ff, Keywords.kw_always_latch, in parseForOrWhileLoop()
3147 Keywords.kw_final, Keywords.kw_initial, in parseForOrWhileLoop()
3148 Keywords.kw_foreach, Keywords.kw_forever, in parseForOrWhileLoop()
3149 Keywords.kw_repeat))) && in parseForOrWhileLoop()
3156 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_await)) in parseForOrWhileLoop()
3339 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots)) in parseAccessSpecifier()
3933 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) { in parseRecord()
3985 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) { in parseRecord()
4183 bool IsImport = FormatTok->is(Keywords.kw_import); in parseJavaScriptEs6ImportExport()
4194 if (FormatTok->is(Keywords.kw_async)) in parseJavaScriptEs6ImportExport()
4196 if (FormatTok->is(Keywords.kw_function)) { in parseJavaScriptEs6ImportExport()
4207 !(FormatTok->is(Keywords.kw_type) && in parseJavaScriptEs6ImportExport()
4244 Keywords.isVerilogIdentifier(*FormatTok)) { in parseVerilogHierarchyIdentifier()
4277 if (FormatTok->is(Keywords.kw_clocking)) { in parseVerilogHierarchyHeader()
4279 if (Keywords.isVerilogIdentifier(*FormatTok)) in parseVerilogHierarchyHeader()
4284 } else if (FormatTok->isOneOf(tok::kw_case, Keywords.kw_casex, in parseVerilogHierarchyHeader()
4285 Keywords.kw_casez, Keywords.kw_randcase, in parseVerilogHierarchyHeader()
4286 Keywords.kw_randsequence)) { in parseVerilogHierarchyHeader()
4294 if (FormatTok->isOneOf(Keywords.kw_inside, Keywords.kw_matches)) in parseVerilogHierarchyHeader()
4305 if (Prev && Keywords.isVerilogIdentifier(*Prev)) in parseVerilogHierarchyHeader()
4308 } else if (Keywords.isVerilogIdentifier(*FormatTok) || in parseVerilogHierarchyHeader()
4309 FormatTok->isOneOf(Keywords.kw_automatic, tok::kw_static)) { in parseVerilogHierarchyHeader()
4322 while (FormatTok->is(Keywords.kw_import)) { in parseVerilogHierarchyHeader()
4331 if (FormatTok->is(Keywords.kw_verilogHash)) { in parseVerilogHierarchyHeader()
4346 if (FormatTok->is(Keywords.kw_extends)) { in parseVerilogHierarchyHeader()
4353 if (FormatTok->is(Keywords.kw_implements)) { in parseVerilogHierarchyHeader()
4376 assert(FormatTok->is(Keywords.kw_table)); in parseVerilogTable()
4381 while (!eof() && !Keywords.isVerilogEnd(*FormatTok)) { in parseVerilogTable()
4404 else if (!Style.IndentCaseBlocks && Keywords.isVerilogBegin(*FormatTok)) in parseVerilogCaseLabel()
4648 if (Keywords.isVerilogEnd(*FormatTok)) in nextToken()
4748 Keywords.isVerilogPPDirective(*Tokens->peekNextToken())) && in readToken()