Lines Matching refs:Keywords

51                    const AdditionalKeywords &Keywords)  in AnnotatingParser()  argument
53 Keywords(Keywords) { in AnnotatingParser()
170 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens()
171 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens()
185 (Left->Previous->is(Keywords.kw_function) || in parseParens()
187 Keywords.kw_function)))) { in parseParens()
333 if (MightBeObjCForRangeLoop && CurrentToken->is(Keywords.kw_in)) { in parseParens()
783 if (CurrentToken && CurrentToken->is(Keywords.kw_await)) in consumeToken()
916 if (Tok->isOneOf(Keywords.kw___has_include, in consumeToken()
917 Keywords.kw___has_include_next)) { in consumeToken()
955 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option)) { in parsePragma()
956 bool IsMark = CurrentToken->is(Keywords.kw_mark); in parsePragma()
1030 else if (Tok->isOneOf(Keywords.kw___has_include, in parsePreprocessorDirective()
1031 Keywords.kw___has_include_next)) in parsePreprocessorDirective()
1048 CurrentToken->is(Keywords.kw_package)) || in parseLine()
1068 CurrentToken->is(Keywords.kw_option)) { in parseLine()
1079 CurrentToken->is(Keywords.kw_import)) in parseLine()
1093 CurrentToken->is(Keywords.kw_from) && CurrentToken->Next && in parseLine()
1209 (Line.startsWith(Keywords.kw_type, tok::identifier) || in modifyContext()
1210 Line.startsWith(tok::kw_export, Keywords.kw_type, in modifyContext()
1239 } else if (Current.is(TT_LambdaArrow) || Current.is(Keywords.kw_assert)) { in modifyContext()
1278 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) { in determineTokenType()
1288 if (Current.is(Keywords.kw_instanceof)) { in determineTokenType()
1413 Current.isNot(Keywords.kw_interface)) { in determineTokenType()
1437 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof, in isStartOfName()
1438 Keywords.kw_as)) in isStartOfName()
1441 Tok.Previous->is(Keywords.kw_in)) in isStartOfName()
1497 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
1682 const AdditionalKeywords &Keywords; member in clang::format::__anon963563180111::AnnotatingParser
1698 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser() argument
1700 : Style(Style), Keywords(Keywords), Current(Line.First) {} in ExpressionParser()
1816 Current->is(Keywords.kw_instanceof)) in getCurrentPrecedence()
1819 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) in getCurrentPrecedence()
1827 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
1828 Keywords.kw_throws)) in getCurrentPrecedence()
1889 const AdditionalKeywords &Keywords; member in clang::format::__anon963563180111::ExpressionParser
1942 AnnotatingParser Parser(Style, Line, Keywords); in annotate()
1955 ExpressionParser ExprParser(Style, Keywords, Line); in annotate()
2213 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
2215 if (Right.is(Keywords.kw_implements)) in splitPenalty()
2220 if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma)) in splitPenalty()
2399 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
2476 (Right.isOneOf(Keywords.kw_override, Keywords.kw_final) && in spaceRequiredBetween()
2537 (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch, in spaceRequiredBetween()
2594 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
2595 Keywords.kw_repeated, Keywords.kw_extend)) in spaceRequiredBefore()
2598 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) in spaceRequiredBefore()
2619 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous && in spaceRequiredBefore()
2622 if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) && in spaceRequiredBefore()
2636 if (Left.is(tok::identifier) && Keywords.IsJavaScriptIdentifier(Left) && in spaceRequiredBefore()
2640 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) in spaceRequiredBefore()
2643 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
2644 Keywords.kw_extends, Keywords.kw_implements)) in spaceRequiredBefore()
2656 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, in spaceRequiredBefore()
2660 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
2665 (Left.is(Keywords.kw_of) && Left.Previous && in spaceRequiredBefore()
2670 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && in spaceRequiredBefore()
2673 if (Left.is(Keywords.kw_as) && in spaceRequiredBefore()
2679 if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace)) in spaceRequiredBefore()
2686 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) in spaceRequiredBefore()
2692 Keywords.kw_implements, Keywords.kw_extends)) in spaceRequiredBefore()
2700 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) in spaceRequiredBefore()
2705 if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren)) in spaceRequiredBefore()
2709 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
2710 Keywords.kw_native)) && in spaceRequiredBefore()
2850 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
2854 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) in mustBreakBefore()
3090 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
3091 Keywords.kw_implements)) in canBreakBefore()
3093 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
3094 Keywords.kw_implements)) in canBreakBefore()
3100 tok::kw_return, Keywords.kw_yield, tok::kw_continue, tok::kw_break, in canBreakBefore()
3101 tok::kw_throw, Keywords.kw_interface, Keywords.kw_type, in canBreakBefore()
3103 Keywords.kw_readonly, Keywords.kw_abstract, Keywords.kw_get, in canBreakBefore()
3104 Keywords.kw_set, Keywords.kw_async, Keywords.kw_await)) in canBreakBefore()
3121 if (Right.is(Keywords.kw_is)) { in canBreakBefore()
3133 if (Left.is(Keywords.kw_in)) in canBreakBefore()
3135 if (Right.is(Keywords.kw_in)) in canBreakBefore()
3137 if (Right.is(Keywords.kw_as)) in canBreakBefore()
3139 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
3145 if (Left.is(Keywords.kw_as)) in canBreakBefore()
3149 if (Left.is(Keywords.kw_declare) && in canBreakBefore()
3150 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
3151 Keywords.kw_function, tok::kw_class, tok::kw_enum, in canBreakBefore()
3152 Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var, in canBreakBefore()
3153 Keywords.kw_let, tok::kw_const)) in canBreakBefore()
3157 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) && in canBreakBefore()