Lines Matching defs:Keywords
157 const AdditionalKeywords &Keywords, unsigned FirstStartColumn,
163 LangOpts(getFormattingLangOpts(Style)), Keywords(Keywords),
303 if (FormatTok->is(Keywords.kw_where)) {
568 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in,
569 Keywords.kw_as));
712 TokenAnnotator Annotator(Style, Keywords);
754 if (Keywords.isVerilogIdentifier(*FormatTok))
762 Style.isVerilog() && Keywords.isVerilogHierarchy(*FormatTok);
765 (Keywords.isVerilogBegin(*FormatTok) || VerilogHierarchy))) &&
941 const AdditionalKeywords &Keywords) {
952 if (I->Tok->isNot(Keywords.kw_function))
987 (isGoogScope(*Line) || isIIFE(*Line, Keywords)));
1180 FormatTok->Tok.setIdentifierInfo(Keywords.kw_internal_ident_after_define);
1249 static bool mustBeJSIdent(const AdditionalKeywords &Keywords,
1255 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async,
1256 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally,
1257 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is,
1258 Keywords.kw_let, Keywords.kw_var, tok::kw_const,
1259 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements,
1260 Keywords.kw_instanceof, Keywords.kw_interface,
1261 Keywords.kw_override, Keywords.kw_throws, Keywords.kw_from));
1264 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords,
1268 mustBeJSIdent(Keywords, FormatTok);
1273 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords,
1276 tok::kw_return, Keywords.kw_yield,
1284 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally,
1286 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let,
1287 Keywords.kw_async, Keywords.kw_function,
1289 Keywords.kw_import, tok::kw_export);
1339 assert(FormatTok->is(Keywords.kw_import) && "'import' expected");
1395 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous);
1409 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next);
1419 isJSDeclOrStmt(Keywords, Next)) {
1440 if (Keywords.isVerilogStructuredProcedure(*FormatTok)) {
1444 if (FormatTok->isOneOf(Keywords.kw_foreach, Keywords.kw_repeat)) {
1448 if (FormatTok->isOneOf(tok::kw_restrict, Keywords.kw_assert,
1449 Keywords.kw_assume, Keywords.kw_cover)) {
1456 if (FormatTok->isOneOf(Keywords.kw_priority, Keywords.kw_unique,
1457 Keywords.kw_unique0)) {
1593 if (Keywords.isVerilogHierarchy(*FormatTok)) {
1632 if (FormatTok->is(Keywords.kw_import) && parseModuleImport())
1653 if (FormatTok->is(Keywords.kw_import)) {
1673 if (IsCpp && FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals,
1674 Keywords.kw_slots, Keywords.kw_qslots)) {
1730 FormatTok->is(Keywords.kw_interface)) {
1819 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS,
1820 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS,
1821 Keywords.kw_CF_CLOSED_ENUM,
1822 Keywords.kw_NS_CLOSED_ENUM)) {
1921 Line->Tokens.front().Tok->is(Keywords.kw_synchronized)) {
1953 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) &&
1969 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_function) &&
1972 Line->Tokens.front().Tok->isNot(Keywords.kw_async)))) {
1977 FormatTok->is(Keywords.kw_interface)) {
1986 if (!mustBeJSIdent(Keywords, Next)) {
1997 if (FormatTok->is(Keywords.kw_table)) {
2001 if (Keywords.isVerilogBegin(*FormatTok) ||
2002 Keywords.isVerilogHierarchy(*FormatTok)) {
2009 if (!IsCpp && FormatTok->is(Keywords.kw_interface)) {
2081 Line->Tokens.begin()->Tok->is(Keywords.kw_defset)) {
2134 if (FormatTok->is(Keywords.kw_clocking)) {
2187 Tok->isOneOf(Keywords.kw_get, Keywords.kw_init, Keywords.kw_set);
2189 Tok->isOneOf(tok::l_square, tok::semi, Keywords.kw_internal)) {
2244 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_init,
2245 Keywords.kw_set) &&
2406 assert(FormatTok->is(Keywords.kw_function));
2407 if (FormatTok->is(Keywords.kw_async))
2483 if (FormatTok->is(Keywords.kw_function)) {
2665 if (Style.isJavaScript() && (FormatTok->is(Keywords.kw_function)))
2836 return Style.isVerilog() ? Keywords.isVerilogBegin(Tok)
2845 FormatTok->isOneOf(tok::kw_restrict, Keywords.kw_assert,
2846 Keywords.kw_assume, Keywords.kw_cover))) &&
2852 if (FormatTok->is(Keywords.kw_verilogHash)) {
2856 } else if (FormatTok->isOneOf(Keywords.kw_final, Keywords.kw_property,
2857 Keywords.kw_sequence)) {
2864 while (!eof() && FormatTok->isNot(Keywords.kw_then)) {
3074 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except,
3077 FormatTok->is(Keywords.kw_finally)) ||
3244 FormatTok->isOneOf(Keywords.kw_always, Keywords.kw_always_comb,
3245 Keywords.kw_always_ff, Keywords.kw_always_latch,
3246 Keywords.kw_final, Keywords.kw_initial,
3247 Keywords.kw_foreach, Keywords.kw_forever,
3248 Keywords.kw_repeat))) &&
3255 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_await))
3450 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots))
4049 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) {
4092 Prev->isNot(Keywords.kw_final) && tryToParseBracedList();
4136 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) {
4336 bool IsImport = FormatTok->is(Keywords.kw_import);
4347 if (FormatTok->is(Keywords.kw_async))
4349 if (FormatTok->is(Keywords.kw_function)) {
4360 !(FormatTok->is(Keywords.kw_type) &&
4397 Keywords.isVerilogIdentifier(*FormatTok)) {
4430 if (FormatTok->is(Keywords.kw_clocking)) {
4432 if (Keywords.isVerilogIdentifier(*FormatTok))
4437 } else if (FormatTok->isOneOf(tok::kw_case, Keywords.kw_casex,
4438 Keywords.kw_casez, Keywords.kw_randcase,
4439 Keywords.kw_randsequence)) {
4447 if (FormatTok->isOneOf(Keywords.kw_inside, Keywords.kw_matches))
4458 if (Prev && Keywords.isVerilogIdentifier(*Prev))
4461 } else if (Keywords.isVerilogIdentifier(*FormatTok) ||
4463 Keywords.kw_automatic, tok::kw_static)) {
4476 while (FormatTok->is(Keywords.kw_import)) {
4485 if (FormatTok->is(Keywords.kw_verilogHash)) {
4500 if (FormatTok->is(Keywords.kw_extends)) {
4507 if (FormatTok->is(Keywords.kw_implements)) {
4530 assert(FormatTok->is(Keywords.kw_table));
4535 while (!eof() && !Keywords.isVerilogEnd(*FormatTok)) {
4558 else if (!Style.IndentCaseBlocks && Keywords.isVerilogBegin(*FormatTok))
4802 if (Keywords.isVerilogEnd(*FormatTok))
4900 Keywords.isVerilogPPDirective(*Tokens->peekNextToken())) &&