Lines Matching refs:parse

271         self._tu = self._indexer.parse(file_, self.clang_flags,
278 self._tu = self._indexer.parse(file_, self.clang_flags,
1633 def parse(self, tokzer): member in BlockParser
1644 blocks = BlockParser().parse(CppStringTokenizer('\n'.join(lines)))
1798 def parse(self, text, macros=None): member in OptimizerTests
1800 blocks = BlockParser().parse(CppStringTokenizer(text))
1814 self.assertEqual(self.parse(text), expected)
1824 self.assertEqual(self.parse(text), expected)
1837 self.assertEqual(self.parse(text), expected)
1850 self.assertEqual(self.parse(text), expected)
1867 self.assertEqual(self.parse(text), expected)
1884 self.assertEqual(self.parse(text, {"WILL_BE_ONE": "1"}), expected)
1904 self.assertEqual(self.parse(text), expected)
1923 self.assertEqual(self.parse(text, {"WILL_BE_ONE": "1"}), expected)
1943 self.assertEqual(self.parse(text, {"WILL_BE_ONE": "1"}), expected)
1953 self.assertEqual(self.parse(text, macros), expected)
1967 self.assertEqual(self.parse(text, macros), expected)
1980 self.assertEqual(self.parse(text), expected)
1991 self.assertEqual(self.parse(text), expected)
1994 def parse(self, text, structs): member in RemoveStructsTests
1996 blocks = BlockParser().parse(CppStringTokenizer(text))
2018 self.assertEqual(self.parse(text, set(["remove"])), expected)
2037 self.assertEqual(self.parse(text, set(["remove"])), expected)
2045 self.assertEqual(self.parse(text, set(["remove"])), expected)
2065 self.assertEqual(self.parse(text, set(["remove"])), expected)
2097 self.assertEqual(self.parse(text, set(["remove1", "remove2"])), expected)
2130 self.assertEqual(self.parse(text, set(["remove1", "remove2"])), expected)
2136 def parse(self, text, keep=None): member in FullPathTest
2140 blocks = BlockParser().parse(CppStringTokenizer(text))
2157 self.assertEqual(self.parse(text), expected)
2166 self.assertEqual(self.parse(text), expected)
2178 self.assertEqual(self.parse(text, set(["function"])), expected)
2183 self.assertEqual(self.parse(text), expected)
2188 self.assertEqual(self.parse(text, set(["variable"])), expected)
2193 self.assertEqual(self.parse(text), expected)
2208 self.assertEqual(self.parse(text), expected)
2219 self.assertEqual(self.parse(text, set(["function"])), expected)
2241 self.assertEqual(self.parse(text), expected)
2287 self.assertEqual(self.parse(text), expected)
2304 self.assertEqual(self.parse(text), expected)
2323 self.assertEqual(self.parse(text), expected)
2340 self.assertEqual(self.parse(text), expected)
2363 self.assertEqual(self.parse(text, set(["function"])), expected)
2384 self.assertEqual(self.parse(text), expected)
2409 self.assertEqual(self.parse(text), expected)
2427 self.assertEqual(self.parse(text), expected)
2448 self.assertEqual(self.parse(text), expected)
2459 self.assertEqual(self.parse(text), expected)