Lines Matching defs:Keywords
127 const AdditionalKeywords &Keywords,
131 Keywords(Keywords), Scopes(Scopes), TemplateDeclarationDepth(0) {
360 (Line.startsWith(Keywords.kw_type, tok::identifier) ||
361 Line.startsWith(tok::kw_export, Keywords.kw_type,
375 (OpeningParen.Previous->is(Keywords.kw_function) ||
377 Keywords.kw_function)))) {
586 if (MightBeObjCForRangeLoop && CurrentToken->is(Keywords.kw_in)) {
659 tok::l_square, Keywords.kw_internal)) {
1185 OpeningBrace.getPreviousNonComment()->isNot(Keywords.kw_apostrophe))) {
1350 if (Keywords.isVerilogEnd(*Tok->Previous) ||
1351 Keywords.isVerilogBegin(*Tok->Previous)) {
1367 if (Line.First->isOneOf(Keywords.kw_module, Keywords.kw_import) ||
1368 Line.First->startsSequence(tok::kw_export, Keywords.kw_module) ||
1369 Line.First->startsSequence(tok::kw_export, Keywords.kw_import)) {
1462 if (CurrentToken && CurrentToken->is(Keywords.kw_then))
1487 if (CurrentToken && CurrentToken->is(Keywords.kw_await))
1531 if (Keywords.isVerilogIdentifier(*Prev) &&
1532 Keywords.isVerilogIdentifier(*PrevPrev)) {
1536 if (Prev->is(Keywords.kw_verilogHash) &&
1537 Keywords.isVerilogIdentifier(*PrevPrev)) {
1541 if (Keywords.isVerilogIdentifier(*Prev) && PrevPrev->is(tok::r_paren))
1544 if (Keywords.isVerilogIdentifier(*Prev) && PrevPrev->is(tok::comma)) {
1739 Line.startsWith(Keywords.kw_assign)) {
1753 if (Style.isVerilog() && Keywords.isVerilogEndOfLabel(*Tok) &&
1759 if (Tok->isOneOf(Keywords.kw___has_include,
1760 Keywords.kw___has_include_next)) {
1763 if (Style.isCSharp() && Tok->is(Keywords.kw_where) && Tok->Next &&
1771 if (Tok->is(Keywords.kw_assert)) {
1774 } else if (Tok->isOneOf(Keywords.kw_def, Keywords.kw_defm) &&
1817 } else if (CurrentToken->is(Keywords.kw_where)) {
1858 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option,
1859 Keywords.kw_region)) {
1861 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_region);
1909 if (Style.isVerilog() && !Keywords.isVerilogPPDirective(*CurrentToken))
1942 } else if (Tok->isOneOf(Keywords.kw___has_include,
1943 Keywords.kw___has_include_next)) {
1969 CurrentToken->is(Keywords.kw_package)) ||
1989 CurrentToken->isOneOf(Keywords.kw_option, Keywords.kw_package)) {
2002 if (Style.isJavaScript() && CurrentToken->is(Keywords.kw_import))
2016 CurrentToken->is(Keywords.kw_from) && CurrentToken->Next &&
2228 (Line.startsWith(Keywords.kw_type, tok::identifier) ||
2229 Line.startsWith(tok::kw_export, Keywords.kw_type,
2266 } else if (Current.isOneOf(TT_LambdaArrow, Keywords.kw_assert)) {
2362 ? Keywords.isJavaScriptIdentifier(
2368 tok::r_brace, tok::kw_false, tok::kw_true, Keywords.kw_type,
2369 Keywords.kw_get, Keywords.kw_init, Keywords.kw_set) ||
2376 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) {
2386 Current.is(Keywords.kw_instanceof)) {
2558 Current.isNot(Keywords.kw_interface)) {
2595 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof,
2596 Keywords.kw_as)) {
2599 if (Style.isJavaScript() && Tok.Previous->is(Keywords.kw_in))
2618 if (Keywords.isTableGenDefinition(*PreviousNotConst))
2756 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case,
2775 if (AfterRParen->is(Keywords.kw_in) && Style.isCSharp())
2782 Keywords.kw_override, Keywords.kw_final) ||
3149 const AdditionalKeywords &Keywords;
3169 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords,
3171 : Style(Style), Keywords(Keywords), Line(Line), Current(Line.First) {}
3344 Current->is(Keywords.kw_instanceof)) {
3348 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) {
3358 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements,
3359 Keywords.kw_throws)) {
3451 if (Tok->is(Keywords.kw_assign))
3475 } else if (Keywords.isVerilogQualifier(*Tok) ||
3476 Keywords.isVerilogIdentifier(*Tok)) {
3482 if (Keywords.isVerilogIdentifier(*Tok))
3492 Keywords.kw_highz0, Keywords.kw_highz1, Keywords.kw_large,
3493 Keywords.kw_medium, Keywords.kw_pull0, Keywords.kw_pull1,
3494 Keywords.kw_small, Keywords.kw_strong0, Keywords.kw_strong1,
3495 Keywords.kw_supply0, Keywords.kw_supply1, Keywords.kw_weak0,
3496 Keywords.kw_weak1)) {
3506 } else if (Tok->is(Keywords.kw_verilogHash)) {
3522 if (Tok && (Tok->is(tok::hash) || Keywords.isVerilogIdentifier(*Tok)))
3568 const AdditionalKeywords &Keywords;
3695 AnnotatingParser Parser(Style, Line, Keywords, ScopeStack);
3724 ExpressionParser ExprParser(Style, Keywords, Line);
4226 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws))
4228 if (Right.is(Keywords.kw_implements))
4233 if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma))
4457 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java)
4623 if (Right.isOneOf(Keywords.kw_override, Keywords.kw_final, tok::kw_noexcept,
4719 if (Style.isCSharp() && Left.is(Keywords.kw_is) && Right.is(tok::l_square))
4835 if (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch)) {
4933 if (Keywords.isWordLike(Right, IsVerilog) &&
4934 Keywords.isWordLike(Left, IsVerilog)) {
4955 if (Left.is(Keywords.kw_import) && Right.isOneOf(tok::less, tok::ellipsis))
4958 if (Left.isOneOf(Keywords.kw_module, Keywords.kw_import) &&
4975 Line.First->is(Keywords.kw_import)) {
5002 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required,
5003 Keywords.kw_repeated, Keywords.kw_extend)) {
5007 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) {
5083 if (Left.is(Keywords.kw_var) && Right.is(tok::l_paren))
5088 if (Left.isOneOf(tok::kw_using, Keywords.kw_async, Keywords.kw_when,
5089 Keywords.kw_lock)) {
5099 Keywords.kw_internal, Keywords.kw_abstract,
5100 Keywords.kw_sealed, Keywords.kw_override,
5101 Keywords.kw_async, Keywords.kw_unsafe)) &&
5109 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && BeforeLeft &&
5113 if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) &&
5127 if (Keywords.isJavaScriptIdentifier(Left,
5133 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) {
5137 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield,
5138 Keywords.kw_extends, Keywords.kw_implements)) {
5152 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof,
5158 if (Left.endsSequence(tok::kw_const, Keywords.kw_as))
5160 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in,
5165 (Left.is(Keywords.kw_of) && BeforeLeft &&
5171 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && BeforeLeft &&
5175 if (Left.is(Keywords.kw_as) &&
5183 if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace))
5190 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) {
5197 Keywords.kw_implements, Keywords.kw_extends)) {
5206 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) {
5218 if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren)) {
5223 Left.isOneOf(tok::kw_static, Keywords.kw_final, Keywords.kw_abstract,
5224 Keywords.kw_native)) &&
5242 Left.isOneOf(Keywords.kw_verilogHash, Keywords.kw_verilogHashHash)) {
5247 (Left.endsSequence(tok::numeric_constant, Keywords.kw_verilogHash) ||
5249 Keywords.kw_verilogHashHash) ||
5256 if (Left.is(Keywords.kw_apostrophe) ||
5270 Left.isOneOf(TT_VerilogDimensionedTypeName, Keywords.kw_function)) {
5274 if (Right.isOneOf(tok::period, Keywords.kw_apostrophe) &&
5275 Keywords.isVerilogIdentifier(Left) && Left.getPreviousNonComment() &&
5276 Left.getPreviousNonComment()->is(Keywords.kw_tagged)) {
5282 if ((Right.is(Keywords.kw_apostrophe) ||
5284 !(Left.isOneOf(Keywords.kw_assign, Keywords.kw_unique) ||
5285 Keywords.isVerilogWordOperator(Left)) &&
5288 Keywords.isWordLike(Left))) {
5344 if (Keywords.isTableGenDefinition(Left))
5594 Right.is(Keywords.kw_internal))) {
5610 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export,
5614 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) {
5672 (Left.is(tok::r_paren) && Keywords.isVerilogIdentifier(Right) &&
5679 if (!Keywords.isVerilogBegin(Right) && Keywords.isVerilogEndOfLabel(Left))
5864 FirstNonComment && (FirstNonComment->is(Keywords.kw_internal) ||
5882 FirstNonComment->Next->is(Keywords.kw_interface)) ||
5883 Line.startsWith(Keywords.kw_interface))) {
6040 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
6041 Keywords.kw_implements)) {
6044 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
6045 Keywords.kw_implements)) {
6053 tok::kw_return, Keywords.kw_yield, tok::kw_continue, tok::kw_break,
6054 tok::kw_throw, Keywords.kw_interface, Keywords.kw_type,
6055 tok::kw_static, Keywords.kw_readonly, Keywords.kw_override,
6056 Keywords.kw_abstract, Keywords.kw_get, Keywords.kw_set,
6057 Keywords.kw_async, Keywords.kw_await))) {
6080 if (Right.is(Keywords.kw_is)) {
6092 if (Left.is(Keywords.kw_in))
6094 if (Right.is(Keywords.kw_in))
6096 if (Right.is(Keywords.kw_as))
6098 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) {
6104 if (Left.is(Keywords.kw_as))
6108 if (Left.is(Keywords.kw_declare) &&
6109 Right.isOneOf(Keywords.kw_module, tok::kw_namespace,
6110 Keywords.kw_function, tok::kw_class, tok::kw_enum,
6111 Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var,
6112 Keywords.kw_let, tok::kw_const)) {
6117 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) &&
6131 if (Keywords.isTableGenDefinition(Left))