Lines Matching refs:Keywords
74 const AdditionalKeywords &Keywords) in AnnotatingParser() argument
76 Keywords(Keywords) { in AnnotatingParser()
246 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens()
247 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens()
260 (Left->Previous->is(Keywords.kw_function) || in parseParens()
262 Keywords.kw_function)))) { in parseParens()
427 if (MightBeObjCForRangeLoop && CurrentToken->is(Keywords.kw_in)) { in parseParens()
485 tok::l_square, Keywords.kw_internal)) { in isCSharpAttributeSpecifier()
995 if (CurrentToken && CurrentToken->is(Keywords.kw_await)) in consumeToken()
1144 if (Tok->isOneOf(Keywords.kw___has_include, in consumeToken()
1145 Keywords.kw___has_include_next)) { in consumeToken()
1148 if (Style.isCSharp() && Tok->is(Keywords.kw_where) && Tok->Next && in consumeToken()
1177 } else if (CurrentToken->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
1217 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option)) { in parsePragma()
1218 bool IsMark = CurrentToken->is(Keywords.kw_mark); in parsePragma()
1293 else if (Tok->isOneOf(Keywords.kw___has_include, in parsePreprocessorDirective()
1294 Keywords.kw___has_include_next)) in parsePreprocessorDirective()
1313 CurrentToken->is(Keywords.kw_package)) || in parseLine()
1333 CurrentToken->isOneOf(Keywords.kw_option, Keywords.kw_package)) { in parseLine()
1347 CurrentToken->is(Keywords.kw_import)) in parseLine()
1361 CurrentToken->is(Keywords.kw_from) && CurrentToken->Next && in parseLine()
1497 (Line.startsWith(Keywords.kw_type, tok::identifier) || in modifyContext()
1498 Line.startsWith(tok::kw_export, Keywords.kw_type, in modifyContext()
1527 } else if (Current.is(TT_LambdaArrow) || Current.is(Keywords.kw_assert)) { in modifyContext()
1628 ? Keywords.IsJavaScriptIdentifier( in determineTokenType()
1634 tok::kw_false, tok::kw_true, Keywords.kw_type, Keywords.kw_get, in determineTokenType()
1635 Keywords.kw_set) || in determineTokenType()
1642 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) { in determineTokenType()
1651 if (Current.is(Keywords.kw_instanceof)) { in determineTokenType()
1789 Current.isNot(Keywords.kw_interface)) { in determineTokenType()
1813 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof, in isStartOfName()
1814 Keywords.kw_as)) in isStartOfName()
1817 Tok.Previous->is(Keywords.kw_in)) in isStartOfName()
1873 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
1888 if (Tok.Next->is(Keywords.kw_in) && Style.isCSharp()) in rParenEndsCast()
1895 Keywords.kw_override, Keywords.kw_final) || in rParenEndsCast()
2109 const AdditionalKeywords &Keywords; member in clang::format::__anone3ff8e3d0111::AnnotatingParser
2125 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser() argument
2127 : Style(Style), Keywords(Keywords), Current(Line.First) {} in ExpressionParser()
2243 Current->is(Keywords.kw_instanceof)) in getCurrentPrecedence()
2246 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) in getCurrentPrecedence()
2254 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
2255 Keywords.kw_throws)) in getCurrentPrecedence()
2316 const AdditionalKeywords &Keywords; member in clang::format::__anone3ff8e3d0111::ExpressionParser
2372 AnnotatingParser Parser(Style, Line, Keywords); in annotate()
2385 ExpressionParser ExprParser(Style, Keywords, Line); in annotate()
2721 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
2723 if (Right.is(Keywords.kw_implements)) in splitPenalty()
2728 if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma)) in splitPenalty()
2920 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
3029 (Right.isOneOf(Keywords.kw_override, Keywords.kw_final) && in spaceRequiredBetween()
3155 (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch, in spaceRequiredBetween()
3225 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
3226 Keywords.kw_repeated, Keywords.kw_extend)) in spaceRequiredBefore()
3229 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) in spaceRequiredBefore()
3303 if (Left.is(Keywords.kw_var) && Right.is(tok::l_paren)) in spaceRequiredBefore()
3308 if (Left.isOneOf(tok::kw_using, Keywords.kw_async, Keywords.kw_when, in spaceRequiredBefore()
3309 Keywords.kw_lock)) in spaceRequiredBefore()
3317 Keywords.kw_internal, Keywords.kw_abstract, in spaceRequiredBefore()
3318 Keywords.kw_sealed, Keywords.kw_override, in spaceRequiredBefore()
3319 Keywords.kw_async, Keywords.kw_unsafe) && in spaceRequiredBefore()
3326 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous && in spaceRequiredBefore()
3329 if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) && in spaceRequiredBefore()
3342 if (Keywords.IsJavaScriptIdentifier(Left, in spaceRequiredBefore()
3347 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) in spaceRequiredBefore()
3350 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
3351 Keywords.kw_extends, Keywords.kw_implements)) in spaceRequiredBefore()
3363 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, in spaceRequiredBefore()
3368 if (Left.endsSequence(tok::kw_const, Keywords.kw_as)) { in spaceRequiredBefore()
3371 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
3376 (Left.is(Keywords.kw_of) && Left.Previous && in spaceRequiredBefore()
3381 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && in spaceRequiredBefore()
3384 if (Left.is(Keywords.kw_as) && in spaceRequiredBefore()
3390 if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace)) in spaceRequiredBefore()
3397 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) in spaceRequiredBefore()
3403 Keywords.kw_implements, Keywords.kw_extends)) in spaceRequiredBefore()
3411 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) in spaceRequiredBefore()
3416 if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren)) in spaceRequiredBefore()
3420 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
3421 Keywords.kw_native)) && in spaceRequiredBefore()
3623 Right.is(Keywords.kw_internal))) in mustBreakBefore()
3637 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
3641 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) in mustBreakBefore()
3954 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
3955 Keywords.kw_implements)) in canBreakBefore()
3957 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
3958 Keywords.kw_implements)) in canBreakBefore()
3964 tok::kw_return, Keywords.kw_yield, tok::kw_continue, tok::kw_break, in canBreakBefore()
3965 tok::kw_throw, Keywords.kw_interface, Keywords.kw_type, in canBreakBefore()
3967 Keywords.kw_readonly, Keywords.kw_abstract, Keywords.kw_get, in canBreakBefore()
3968 Keywords.kw_set, Keywords.kw_async, Keywords.kw_await)) in canBreakBefore()
3988 if (Right.is(Keywords.kw_is)) { in canBreakBefore()
4000 if (Left.is(Keywords.kw_in)) in canBreakBefore()
4002 if (Right.is(Keywords.kw_in)) in canBreakBefore()
4004 if (Right.is(Keywords.kw_as)) in canBreakBefore()
4006 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
4012 if (Left.is(Keywords.kw_as)) in canBreakBefore()
4016 if (Left.is(Keywords.kw_declare) && in canBreakBefore()
4017 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
4018 Keywords.kw_function, tok::kw_class, tok::kw_enum, in canBreakBefore()
4019 Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var, in canBreakBefore()
4020 Keywords.kw_let, tok::kw_const)) in canBreakBefore()
4024 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) && in canBreakBefore()