Lines Matching refs:isOneOf
105 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak()
152 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak()
175 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at) && in mustBreak()
176 !Previous.isOneOf(TT_InlineASMColon, TT_ConditionalExpr) && in mustBreak()
228 if (Current.isOneOf(TT_FunctionDeclarationName, tok::kw_operator) && in mustBreak()
241 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak()
353 Previous.Previous->isOneOf(tok::kw_if, tok::kw_for)) { in addTokenOnCurrentLine()
358 } else if (!Current.isOneOf(tok::comment, tok::caret) && in addTokenOnCurrentLine()
362 } else if ((Previous.isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in addTokenOnCurrentLine()
458 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) { in addTokenOnNewLine()
474 if ((Previous.isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine()
478 if (Previous.isOneOf(TT_TemplateCloser, TT_JavaAnnotation) && in addTokenOnNewLine()
510 !PreviousNonComment->isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine()
513 !PreviousNonComment->isOneOf( in addTokenOnNewLine()
522 (PreviousNonComment->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare))) in addTokenOnNewLine()
529 if (!Previous.isOneOf(tok::l_paren, tok::l_brace, TT_BinaryOperator) || in addTokenOnNewLine()
555 Current.isOneOf(Keywords.kw_implements, Keywords.kw_extends)) in getNewLineColumn()
562 if (Current.isOneOf(tok::r_brace, tok::r_square) && State.Stack.size() > 1) { in getNewLineColumn()
595 PreviousNonComment->isOneOf( in getNewLineColumn()
599 NextNonComment->isOneOf(tok::kw_operator, TT_FunctionDeclarationName))) in getNewLineColumn()
630 if (NextNonComment->isOneOf(TT_StartOfName, TT_PointerOrReference) || in getNewLineColumn()
631 Previous.isOneOf(tok::coloncolon, tok::equal, TT_JsTypeColon)) in getNewLineColumn()
634 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) in getNewLineColumn()
641 !Current.isOneOf(tok::colon, tok::comment)) in getNewLineColumn()
696 if (Current.isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && Newline) in moveStateToNextToken()
710 Previous->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) && in moveStateToNextToken()
717 if (Previous && (Previous->isOneOf(tok::l_paren, tok::comma, tok::colon) || in moveStateToNextToken()
718 Previous->isOneOf(TT_BinaryOperator, TT_ConditionalExpr)) && in moveStateToNextToken()
719 !Previous->isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) { in moveStateToNextToken()
734 else if (!Current.isOneOf(tok::comment, tok::identifier, tok::hash) && in moveStateToNextToken()
769 Previous->isOneOf(tok::semi, tok::kw_return) || in moveStatePastFakeLParens()
798 Previous->isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && in moveStatePastFakeLParens()
867 if (Current.isOneOf(tok::l_brace, TT_ArrayInitializerLSquare)) { in moveStatePastScopeOpener()
877 Current.isOneOf(TT_ArrayInitializerLSquare, TT_DictLiteral) || in moveStatePastScopeOpener()
944 (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStatePastScopeCloser()