Lines Matching defs:Visitor

132   DummyMatchVisitor Visitor;
133 Visitor.DisallowMatch("/nestedFunction/", 6, 1);
134 Visitor.ExpectMatch("/I/nestedFunction/", 6, 1);
135 Visitor.ExpectMatch("/I/method/", 8, 1);
136 Visitor.DisallowMatch("/anotherNestedFunction/", 10, 1);
137 Visitor.ExpectMatch("/I/anotherNestedFunction/", 10, 1);
138 Visitor.DisallowMatch("/innerVariable", 14, 1);
139 Visitor.ExpectMatch("/I/innerVariable", 14, 1);
140 Visitor.ExpectMatch("/outerVariable", 18, 1);
141 Visitor.DisallowMatch("/catF/", 22, 1);
142 Visitor.ExpectMatch("/Cat/catF/", 22, 1);
143 Visitor.ExpectMatch("/outerFunction/", 26, 1);
144 EXPECT_TRUE(Visitor.runOver(Source, DummyMatchVisitor::Lang_OBJC));
164 DummyMatchVisitor Visitor;
165 Visitor.ExpectMatch("/outerFunction/", 5, 1);
166 Visitor.ExpectMatch("/I/nestedFunction1/", 7, 20);
167 Visitor.ExpectMatch("/nestedFunction2/", 7, 20);
168 EXPECT_TRUE(Visitor.runOver(Source, DummyMatchVisitor::Lang_OBJC));
176 DummyMatchVisitor Visitor(/*EmitIndices=*/true);
177 Visitor.ExpectMatch("/f/T@1", 2, 11);
178 Visitor.ExpectMatch("/f/f/@2", 2, 20);
179 Visitor.ExpectMatch("/Class/U@4", 3, 11);
180 Visitor.ExpectMatch("/Class/@5", 3, 20);
181 Visitor.ExpectMatch("/Class/Class/@6", 3, 34);
182 EXPECT_TRUE(Visitor.runOver(Source));
207 DummyMatchVisitor Visitor(/*EmitDeclIndices=*/false,
213 Visitor.ExpectMatch("overridden TraverseStmt", 14, 3, 2);
214 Visitor.ExpectMatch("a@0", 14, 3);
215 Visitor.ExpectMatch("operator=@1", 14, 5);
216 Visitor.ExpectMatch("b@2", 14, 7);
217 Visitor.ExpectMatch("operator+@3", 14, 9);
218 Visitor.ExpectMatch("c@4", 14, 11);
219 Visitor.ExpectMatch("operator->@6", 15, 4);
220 Visitor.ExpectMatch("operator()@8", 16, 4);
221 Visitor.ExpectMatch("operator[]@10", 17, 4);
222 Visitor.ExpectMatch("operator++@11", 18, 3);
223 Visitor.ExpectMatch("operator++@14", 19, 4);
224 EXPECT_TRUE(Visitor.runOver(Source));