Lines Matching refs:Children

93   EXPECT_EQ(Node.Children.size(), NumChildren);  in checkNodeImpl()
132 for (const SelectedASTNode &Child : Node.Children) { in childKindVerifier()
162 checkNode<FunctionDecl>(Node->Children[0], in TEST()
169 Node->Children[0].dump(OS); in TEST()
188 Node->Children[0], in TEST()
202 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
204 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
206 checkNode<ParmVarDecl>(Fn.Children[0], in TEST()
209 Fn.Children[1], SourceSelectionKind::InsideSelection, in TEST()
212 Body.Children[0], SourceSelectionKind::InsideSelection, in TEST()
214 checkNode<ImplicitCastExpr>(Return.Children[0], in TEST()
217 checkNode<DeclRefExpr>(Return.Children[0].Children[0], in TEST()
226 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
228 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
231 Fn.Children[1], SourceSelectionKind::ContainsSelectionEnd, in TEST()
233 checkNode<ReturnStmt>(Body.Children[0], in TEST()
242 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
244 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
247 Fn.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
249 checkNode<ReturnStmt>(Body.Children[0], in TEST()
258 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
260 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
262 checkNode<ParmVarDecl>(Fn.Children[0], in TEST()
265 Fn.Children[1], SourceSelectionKind::InsideSelection, in TEST()
267 checkNode<ReturnStmt>(Body.Children[0], in TEST()
282 EXPECT_EQ(Node->Children.size(), 2u); in TEST()
283 checkNode<FunctionDecl>(Node->Children[0], in TEST()
286 checkNode<FunctionDecl>(Node->Children[1], in TEST()
312 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
314 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
317 Fn.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
319 allChildrenOf(checkNode<CallExpr>(Body.Children[0], in TEST()
323 allChildrenOf(checkNode<IfStmt>(Body.Children[1], in TEST()
333 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
335 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
338 Fn.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
340 checkNode<CallExpr>(Body.Children[0], in TEST()
343 checkNode<IfStmt>(Body.Children[1], in TEST()
346 checkNode<BinaryOperator>(Body.Children[2], in TEST()
355 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
357 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
360 Fn.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
362 checkNode<DeclStmt>(Body.Children[0], in TEST()
365 checkNode<CallExpr>(Body.Children[1], in TEST()
368 checkNode<IfStmt>(Body.Children[2], in TEST()
371 checkNode<BinaryOperator>(Body.Children[3], in TEST()
403 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
405 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
408 Impl.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
419 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
421 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
424 Impl.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
435 EXPECT_EQ(Node->Children.size(), 2u); in TEST()
437 Node->Children[0], SourceSelectionKind::ContainsSelectionStart, in TEST()
440 Impl.Children[0], SourceSelectionKind::InsideSelection, in TEST()
445 Node->Children[1], SourceSelectionKind::ContainsSelectionEnd, in TEST()
448 Cat.Children[0], SourceSelectionKind::InsideSelection, in TEST()
458 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
460 Node->Children[0], in TEST()
485 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
487 Node->Children[0], SourceSelectionKind::ContainsSelection, in TEST()
489 checkNode<FunctionDecl>(Impl.Children[0], in TEST()
511 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
513 Node->Children[0], SourceSelectionKind::InsideSelection, in TEST()
515 checkNode<FieldDecl>(Record.Children[0], in TEST()
531 EXPECT_EQ(Node->Children.size(), 1u); in TEST()
533 Node->Children[0], in TEST()
542 EXPECT_EQ(Node->Children.size(), 1u); in checkFnBody()
544 Node->Children[0], SourceSelectionKind::ContainsSelection, in checkFnBody()
546 return checkNode<CompoundStmt>(Fn.Children[0], in checkFnBody()
578 CS.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
581 CCast.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
584 POE.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
587 PRE.Children[0], SourceSelectionKind::InsideSelection, in TEST()
589 checkNode<DeclRefExpr>(Cast.Children[0], in TEST()
599 CS.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
602 POE.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
605 BinOp.Children[0], SourceSelectionKind::InsideSelection, in TEST()
608 PRE.Children[0], SourceSelectionKind::InsideSelection, in TEST()
610 checkNode<DeclRefExpr>(Cast.Children[0], in TEST()
612 checkNode<IntegerLiteral>(BinOp.Children[1], in TEST()
622 CS.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
625 CCast.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
628 POE.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
631 SRE.Children[0], SourceSelectionKind::InsideSelection, in TEST()
633 checkNode<DeclRefExpr>(Cast.Children[0], in TEST()
635 checkNode<IntegerLiteral>(SRE.Children[1], in TEST()
645 CS.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
648 POE.Children[0], SourceSelectionKind::ContainsSelection, in TEST()
651 BinOp.Children[0], SourceSelectionKind::InsideSelection, in TEST()
654 SRE.Children[0], SourceSelectionKind::InsideSelection, in TEST()
656 checkNode<DeclRefExpr>(Cast.Children[0], in TEST()
659 SRE.Children[1], SourceSelectionKind::InsideSelection, in TEST()
662 POE2.Children[0], SourceSelectionKind::InsideSelection, in TEST()
665 PRE.Children[0], SourceSelectionKind::InsideSelection, in TEST()
667 checkNode<DeclRefExpr>(Cast2.Children[0], in TEST()
669 checkNode<DeclRefExpr>(BinOp.Children[1], in TEST()