Lines Matching refs:NodeRole
23 raw_ostream &syntax::operator<<(raw_ostream &OS, NodeRole R) { in operator <<()
25 case syntax::NodeRole::Detached: in operator <<()
27 case syntax::NodeRole::Unknown: in operator <<()
29 case syntax::NodeRole::OpenParen: in operator <<()
31 case syntax::NodeRole::CloseParen: in operator <<()
33 case syntax::NodeRole::IntroducerKeyword: in operator <<()
35 case syntax::NodeRole::LiteralToken: in operator <<()
37 case syntax::NodeRole::ArrowToken: in operator <<()
39 case syntax::NodeRole::ExternKeyword: in operator <<()
41 case syntax::NodeRole::TemplateKeyword: in operator <<()
43 case syntax::NodeRole::BodyStatement: in operator <<()
45 case syntax::NodeRole::ListElement: in operator <<()
47 case syntax::NodeRole::ListDelimiter: in operator <<()
49 case syntax::NodeRole::CaseValue: in operator <<()
51 case syntax::NodeRole::ReturnValue: in operator <<()
53 case syntax::NodeRole::ThenStatement: in operator <<()
55 case syntax::NodeRole::ElseKeyword: in operator <<()
57 case syntax::NodeRole::ElseStatement: in operator <<()
59 case syntax::NodeRole::OperatorToken: in operator <<()
61 case syntax::NodeRole::Operand: in operator <<()
63 case syntax::NodeRole::LeftHandSide: in operator <<()
65 case syntax::NodeRole::RightHandSide: in operator <<()
67 case syntax::NodeRole::Expression: in operator <<()
69 case syntax::NodeRole::Statement: in operator <<()
71 case syntax::NodeRole::Condition: in operator <<()
73 case syntax::NodeRole::Message: in operator <<()
75 case syntax::NodeRole::Declarator: in operator <<()
77 case syntax::NodeRole::Declaration: in operator <<()
79 case syntax::NodeRole::Size: in operator <<()
81 case syntax::NodeRole::Parameters: in operator <<()
83 case syntax::NodeRole::TrailingReturn: in operator <<()
85 case syntax::NodeRole::UnqualifiedId: in operator <<()
87 case syntax::NodeRole::Qualifier: in operator <<()
89 case syntax::NodeRole::SubExpression: in operator <<()
91 case syntax::NodeRole::Object: in operator <<()
93 case syntax::NodeRole::AccessToken: in operator <<()
95 case syntax::NodeRole::Member: in operator <<()
97 case syntax::NodeRole::Callee: in operator <<()
99 case syntax::NodeRole::Arguments: in operator <<()
101 case syntax::NodeRole::Declarators: in operator <<()
201 findChild(syntax::NodeRole::LeftHandSide)); in getLhs()
205 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OperatorToken)); in getOperatorToken()
209 return cast_or_null<syntax::Expression>(findChild(syntax::NodeRole::Operand)); in getOperand()
213 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OperatorToken)); in getOperatorToken()
218 findChild(syntax::NodeRole::RightHandSide)); in getRhs()
223 findChild(syntax::NodeRole::IntroducerKeyword)); in getSwitchKeyword()
228 findChild(syntax::NodeRole::BodyStatement)); in getBody()
233 findChild(syntax::NodeRole::IntroducerKeyword)); in getCaseKeyword()
238 findChild(syntax::NodeRole::CaseValue)); in getCaseValue()
243 findChild(syntax::NodeRole::BodyStatement)); in getBody()
248 findChild(syntax::NodeRole::IntroducerKeyword)); in getDefaultKeyword()
253 findChild(syntax::NodeRole::BodyStatement)); in getBody()
258 findChild(syntax::NodeRole::IntroducerKeyword)); in getIfKeyword()
263 findChild(syntax::NodeRole::ThenStatement)); in getThenStatement()
267 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::ElseKeyword)); in getElseKeyword()
272 findChild(syntax::NodeRole::ElseStatement)); in getElseStatement()
277 findChild(syntax::NodeRole::IntroducerKeyword)); in getForKeyword()
282 findChild(syntax::NodeRole::BodyStatement)); in getBody()
287 findChild(syntax::NodeRole::IntroducerKeyword)); in getWhileKeyword()
292 findChild(syntax::NodeRole::BodyStatement)); in getBody()
297 findChild(syntax::NodeRole::IntroducerKeyword)); in getContinueKeyword()
302 findChild(syntax::NodeRole::IntroducerKeyword)); in getBreakKeyword()
307 findChild(syntax::NodeRole::IntroducerKeyword)); in getReturnKeyword()
312 findChild(syntax::NodeRole::ReturnValue)); in getReturnValue()
317 findChild(syntax::NodeRole::IntroducerKeyword)); in getForKeyword()
322 findChild(syntax::NodeRole::BodyStatement)); in getBody()
327 findChild(syntax::NodeRole::Expression)); in getExpression()
331 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OpenParen)); in getLbrace()
337 assert(C->getRole() == syntax::NodeRole::Statement); in getStatements()
344 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::CloseParen)); in getRbrace()
349 findChild(syntax::NodeRole::Condition)); in getCondition()
353 return cast_or_null<syntax::Expression>(findChild(syntax::NodeRole::Message)); in getMessage()
360 if (C->getRole() == syntax::NodeRole::Declarator) in getDeclarators()
368 findChild(syntax::NodeRole::IntroducerKeyword)); in getTemplateKeyword()
373 findChild(syntax::NodeRole::Declaration)); in getDeclaration()
378 findChild(syntax::NodeRole::IntroducerKeyword)); in getTemplateKeyword()
382 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::ExternKeyword)); in getExternKeyword()
387 findChild(syntax::NodeRole::Declaration)); in getDeclaration()
391 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OpenParen)); in getLparen()
395 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::CloseParen)); in getRparen()
399 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OpenParen)); in getLbracket()
403 return cast_or_null<syntax::Expression>(findChild(syntax::NodeRole::Size)); in getSize()
407 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::CloseParen)); in getRbracket()
411 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::ArrowToken)); in getArrowToken()
416 findChild(syntax::NodeRole::Declarator)); in getDeclarator()
420 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::OpenParen)); in getLparen()
426 findChild(syntax::NodeRole::Parameters)); in getParameters()
430 return cast_or_null<syntax::Leaf>(findChild(syntax::NodeRole::CloseParen)); in getRparen()
436 findChild(syntax::NodeRole::TrailingReturn)); in getTrailingReturn()