Lines Matching refs:Keywords

82                    const AdditionalKeywords &Keywords)  in AnnotatingParser()  argument
84 Keywords(Keywords) { in AnnotatingParser()
264 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens()
265 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens()
278 (OpeningParen.Previous->is(Keywords.kw_function) || in parseParens()
280 Keywords.kw_function)))) { in parseParens()
464 if (MightBeObjCForRangeLoop && CurrentToken->is(Keywords.kw_in)) { in parseParens()
521 tok::l_square, Keywords.kw_internal)) { in isCSharpAttributeSpecifier()
951 if (Line.First->isOneOf(Keywords.kw_module, Keywords.kw_import) || in consumeToken()
952 Line.First->startsSequence(tok::kw_export, Keywords.kw_module) || in consumeToken()
953 Line.First->startsSequence(tok::kw_export, Keywords.kw_import)) { in consumeToken()
1054 if (CurrentToken && CurrentToken->is(Keywords.kw_await)) in consumeToken()
1219 if (Tok->isOneOf(Keywords.kw___has_include, in consumeToken()
1220 Keywords.kw___has_include_next)) { in consumeToken()
1223 if (Style.isCSharp() && Tok->is(Keywords.kw_where) && Tok->Next && in consumeToken()
1258 } else if (CurrentToken->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
1299 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option, in parsePragma()
1300 Keywords.kw_region)) { in parsePragma()
1301 bool IsMark = CurrentToken->is(Keywords.kw_mark); in parsePragma()
1349 if (Style.isVerilog() && !Keywords.isVerilogPPDirective(*CurrentToken)) in parsePreprocessorDirective()
1380 } else if (Tok->isOneOf(Keywords.kw___has_include, in parsePreprocessorDirective()
1381 Keywords.kw___has_include_next)) { in parsePreprocessorDirective()
1407 CurrentToken->is(Keywords.kw_package)) || in parseLine()
1427 CurrentToken->isOneOf(Keywords.kw_option, Keywords.kw_package)) { in parseLine()
1440 if (Style.isJavaScript() && CurrentToken->is(Keywords.kw_import)) in parseLine()
1454 CurrentToken->is(Keywords.kw_from) && CurrentToken->Next && in parseLine()
1642 (Line.startsWith(Keywords.kw_type, tok::identifier) || in modifyContext()
1643 Line.startsWith(tok::kw_export, Keywords.kw_type, in modifyContext()
1679 } else if (Current.is(TT_LambdaArrow) || Current.is(Keywords.kw_assert)) { in modifyContext()
1788 ? Keywords.IsJavaScriptIdentifier( in determineTokenType()
1794 tok::r_brace, tok::kw_false, tok::kw_true, Keywords.kw_type, in determineTokenType()
1795 Keywords.kw_get, Keywords.kw_init, Keywords.kw_set) || in determineTokenType()
1802 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) { in determineTokenType()
1811 if (Current.is(Keywords.kw_instanceof)) { in determineTokenType()
1955 Current.isNot(Keywords.kw_interface)) { in determineTokenType()
1979 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof, in isStartOfName()
1980 Keywords.kw_as)) { in isStartOfName()
1983 if (Style.isJavaScript() && Tok.Previous->is(Keywords.kw_in)) in isStartOfName()
2112 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
2129 if (Tok.Next->is(Keywords.kw_in) && Style.isCSharp()) in rParenEndsCast()
2136 Keywords.kw_override, Keywords.kw_final) || in rParenEndsCast()
2405 const AdditionalKeywords &Keywords; member in clang::format::__anon095ba8b90111::AnnotatingParser
2421 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser() argument
2423 : Style(Style), Keywords(Keywords), Line(Line), Current(Line.First) {} in ExpressionParser()
2559 Current->is(Keywords.kw_instanceof)) { in getCurrentPrecedence()
2563 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) { in getCurrentPrecedence()
2571 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
2572 Keywords.kw_throws)) { in getCurrentPrecedence()
2635 const AdditionalKeywords &Keywords; member in clang::format::__anon095ba8b90111::ExpressionParser
2682 AnnotatingParser Parser(Style, Line, Keywords); in annotate()
2695 ExpressionParser ExprParser(Style, Keywords, Line); in annotate()
3042 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
3044 if (Right.is(Keywords.kw_implements)) in splitPenalty()
3049 if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma)) in splitPenalty()
3267 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
3408 if (Right.isOneOf(Keywords.kw_override, Keywords.kw_final) && in spaceRequiredBetween()
3601 if (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch)) { in spaceRequiredBetween()
3692 if (Keywords.isWordLike(Right) && Keywords.isWordLike(Left)) in spaceRequiredBefore()
3703 if (Left.is(Keywords.kw_import) && Right.isOneOf(tok::less, tok::ellipsis)) in spaceRequiredBefore()
3706 if (Left.isOneOf(Keywords.kw_module, Keywords.kw_import) && in spaceRequiredBefore()
3719 Line.First->is(Keywords.kw_import)) { in spaceRequiredBefore()
3739 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
3740 Keywords.kw_repeated, Keywords.kw_extend)) { in spaceRequiredBefore()
3744 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) { in spaceRequiredBefore()
3820 if (Left.is(Keywords.kw_var) && Right.is(tok::l_paren)) in spaceRequiredBefore()
3825 if (Left.isOneOf(tok::kw_using, Keywords.kw_async, Keywords.kw_when, in spaceRequiredBefore()
3826 Keywords.kw_lock)) { in spaceRequiredBefore()
3836 Keywords.kw_internal, Keywords.kw_abstract, in spaceRequiredBefore()
3837 Keywords.kw_sealed, Keywords.kw_override, in spaceRequiredBefore()
3838 Keywords.kw_async, Keywords.kw_unsafe) && in spaceRequiredBefore()
3846 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous && in spaceRequiredBefore()
3850 if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) && in spaceRequiredBefore()
3864 if (Keywords.IsJavaScriptIdentifier(Left, in spaceRequiredBefore()
3870 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) { in spaceRequiredBefore()
3874 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
3875 Keywords.kw_extends, Keywords.kw_implements)) { in spaceRequiredBefore()
3889 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, in spaceRequiredBefore()
3895 if (Left.endsSequence(tok::kw_const, Keywords.kw_as)) in spaceRequiredBefore()
3897 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
3902 (Left.is(Keywords.kw_of) && Left.Previous && in spaceRequiredBefore()
3908 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && in spaceRequiredBefore()
3912 if (Left.is(Keywords.kw_as) && in spaceRequiredBefore()
3920 if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace)) in spaceRequiredBefore()
3927 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) { in spaceRequiredBefore()
3934 Keywords.kw_implements, Keywords.kw_extends)) { in spaceRequiredBefore()
3943 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) { in spaceRequiredBefore()
3949 if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren)) { in spaceRequiredBefore()
3955 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
3956 Keywords.kw_native)) && in spaceRequiredBefore()
3963 Left.isOneOf(Keywords.kw_verilogHash, Keywords.kw_verilogHashHash)) { in spaceRequiredBefore()
3968 (Left.endsSequence(tok::numeric_constant, Keywords.kw_verilogHash) || in spaceRequiredBefore()
3970 Keywords.kw_verilogHashHash) || in spaceRequiredBefore()
4210 Right.is(Keywords.kw_internal))) { in mustBreakBefore()
4227 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
4231 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) { in mustBreakBefore()
4417 FirstNonComment->isOneOf(Keywords.kw_internal, tok::kw_public, in mustBreakBefore()
4435 FirstNonComment->Next->is(Keywords.kw_interface)) || in mustBreakBefore()
4436 Line.startsWith(Keywords.kw_interface))) { in mustBreakBefore()
4611 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
4612 Keywords.kw_implements)) { in canBreakBefore()
4615 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
4616 Keywords.kw_implements)) { in canBreakBefore()
4623 tok::kw_return, Keywords.kw_yield, tok::kw_continue, tok::kw_break, in canBreakBefore()
4624 tok::kw_throw, Keywords.kw_interface, Keywords.kw_type, in canBreakBefore()
4626 Keywords.kw_readonly, Keywords.kw_override, Keywords.kw_abstract, in canBreakBefore()
4627 Keywords.kw_get, Keywords.kw_set, Keywords.kw_async, in canBreakBefore()
4628 Keywords.kw_await)) { in canBreakBefore()
4651 if (Right.is(Keywords.kw_is)) { in canBreakBefore()
4663 if (Left.is(Keywords.kw_in)) in canBreakBefore()
4665 if (Right.is(Keywords.kw_in)) in canBreakBefore()
4667 if (Right.is(Keywords.kw_as)) in canBreakBefore()
4669 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
4675 if (Left.is(Keywords.kw_as)) in canBreakBefore()
4679 if (Left.is(Keywords.kw_declare) && in canBreakBefore()
4680 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
4681 Keywords.kw_function, tok::kw_class, tok::kw_enum, in canBreakBefore()
4682 Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var, in canBreakBefore()
4683 Keywords.kw_let, tok::kw_const)) { in canBreakBefore()
4688 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) && in canBreakBefore()