Lines Matching defs:Role
73 /// Mark the \p Child node with a corresponding \p Role. All marked children
77 void markStmtChild(Stmt *Child, NodeRole Role);
80 void markExprChild(Expr *Child, NodeRole Role);
176 syntax::NodeRole Role) {
184 It->second.Role = Role;
275 std::prev(It)->second.Role);
287 : Node(Node), Role(NodeRole::Unknown) {}
290 NodeRole Role;
625 void syntax::TreeBuilder::markChildToken(SourceLocation Loc, NodeRole Role) {
628 Pending.assignRole(*findToken(Loc), Role);
631 void syntax::TreeBuilder::markStmtChild(Stmt *Child, NodeRole Role) {
645 Pending.assignRole(Range, Role);
648 void syntax::TreeBuilder::markExprChild(Expr *Child, NodeRole Role) {
652 Pending.assignRole(getExprRange(Child), Role);