Lines Matching refs:NodeRole

423   void markStmtChild(Stmt *Child, NodeRole Role);
426 void markExprChild(Expr *Child, NodeRole Role);
428 void markChildToken(SourceLocation Loc, NodeRole R);
430 void markChildToken(const syntax::Token *T, NodeRole R);
433 void markChild(syntax::Node *N, NodeRole R);
435 void markChild(ASTPtr N, NodeRole R);
437 void markChild(NestedNameSpecifierLoc N, NodeRole R);
559 void setRole(syntax::Node *N, NodeRole R) { in setRole()
560 assert(N->getRole() == NodeRole::Detached); in setRole()
585 void assignRole(ArrayRef<syntax::Token> Range, syntax::NodeRole Role) { in assignRole()
593 assert(It->second->getRole() == NodeRole::Detached && in assignRole()
613 return Role == syntax::NodeRole::ListElement || in shrinkToFitList()
614 Role == syntax::NodeRole::ListDelimiter; in shrinkToFitList()
646 if (C->getRole() == NodeRole::Detached) in foldChildren()
647 C->setRole(NodeRole::Unknown); in foldChildren()
791 using NodeRole = syntax::NodeRole; in WalkUpFromCompoundStmt() typedef
793 Builder.markChildToken(S->getLBracLoc(), NodeRole::OpenParen); in WalkUpFromCompoundStmt()
795 Builder.markStmtChild(Child, NodeRole::Statement); in WalkUpFromCompoundStmt()
796 Builder.markChildToken(S->getRBracLoc(), NodeRole::CloseParen); in WalkUpFromCompoundStmt()
922 Builder.markChildToken(S->getBeginLoc(), syntax::NodeRole::LiteralToken); in WalkUpFromUserDefinedLiteral()
992 syntax::NodeRole::Unknown); in buildNameSpecifier()
1035 Builder.markChild(NS, syntax::NodeRole::ListElement); in TraverseNestedNameSpecifierLoc()
1036 Builder.markChildToken(It.getEndLoc(), syntax::NodeRole::ListDelimiter); in TraverseNestedNameSpecifierLoc()
1049 Builder.markChild(QualifierLoc, syntax::NodeRole::Qualifier); in buildIdExpression()
1052 syntax::NodeRole::TemplateKeyword); in buildIdExpression()
1058 Builder.markChild(TheUnqualifiedId, syntax::NodeRole::UnqualifiedId); in buildIdExpression()
1085 Builder.markChild(TheIdExpression, syntax::NodeRole::Member); in WalkUpFromMemberExpr()
1087 Builder.markExprChild(S->getBase(), syntax::NodeRole::Object); in WalkUpFromMemberExpr()
1088 Builder.markChildToken(S->getOperatorLoc(), syntax::NodeRole::AccessToken); in WalkUpFromMemberExpr()
1113 syntax::NodeRole::IntroducerKeyword); in WalkUpFromCXXThisExpr()
1121 Builder.markChildToken(S->getLParen(), syntax::NodeRole::OpenParen); in WalkUpFromParenExpr()
1122 Builder.markExprChild(S->getSubExpr(), syntax::NodeRole::SubExpression); in WalkUpFromParenExpr()
1123 Builder.markChildToken(S->getRParen(), syntax::NodeRole::CloseParen); in WalkUpFromParenExpr()
1130 Builder.markChildToken(S->getLocation(), syntax::NodeRole::LiteralToken); in WalkUpFromIntegerLiteral()
1137 Builder.markChildToken(S->getLocation(), syntax::NodeRole::LiteralToken); in WalkUpFromCharacterLiteral()
1144 Builder.markChildToken(S->getLocation(), syntax::NodeRole::LiteralToken); in WalkUpFromFloatingLiteral()
1151 Builder.markChildToken(S->getBeginLoc(), syntax::NodeRole::LiteralToken); in WalkUpFromStringLiteral()
1158 Builder.markChildToken(S->getLocation(), syntax::NodeRole::LiteralToken); in WalkUpFromCXXBoolLiteralExpr()
1165 Builder.markChildToken(S->getLocation(), syntax::NodeRole::LiteralToken); in WalkUpFromCXXNullPtrLiteralExpr()
1173 syntax::NodeRole::OperatorToken); in WalkUpFromUnaryOperator()
1174 Builder.markExprChild(S->getSubExpr(), syntax::NodeRole::Operand); in WalkUpFromUnaryOperator()
1189 Builder.markExprChild(S->getLHS(), syntax::NodeRole::LeftHandSide); in WalkUpFromBinaryOperator()
1191 syntax::NodeRole::OperatorToken); in WalkUpFromBinaryOperator()
1192 Builder.markExprChild(S->getRHS(), syntax::NodeRole::RightHandSide); in WalkUpFromBinaryOperator()
1204 Builder.markExprChild(Arg, syntax::NodeRole::ListElement); in buildCallArguments()
1208 Builder.markChildToken(DelimiterToken, syntax::NodeRole::ListDelimiter); in buildCallArguments()
1221 Builder.markExprChild(S->getCallee(), syntax::NodeRole::Callee); in WalkUpFromCallExpr()
1228 Builder.markChildToken(LParenToken, syntax::NodeRole::OpenParen); in WalkUpFromCallExpr()
1231 syntax::NodeRole::Arguments); in WalkUpFromCallExpr()
1233 Builder.markChildToken(S->getRParenLoc(), syntax::NodeRole::CloseParen); in WalkUpFromCallExpr()
1274 Builder.markExprChild(S->getArg(0), syntax::NodeRole::LeftHandSide); in WalkUpFromCXXOperatorCallExpr()
1276 syntax::NodeRole::OperatorToken); in WalkUpFromCXXOperatorCallExpr()
1277 Builder.markExprChild(S->getArg(1), syntax::NodeRole::RightHandSide); in WalkUpFromCXXOperatorCallExpr()
1283 syntax::NodeRole::OperatorToken); in WalkUpFromCXXOperatorCallExpr()
1284 Builder.markExprChild(S->getArg(0), syntax::NodeRole::Operand); in WalkUpFromCXXOperatorCallExpr()
1291 syntax::NodeRole::OperatorToken); in WalkUpFromCXXOperatorCallExpr()
1292 Builder.markExprChild(S->getArg(0), syntax::NodeRole::Operand); in WalkUpFromCXXOperatorCallExpr()
1298 Builder.markExprChild(S->getArg(0), syntax::NodeRole::Callee); in WalkUpFromCXXOperatorCallExpr()
1305 Builder.markChildToken(LParenToken, syntax::NodeRole::OpenParen); in WalkUpFromCXXOperatorCallExpr()
1309 syntax::NodeRole::Arguments); in WalkUpFromCXXOperatorCallExpr()
1311 Builder.markChildToken(S->getRParenLoc(), syntax::NodeRole::CloseParen); in WalkUpFromCXXOperatorCallExpr()
1348 Builder.markChildToken(L.getLParenLoc(), syntax::NodeRole::OpenParen); in WalkUpFromParenTypeLoc()
1349 Builder.markChildToken(L.getRParenLoc(), syntax::NodeRole::CloseParen); in WalkUpFromParenTypeLoc()
1357 Builder.markChildToken(L.getLBracketLoc(), syntax::NodeRole::OpenParen); in WalkUpFromArrayTypeLoc()
1358 Builder.markExprChild(L.getSizeExpr(), syntax::NodeRole::Size); in WalkUpFromArrayTypeLoc()
1359 Builder.markChildToken(L.getRBracketLoc(), syntax::NodeRole::CloseParen); in WalkUpFromArrayTypeLoc()
1368 Builder.markChild(P, syntax::NodeRole::ListElement); in buildParameterDeclarationList()
1371 Builder.markChildToken(DelimiterToken, syntax::NodeRole::ListDelimiter); in buildParameterDeclarationList()
1382 Builder.markChildToken(L.getLParenLoc(), syntax::NodeRole::OpenParen); in WalkUpFromFunctionTypeLoc()
1385 syntax::NodeRole::Parameters); in WalkUpFromFunctionTypeLoc()
1387 Builder.markChildToken(L.getRParenLoc(), syntax::NodeRole::CloseParen); in WalkUpFromFunctionTypeLoc()
1399 Builder.markChild(TrailingReturnTokens, syntax::NodeRole::TrailingReturn); in WalkUpFromFunctionProtoTypeLoc()
1437 syntax::NodeRole::IntroducerKeyword); in WalkUpFromSwitchStmt()
1438 Builder.markStmtChild(S->getBody(), syntax::NodeRole::BodyStatement); in WalkUpFromSwitchStmt()
1446 syntax::NodeRole::IntroducerKeyword); in WalkUpFromCaseStmt()
1447 Builder.markExprChild(S->getLHS(), syntax::NodeRole::CaseValue); in WalkUpFromCaseStmt()
1448 Builder.markStmtChild(S->getSubStmt(), syntax::NodeRole::BodyStatement); in WalkUpFromCaseStmt()
1456 syntax::NodeRole::IntroducerKeyword); in WalkUpFromDefaultStmt()
1457 Builder.markStmtChild(S->getSubStmt(), syntax::NodeRole::BodyStatement); in WalkUpFromDefaultStmt()
1464 Builder.markChildToken(S->getIfLoc(), syntax::NodeRole::IntroducerKeyword); in WalkUpFromIfStmt()
1468 Builder.markStmtChild(ConditionStatement, syntax::NodeRole::Condition); in WalkUpFromIfStmt()
1469 Builder.markStmtChild(S->getThen(), syntax::NodeRole::ThenStatement); in WalkUpFromIfStmt()
1470 Builder.markChildToken(S->getElseLoc(), syntax::NodeRole::ElseKeyword); in WalkUpFromIfStmt()
1471 Builder.markStmtChild(S->getElse(), syntax::NodeRole::ElseStatement); in WalkUpFromIfStmt()
1478 Builder.markChildToken(S->getForLoc(), syntax::NodeRole::IntroducerKeyword); in WalkUpFromForStmt()
1479 Builder.markStmtChild(S->getBody(), syntax::NodeRole::BodyStatement); in WalkUpFromForStmt()
1487 syntax::NodeRole::IntroducerKeyword); in WalkUpFromWhileStmt()
1488 Builder.markStmtChild(S->getBody(), syntax::NodeRole::BodyStatement); in WalkUpFromWhileStmt()
1496 syntax::NodeRole::IntroducerKeyword); in WalkUpFromContinueStmt()
1504 syntax::NodeRole::IntroducerKeyword); in WalkUpFromBreakStmt()
1512 syntax::NodeRole::IntroducerKeyword); in WalkUpFromReturnStmt()
1513 Builder.markExprChild(S->getRetValue(), syntax::NodeRole::ReturnValue); in WalkUpFromReturnStmt()
1520 Builder.markChildToken(S->getForLoc(), syntax::NodeRole::IntroducerKeyword); in WalkUpFromCXXForRangeStmt()
1521 Builder.markStmtChild(S->getBody(), syntax::NodeRole::BodyStatement); in WalkUpFromCXXForRangeStmt()
1534 Builder.markExprChild(S->getAssertExpr(), syntax::NodeRole::Condition); in WalkUpFromStaticAssertDecl()
1535 Builder.markExprChild(S->getMessage(), syntax::NodeRole::Message); in WalkUpFromStaticAssertDecl()
1596 syntax::NodeRole::Declarators); in processDeclaratorAndDeclaration()
1604 Builder.markChild(N, syntax::NodeRole::ListElement); in processDeclaratorAndDeclaration()
1611 Builder.markChildToken(DelimiterToken, syntax::NodeRole::ListDelimiter); in processDeclaratorAndDeclaration()
1617 Builder.markChild(DL, syntax::NodeRole::Declarators); in processDeclaratorAndDeclaration()
1644 Builder.markChildToken(Arrow, syntax::NodeRole::ArrowToken); in buildTrailingReturn()
1646 Builder.markChild(ReturnDeclarator, syntax::NodeRole::Declarator); in buildTrailingReturn()
1658 Builder.markChildToken(ExternKW, syntax::NodeRole::ExternKeyword); in foldExplicitTemplateInstantiation()
1659 Builder.markChildToken(TemplateKW, syntax::NodeRole::IntroducerKeyword); in foldExplicitTemplateInstantiation()
1660 Builder.markChild(InnerDeclaration, syntax::NodeRole::Declaration); in foldExplicitTemplateInstantiation()
1669 Builder.markChildToken(TemplateKW, syntax::NodeRole::IntroducerKeyword); in foldTemplateDeclaration()
1673 Builder.markChild(N, syntax::NodeRole::Declaration); in foldTemplateDeclaration()
1689 void syntax::TreeBuilder::markChildToken(SourceLocation Loc, NodeRole Role) { in markChildToken()
1695 void syntax::TreeBuilder::markChildToken(const syntax::Token *T, NodeRole R) { in markChildToken()
1701 void syntax::TreeBuilder::markChild(syntax::Node *N, NodeRole R) { in markChild()
1706 void syntax::TreeBuilder::markChild(ASTPtr N, NodeRole R) { in markChild()
1711 void syntax::TreeBuilder::markChild(NestedNameSpecifierLoc NNSLoc, NodeRole R) { in markChild()
1717 void syntax::TreeBuilder::markStmtChild(Stmt *Child, NodeRole Role) { in markStmtChild()
1725 markExprChild(ChildExpr, NodeRole::Expression); in markStmtChild()
1736 void syntax::TreeBuilder::markExprChild(Expr *Child, NodeRole Role) { in markExprChild()