Lines Matching full:children

96   EXPECT_EQ(Node.Children.size(), NumChildren);
135 for (const SelectedASTNode &Child : Node.Children) {
166 checkNode<FunctionDecl>(Node->Children[0],
173 Node->Children[0].dump(OS);
192 Node->Children[0],
206 EXPECT_EQ(Node->Children.size(), 1u);
208 Node->Children[0], SourceSelectionKind::ContainsSelection,
210 checkNode<ParmVarDecl>(Fn.Children[0],
213 Fn.Children[1], SourceSelectionKind::InsideSelection,
216 Body.Children[0], SourceSelectionKind::InsideSelection,
218 checkNode<ImplicitCastExpr>(Return.Children[0],
221 checkNode<DeclRefExpr>(Return.Children[0].Children[0],
230 EXPECT_EQ(Node->Children.size(), 1u);
232 Node->Children[0], SourceSelectionKind::ContainsSelection,
235 Fn.Children[1], SourceSelectionKind::ContainsSelectionEnd,
237 checkNode<ReturnStmt>(Body.Children[0],
246 EXPECT_EQ(Node->Children.size(), 1u);
248 Node->Children[0], SourceSelectionKind::ContainsSelection,
251 Fn.Children[0], SourceSelectionKind::ContainsSelection,
253 checkNode<ReturnStmt>(Body.Children[0],
262 EXPECT_EQ(Node->Children.size(), 1u);
264 Node->Children[0], SourceSelectionKind::ContainsSelection,
266 checkNode<ParmVarDecl>(Fn.Children[0],
269 Fn.Children[1], SourceSelectionKind::InsideSelection,
271 checkNode<ReturnStmt>(Body.Children[0],
286 EXPECT_EQ(Node->Children.size(), 2u);
287 checkNode<FunctionDecl>(Node->Children[0],
290 checkNode<FunctionDecl>(Node->Children[1],
316 EXPECT_EQ(Node->Children.size(), 1u);
318 Node->Children[0], SourceSelectionKind::ContainsSelection,
321 Fn.Children[0], SourceSelectionKind::ContainsSelection,
323 allChildrenOf(checkNode<CallExpr>(Body.Children[0],
327 allChildrenOf(checkNode<IfStmt>(Body.Children[1],
337 EXPECT_EQ(Node->Children.size(), 1u);
339 Node->Children[0], SourceSelectionKind::ContainsSelection,
342 Fn.Children[0], SourceSelectionKind::ContainsSelection,
344 checkNode<CallExpr>(Body.Children[0],
347 checkNode<IfStmt>(Body.Children[1],
350 checkNode<BinaryOperator>(Body.Children[2],
359 EXPECT_EQ(Node->Children.size(), 1u);
361 Node->Children[0], SourceSelectionKind::ContainsSelection,
364 Fn.Children[0], SourceSelectionKind::ContainsSelection,
366 checkNode<DeclStmt>(Body.Children[0],
369 checkNode<CallExpr>(Body.Children[1],
372 checkNode<IfStmt>(Body.Children[2],
375 checkNode<BinaryOperator>(Body.Children[3],
407 EXPECT_EQ(Node->Children.size(), 1u);
409 Node->Children[0], SourceSelectionKind::ContainsSelection,
412 Impl.Children[0], SourceSelectionKind::ContainsSelection,
423 EXPECT_EQ(Node->Children.size(), 1u);
425 Node->Children[0], SourceSelectionKind::ContainsSelection,
428 Impl.Children[0], SourceSelectionKind::ContainsSelection,
439 EXPECT_EQ(Node->Children.size(), 2u);
441 Node->Children[0], SourceSelectionKind::ContainsSelectionStart,
444 Impl.Children[0], SourceSelectionKind::InsideSelection,
449 Node->Children[1], SourceSelectionKind::ContainsSelectionEnd,
452 Cat.Children[0], SourceSelectionKind::InsideSelection,
463 EXPECT_EQ(Node->Children.size(), 1u);
464 checkNode<FunctionDecl>(Node->Children[0],
489 EXPECT_EQ(Node->Children.size(), 1u);
491 Node->Children[0], SourceSelectionKind::ContainsSelection,
493 checkNode<FunctionDecl>(Impl.Children[0],
515 EXPECT_EQ(Node->Children.size(), 1u);
517 Node->Children[0], SourceSelectionKind::InsideSelection,
519 checkNode<FieldDecl>(Record.Children[0],
536 EXPECT_EQ(Node->Children.size(), 1u);
538 Node->Children[0], SourceSelectionKind::ContainsSelection);
546 EXPECT_EQ(Node->Children.size(), 1u);
548 Node->Children[0], SourceSelectionKind::ContainsSelection,
550 return checkNode<CompoundStmt>(Fn.Children[0],
582 CS.Children[0], SourceSelectionKind::ContainsSelection,
585 CCast.Children[0], SourceSelectionKind::ContainsSelection,
588 POE.Children[0], SourceSelectionKind::ContainsSelection,
591 PRE.Children[0], SourceSelectionKind::InsideSelection,
593 checkNode<DeclRefExpr>(Cast.Children[0],
603 CS.Children[0], SourceSelectionKind::ContainsSelection,
606 POE.Children[0], SourceSelectionKind::ContainsSelection,
609 BinOp.Children[0], SourceSelectionKind::InsideSelection,
612 PRE.Children[0], SourceSelectionKind::InsideSelection,
614 checkNode<DeclRefExpr>(Cast.Children[0],
616 checkNode<IntegerLiteral>(BinOp.Children[1],
626 CS.Children[0], SourceSelectionKind::ContainsSelection,
629 CCast.Children[0], SourceSelectionKind::ContainsSelection,
632 POE.Children[0], SourceSelectionKind::ContainsSelection,
635 SRE.Children[0], SourceSelectionKind::InsideSelection,
637 checkNode<DeclRefExpr>(Cast.Children[0],
639 checkNode<IntegerLiteral>(SRE.Children[1],
649 CS.Children[0], SourceSelectionKind::ContainsSelection,
652 POE.Children[0], SourceSelectionKind::ContainsSelection,
655 BinOp.Children[0], SourceSelectionKind::InsideSelection,
658 SRE.Children[0], SourceSelectionKind::InsideSelection,
660 checkNode<DeclRefExpr>(Cast.Children[0],
663 SRE.Children[1], SourceSelectionKind::InsideSelection,
666 POE2.Children[0], SourceSelectionKind::InsideSelection,
669 PRE.Children[0], SourceSelectionKind::InsideSelection,
671 checkNode<DeclRefExpr>(Cast2.Children[0],
673 checkNode<DeclRefExpr>(BinOp.Children[1],