Lines Matching refs:Keywords
114 const AdditionalKeywords &Keywords) in AnnotatingParser() argument
116 Keywords(Keywords) { in AnnotatingParser()
297 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens()
298 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens()
311 (OpeningParen.Previous->is(Keywords.kw_function) || in parseParens()
313 Keywords.kw_function)))) { in parseParens()
506 if (MightBeObjCForRangeLoop && CurrentToken->is(Keywords.kw_in)) { in parseParens()
563 tok::l_square, Keywords.kw_internal)) { in isCSharpAttributeSpecifier()
979 if (Keywords.isVerilogEnd(*Tok->Previous) || in consumeToken()
980 Keywords.isVerilogBegin(*Tok->Previous)) { in consumeToken()
996 if (Line.First->isOneOf(Keywords.kw_module, Keywords.kw_import) || in consumeToken()
997 Line.First->startsSequence(tok::kw_export, Keywords.kw_module) || in consumeToken()
998 Line.First->startsSequence(tok::kw_export, Keywords.kw_import)) { in consumeToken()
1102 if (CurrentToken && CurrentToken->is(Keywords.kw_await)) in consumeToken()
1272 if (Style.isVerilog() && Keywords.isVerilogEndOfLabel(*Tok) && in consumeToken()
1278 if (Tok->isOneOf(Keywords.kw___has_include, in consumeToken()
1279 Keywords.kw___has_include_next)) { in consumeToken()
1282 if (Style.isCSharp() && Tok->is(Keywords.kw_where) && Tok->Next && in consumeToken()
1323 } else if (CurrentToken->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
1364 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option, in parsePragma()
1365 Keywords.kw_region)) { in parsePragma()
1367 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_region); in parsePragma()
1415 if (Style.isVerilog() && !Keywords.isVerilogPPDirective(*CurrentToken)) in parsePreprocessorDirective()
1446 } else if (Tok->isOneOf(Keywords.kw___has_include, in parsePreprocessorDirective()
1447 Keywords.kw___has_include_next)) { in parsePreprocessorDirective()
1473 CurrentToken->is(Keywords.kw_package)) || in parseLine()
1493 CurrentToken->isOneOf(Keywords.kw_option, Keywords.kw_package)) { in parseLine()
1506 if (Style.isJavaScript() && CurrentToken->is(Keywords.kw_import)) in parseLine()
1520 CurrentToken->is(Keywords.kw_from) && CurrentToken->Next && in parseLine()
1710 (Line.startsWith(Keywords.kw_type, tok::identifier) || in modifyContext()
1711 Line.startsWith(tok::kw_export, Keywords.kw_type, in modifyContext()
1747 } else if (Current.is(TT_LambdaArrow) || Current.is(Keywords.kw_assert)) { in modifyContext()
1843 ? Keywords.IsJavaScriptIdentifier( in determineTokenType()
1849 tok::r_brace, tok::kw_false, tok::kw_true, Keywords.kw_type, in determineTokenType()
1850 Keywords.kw_get, Keywords.kw_init, Keywords.kw_set) || in determineTokenType()
1857 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) { in determineTokenType()
1866 if (Current.is(Keywords.kw_instanceof)) { in determineTokenType()
2013 Current.isNot(Keywords.kw_interface)) { in determineTokenType()
2037 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof, in isStartOfName()
2038 Keywords.kw_as)) { in isStartOfName()
2041 if (Style.isJavaScript() && Tok.Previous->is(Keywords.kw_in)) in isStartOfName()
2179 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
2196 if (Tok.Next->is(Keywords.kw_in) && Style.isCSharp()) in rParenEndsCast()
2203 Keywords.kw_override, Keywords.kw_final) || in rParenEndsCast()
2477 const AdditionalKeywords &Keywords; member in clang::format::__anon192501e00111::AnnotatingParser
2493 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser() argument
2495 : Style(Style), Keywords(Keywords), Line(Line), Current(Line.First) {} in ExpressionParser()
2631 Current->is(Keywords.kw_instanceof)) { in getCurrentPrecedence()
2635 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) { in getCurrentPrecedence()
2645 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
2646 Keywords.kw_throws)) { in getCurrentPrecedence()
2713 const AdditionalKeywords &Keywords; member in clang::format::__anon192501e00111::ExpressionParser
2763 AnnotatingParser Parser(Style, Line, Keywords); in annotate()
2776 ExpressionParser ExprParser(Style, Keywords, Line); in annotate()
3153 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
3155 if (Right.is(Keywords.kw_implements)) in splitPenalty()
3160 if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma)) in splitPenalty()
3384 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
3534 if (Right.isOneOf(Keywords.kw_override, Keywords.kw_final, in spaceRequiredBetween()
3729 if (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch)) { in spaceRequiredBetween()
3820 if (Keywords.isWordLike(Right) && Keywords.isWordLike(Left)) in spaceRequiredBefore()
3834 if (Left.is(Keywords.kw_import) && Right.isOneOf(tok::less, tok::ellipsis)) in spaceRequiredBefore()
3837 if (Left.isOneOf(Keywords.kw_module, Keywords.kw_import) && in spaceRequiredBefore()
3850 Line.First->is(Keywords.kw_import)) { in spaceRequiredBefore()
3870 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
3871 Keywords.kw_repeated, Keywords.kw_extend)) { in spaceRequiredBefore()
3875 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) { in spaceRequiredBefore()
3951 if (Left.is(Keywords.kw_var) && Right.is(tok::l_paren)) in spaceRequiredBefore()
3956 if (Left.isOneOf(tok::kw_using, Keywords.kw_async, Keywords.kw_when, in spaceRequiredBefore()
3957 Keywords.kw_lock)) { in spaceRequiredBefore()
3967 Keywords.kw_internal, Keywords.kw_abstract, in spaceRequiredBefore()
3968 Keywords.kw_sealed, Keywords.kw_override, in spaceRequiredBefore()
3969 Keywords.kw_async, Keywords.kw_unsafe) && in spaceRequiredBefore()
3977 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous && in spaceRequiredBefore()
3981 if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) && in spaceRequiredBefore()
3995 if (Keywords.IsJavaScriptIdentifier(Left, in spaceRequiredBefore()
4001 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) { in spaceRequiredBefore()
4005 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
4006 Keywords.kw_extends, Keywords.kw_implements)) { in spaceRequiredBefore()
4020 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, in spaceRequiredBefore()
4026 if (Left.endsSequence(tok::kw_const, Keywords.kw_as)) in spaceRequiredBefore()
4028 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
4033 (Left.is(Keywords.kw_of) && Left.Previous && in spaceRequiredBefore()
4039 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && in spaceRequiredBefore()
4043 if (Left.is(Keywords.kw_as) && in spaceRequiredBefore()
4051 if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace)) in spaceRequiredBefore()
4058 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) { in spaceRequiredBefore()
4065 Keywords.kw_implements, Keywords.kw_extends)) { in spaceRequiredBefore()
4074 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) { in spaceRequiredBefore()
4080 if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren)) { in spaceRequiredBefore()
4086 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
4087 Keywords.kw_native)) && in spaceRequiredBefore()
4102 Left.isOneOf(Keywords.kw_verilogHash, Keywords.kw_verilogHashHash)) { in spaceRequiredBefore()
4107 (Left.endsSequence(tok::numeric_constant, Keywords.kw_verilogHash) || in spaceRequiredBefore()
4109 Keywords.kw_verilogHashHash) || in spaceRequiredBefore()
4116 if (Left.is(Keywords.kw_apostrophe) || in spaceRequiredBefore()
4122 Left.isOneOf(TT_VerilogDimensionedTypeName, Keywords.kw_function)) { in spaceRequiredBefore()
4127 if ((Right.is(Keywords.kw_apostrophe) || in spaceRequiredBefore()
4129 !(Left.isOneOf(Keywords.kw_assign, Keywords.kw_unique) || in spaceRequiredBefore()
4130 Keywords.isVerilogWordOperator(Left)) && in spaceRequiredBefore()
4133 Keywords.isWordLike(Left))) { in spaceRequiredBefore()
4381 Right.is(Keywords.kw_internal))) { in mustBreakBefore()
4398 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
4402 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) { in mustBreakBefore()
4452 if (!Keywords.isVerilogBegin(Right) && Keywords.isVerilogEndOfLabel(Left)) in mustBreakBefore()
4602 FirstNonComment->isOneOf(Keywords.kw_internal, tok::kw_public, in mustBreakBefore()
4620 FirstNonComment->Next->is(Keywords.kw_interface)) || in mustBreakBefore()
4621 Line.startsWith(Keywords.kw_interface))) { in mustBreakBefore()
4796 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
4797 Keywords.kw_implements)) { in canBreakBefore()
4800 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
4801 Keywords.kw_implements)) { in canBreakBefore()
4808 tok::kw_return, Keywords.kw_yield, tok::kw_continue, tok::kw_break, in canBreakBefore()
4809 tok::kw_throw, Keywords.kw_interface, Keywords.kw_type, in canBreakBefore()
4811 Keywords.kw_readonly, Keywords.kw_override, Keywords.kw_abstract, in canBreakBefore()
4812 Keywords.kw_get, Keywords.kw_set, Keywords.kw_async, in canBreakBefore()
4813 Keywords.kw_await)) { in canBreakBefore()
4836 if (Right.is(Keywords.kw_is)) { in canBreakBefore()
4848 if (Left.is(Keywords.kw_in)) in canBreakBefore()
4850 if (Right.is(Keywords.kw_in)) in canBreakBefore()
4852 if (Right.is(Keywords.kw_as)) in canBreakBefore()
4854 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
4860 if (Left.is(Keywords.kw_as)) in canBreakBefore()
4864 if (Left.is(Keywords.kw_declare) && in canBreakBefore()
4865 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
4866 Keywords.kw_function, tok::kw_class, tok::kw_enum, in canBreakBefore()
4867 Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var, in canBreakBefore()
4868 Keywords.kw_let, tok::kw_const)) { in canBreakBefore()
4873 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) && in canBreakBefore()