Lines Matching refs:isOneOf
111 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak()
165 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak()
198 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at) && in mustBreak()
199 !Previous.isOneOf(TT_InlineASMColon, TT_ConditionalExpr) && in mustBreak()
265 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak()
356 Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) && in addTokenOnCurrentLine()
359 !Previous.Previous->isOneOf(tok::kw_for, tok::kw_while, in addTokenOnCurrentLine()
399 Previous.Previous->isOneOf(tok::kw_if, tok::kw_for)) { in addTokenOnCurrentLine()
404 } else if (!Current.isOneOf(tok::comment, tok::caret) && in addTokenOnCurrentLine()
409 } else if ((Previous.isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in addTokenOnCurrentLine()
485 !Current.isOneOf(Keywords.kw_async, Keywords.kw_function))) in addTokenOnNewLine()
508 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) { in addTokenOnNewLine()
524 if ((Previous.isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine()
528 if (Previous.isOneOf(TT_TemplateCloser, TT_JavaAnnotation) && in addTokenOnNewLine()
567 !PreviousNonComment->isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine()
570 !PreviousNonComment->isOneOf( in addTokenOnNewLine()
579 (PreviousNonComment->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare))) in addTokenOnNewLine()
586 if (!Previous.isOneOf(tok::l_paren, tok::l_brace, TT_BinaryOperator) || in addTokenOnNewLine()
612 Current.isOneOf(Keywords.kw_implements, Keywords.kw_extends)) in getNewLineColumn()
619 if (Current.isOneOf(tok::r_brace, tok::r_square) && State.Stack.size() > 1) { in getNewLineColumn()
652 PreviousNonComment->isOneOf( in getNewLineColumn()
656 NextNonComment->isOneOf(tok::kw_operator, TT_FunctionDeclarationName))) in getNewLineColumn()
687 if (NextNonComment->isOneOf(TT_StartOfName, TT_PointerOrReference) || in getNewLineColumn()
688 Previous.isOneOf(tok::coloncolon, tok::equal, TT_JsTypeColon)) in getNewLineColumn()
691 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) in getNewLineColumn()
698 !Current.isOneOf(tok::colon, tok::comment)) in getNewLineColumn()
762 if (Current.isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && Newline) in moveStateToNextToken()
776 Previous->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) && in moveStateToNextToken()
783 if (Previous && (Previous->isOneOf(tok::l_paren, tok::comma, tok::colon) || in moveStateToNextToken()
784 Previous->isOneOf(TT_BinaryOperator, TT_ConditionalExpr)) && in moveStateToNextToken()
785 !Previous->isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) { in moveStateToNextToken()
800 else if (!Current.isOneOf(tok::comment, tok::identifier, tok::hash) && in moveStateToNextToken()
835 Previous->isOneOf(tok::semi, tok::kw_return) || in moveStatePastFakeLParens()
864 Previous->isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && in moveStatePastFakeLParens()
934 if (Current.isOneOf(tok::l_brace, TT_ArrayInitializerLSquare)) { in moveStatePastScopeOpener()
1002 !Current.isOneOf(TT_DictLiteral, TT_ArrayInitializerLSquare) && in moveStatePastScopeOpener()
1021 (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStatePastScopeCloser()