Lines Matching refs:Keywords

159     const AdditionalKeywords &Keywords, unsigned FirstStartColumn,
165 LangOpts(getFormattingLangOpts(Style)), Keywords(Keywords),
305 if (FormatTok->is(Keywords.kw_where)) {
570 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in,
571 Keywords.kw_as));
713 TokenAnnotator Annotator(Style, Keywords);
755 if (Keywords.isVerilogIdentifier(*FormatTok))
763 Style.isVerilog() && Keywords.isVerilogHierarchy(*FormatTok);
766 (Keywords.isVerilogBegin(*FormatTok) || VerilogHierarchy))) &&
942 const AdditionalKeywords &Keywords) {
953 if (I->Tok->isNot(Keywords.kw_function))
988 (isGoogScope(*Line) || isIIFE(*Line, Keywords)));
1175 FormatTok->Tok.setIdentifierInfo(Keywords.kw_internal_ident_after_define);
1245 static bool mustBeJSIdent(const AdditionalKeywords &Keywords,
1251 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async,
1252 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally,
1253 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is,
1254 Keywords.kw_let, Keywords.kw_var, tok::kw_const,
1255 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements,
1256 Keywords.kw_instanceof, Keywords.kw_interface,
1257 Keywords.kw_override, Keywords.kw_throws, Keywords.kw_from));
1260 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords,
1264 mustBeJSIdent(Keywords, FormatTok);
1269 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords,
1272 tok::kw_return, Keywords.kw_yield,
1280 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally,
1282 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let,
1283 Keywords.kw_async, Keywords.kw_function,
1285 Keywords.kw_import, tok::kw_export);
1335 assert(FormatTok->is(Keywords.kw_import) && "'import' expected");
1391 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous);
1405 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next);
1415 isJSDeclOrStmt(Keywords, Next)) {
1436 if (Keywords.isVerilogStructuredProcedure(*FormatTok)) {
1440 if (FormatTok->isOneOf(Keywords.kw_foreach, Keywords.kw_repeat)) {
1444 if (FormatTok->isOneOf(tok::kw_restrict, Keywords.kw_assert,
1445 Keywords.kw_assume, Keywords.kw_cover)) {
1452 if (FormatTok->isOneOf(Keywords.kw_priority, Keywords.kw_unique,
1453 Keywords.kw_unique0)) {
1584 if (Keywords.isVerilogHierarchy(*FormatTok)) {
1619 if (FormatTok->is(Keywords.kw_import) && parseModuleImport())
1640 if (FormatTok->is(Keywords.kw_import)) {
1660 if (IsCpp && FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals,
1661 Keywords.kw_slots, Keywords.kw_qslots)) {
1716 FormatTok->is(Keywords.kw_interface)) {
1805 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS,
1806 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS,
1807 Keywords.kw_CF_CLOSED_ENUM,
1808 Keywords.kw_NS_CLOSED_ENUM)) {
1907 Line->Tokens.front().Tok->is(Keywords.kw_synchronized)) {
1939 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) &&
1955 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_function) &&
1958 Line->Tokens.front().Tok->isNot(Keywords.kw_async)))) {
1963 FormatTok->is(Keywords.kw_interface)) {
1972 if (!mustBeJSIdent(Keywords, Next)) {
1983 if (FormatTok->is(Keywords.kw_table)) {
1987 if (Keywords.isVerilogBegin(*FormatTok) ||
1988 Keywords.isVerilogHierarchy(*FormatTok)) {
1995 if (!IsCpp && FormatTok->is(Keywords.kw_interface)) {
2065 Line->Tokens.begin()->Tok->is(Keywords.kw_defset)) {
2118 if (FormatTok->is(Keywords.kw_clocking)) {
2170 Tok->isOneOf(tok::semi, Keywords.kw_internal, Keywords.kw_get,
2171 Keywords.kw_init, Keywords.kw_set)) {
2172 if (Tok->isOneOf(Keywords.kw_get, Keywords.kw_init, Keywords.kw_set))
2224 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_init,
2225 Keywords.kw_set) &&
2386 assert(FormatTok->is(Keywords.kw_function));
2387 if (FormatTok->is(Keywords.kw_async))
2463 if (FormatTok->is(Keywords.kw_function)) {
2635 if (Style.isJavaScript() && (FormatTok->is(Keywords.kw_function)))
2806 return Style.isVerilog() ? Keywords.isVerilogBegin(Tok)
2815 FormatTok->isOneOf(tok::kw_restrict, Keywords.kw_assert,
2816 Keywords.kw_assume, Keywords.kw_cover))) &&
2822 if (FormatTok->is(Keywords.kw_verilogHash)) {
2826 } else if (FormatTok->isOneOf(Keywords.kw_final, Keywords.kw_property,
2827 Keywords.kw_sequence)) {
2834 while (!eof() && FormatTok->isNot(Keywords.kw_then)) {
3044 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except,
3047 FormatTok->is(Keywords.kw_finally)) ||
3208 FormatTok->isOneOf(Keywords.kw_always, Keywords.kw_always_comb,
3209 Keywords.kw_always_ff, Keywords.kw_always_latch,
3210 Keywords.kw_final, Keywords.kw_initial,
3211 Keywords.kw_foreach, Keywords.kw_forever,
3212 Keywords.kw_repeat))) &&
3219 if (Style.isJavaScript() && FormatTok->is(Keywords.kw_await))
3414 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots))
4013 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) {
4055 Prev->isNot(Keywords.kw_final) && tryToParseBracedList();
4099 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) {
4299 bool IsImport = FormatTok->is(Keywords.kw_import);
4310 if (FormatTok->is(Keywords.kw_async))
4312 if (FormatTok->is(Keywords.kw_function)) {
4323 !(FormatTok->is(Keywords.kw_type) &&
4360 Keywords.isVerilogIdentifier(*FormatTok)) {
4393 if (FormatTok->is(Keywords.kw_clocking)) {
4395 if (Keywords.isVerilogIdentifier(*FormatTok))
4400 } else if (FormatTok->isOneOf(tok::kw_case, Keywords.kw_casex,
4401 Keywords.kw_casez, Keywords.kw_randcase,
4402 Keywords.kw_randsequence)) {
4410 if (FormatTok->isOneOf(Keywords.kw_inside, Keywords.kw_matches))
4421 if (Prev && Keywords.isVerilogIdentifier(*Prev))
4424 } else if (Keywords.isVerilogIdentifier(*FormatTok) ||
4425 FormatTok->isOneOf(Keywords.kw_automatic, tok::kw_static)) {
4438 while (FormatTok->is(Keywords.kw_import)) {
4447 if (FormatTok->is(Keywords.kw_verilogHash)) {
4462 if (FormatTok->is(Keywords.kw_extends)) {
4469 if (FormatTok->is(Keywords.kw_implements)) {
4492 assert(FormatTok->is(Keywords.kw_table));
4497 while (!eof() && !Keywords.isVerilogEnd(*FormatTok)) {
4520 else if (!Style.IndentCaseBlocks && Keywords.isVerilogBegin(*FormatTok))
4764 if (Keywords.isVerilogEnd(*FormatTok))
4863 Keywords.isVerilogPPDirective(*Tokens->peekNextToken())) &&