Lines Matching refs:ext

110         t = self.parse(txt).ext[index]
117 t = self.parse(txt).ext[index]
123 self.assertEqual(len(t.ext), 2)
128 self.assertEqual(len(t2.ext), 0)
134 self.assertEqual(len(t.ext), 1)
141 self.assertEqual(len(t.ext), 0)
143 self.assertEqual(len(t.ext), 1)
144 self.assertEqual(expand_decl(t.ext[0]),
153 self.assert_coord(self.parse('int a;').ext[0], 1, 5)
161 self.assert_coord(f1.ext[0], 2, 13, 'test.c')
162 self.assert_coord(f1.ext[1], 3, 13, 'test.c')
163 self.assert_coord(f1.ext[2], 6, 13, 'test.c')
172 self.assert_coord(f1_1.ext[0].body.block_items[0], 3, 13, 'test.c')
173 self.assert_coord(f1_1.ext[0].body.block_items[1], 4, 13, 'test.c')
181 self.assert_coord(f1_2.ext[0].body.block_items[0].init, 3, 21, file='test.c')
187 self.assert_coord(self.parse(t2).ext[0], 99, 13)
196 self.assert_coord(f3.ext[0], 2, 13, 'test.c')
197 self.assert_coord(f3.ext[1], 3, 14, 'test.c')
198 self.assert_coord(f3.ext[2], 3000, 14, 'in.h')
211 self.assert_coord(f4.ext[0], 20, 13, 'restore.h')
212 self.assert_coord(f4.ext[1], 30, 14, 'includes/daween.ph')
213 self.assert_coord(f4.ext[2], 30, 17, 'includes/daween.ph')
214 self.assert_coord(f4.ext[3], 50000, 13, 'includes/daween.ph')
221 self.assert_coord(self.parse(t5).ext[0], 99, 9)
229 self.assert_coord(self.parse(t6).ext[0].decl.type.args.params[1], 3, 17)
239 forloop = s.ext[0].body.block_items[0]
482 d = self.parse(txt).ext[index]
495 pdecl = self.parse(d2).ext[0].type
511 compound = self.parse(e).ext[0].body
552 compound = self.parse(e).ext[0].body
581 compound = self.parse(e).ext[0].body
594 compound = ps1.ext[0].body.block_items[0].rvalue
600 compound = ps1.ext[0].body.block_items[1].rvalue
610 e1_type = self.parse(e1).ext[0].type.type
617 e2_type = self.parse(e2).ext[0].type.type
643 e3_type = self.parse(e3).ext[0].type.type
669 self.assertEqual(expand_decl(ps2.ext[0]),
674 self.assertEqual(expand_decl(ps2.ext[1]),
685 self.assertEqual(expand_decl(ps3.ext[3]),
694 self.assertEqual(expand_decl(ps4.ext[1]),
701 self.assertEqual(expand_decl(ps5.ext[0]),
712 self.assertEqual(expand_decl(self.parse(s1).ext[0]),
726 self.assertEqual(expand_decl(self.parse(s2).ext[0]),
733 self.assertEqual(expand_decl(self.parse(s21).ext[0]),
740 self.assertEqual(expand_decl(self.parse(s3).ext[0]),
748 self.assertEqual(expand_decl(self.parse(s4).ext[0]),
767 self.assertEqual(expand_decl(self.parse(s5).ext[0]),
792 self.assertEqual(expand_decl(s6_ast.ext[0]),
799 self.assertEqual(expand_decl(s6_ast.ext[1]),
820 self.assert_coord(s7_ast.ext[0].type.decls[2], 6, 22, 'test.c')
821 self.assert_coord(s7_ast.ext[0].type.decls[3], 78, 22,
850 self.assertEqual(expand_decl(s8_ast.ext[3]),
865 self.assertEqual(expand_decl(s1_ast.ext[0]),
880 self.assertEqual(expand_decl(s2_ast.ext[0]),
896 self.assertEqual(expand_decl(s1_ast.ext[0]),
920 self.assertEqual(expand_decl(self.parse(s1).ext[0]),
954 self.assertEqual(expand_decl(self.parse(s2).ext[0]),
986 self.assertEqual(expand_decl(self.parse(s3).ext[0]),
1041 self.assertEqual(expand_decl(s1_ast.ext[2]),
1050 self.assertEqual(s1_ast.ext[3].body.block_items[0].lvalue.field.name, 'Name')
1061 parsed_struct = self.parse(s1).ext[0]
1095 parsed_struct = self.parse(s1).ext[0]
1100 parsed_struct = self.parse(s2).ext[0]
1105 parsed_struct = self.parse(s3).ext[0]
1124 self.assertEqual(expand_decl(s1_ast.ext[1]),
1145 self.assertEqual(expand_decl(s2_ast.ext[2]),
1160 s3_type = self.parse(s3).ext[1].type
1354 return self.parse(str).ext[0]
1458 d3.ext[0].body.block_items[0].args.exprs[1].value,
1476 self.assertEqual(ps2.ext[0].funcspec, ['inline'])
1488 self.assertIsInstance(ps2.ext[0].body.block_items[1].type.dim, Assignment)
1489 self.assertIsInstance(ps2.ext[0].body.block_items[2].type.dim, ID)
1508 self.assertIsInstance(s1_ast.ext[0], Pragma)
1509 self.assertEqual(s1_ast.ext[0].string, 'bar')
1510 self.assertEqual(s1_ast.ext[0].coord.line, 2)
1512 self.assertIsInstance(s1_ast.ext[1].body.block_items[0], Pragma)
1513 self.assertEqual(s1_ast.ext[1].body.block_items[0].string, 'foo')
1514 self.assertEqual(s1_ast.ext[1].body.block_items[0].coord.line, 4)
1516 self.assertIsInstance(s1_ast.ext[1].body.block_items[2], Pragma)
1517 self.assertEqual(s1_ast.ext[1].body.block_items[2].string, 'baz')
1518 self.assertEqual(s1_ast.ext[1].body.block_items[2].coord.line, 6)
1520 self.assertIsInstance(s1_ast.ext[1].body.block_items[4], Pragma)
1521 self.assertEqual(s1_ast.ext[1].body.block_items[4].string, '')
1522 self.assertEqual(s1_ast.ext[1].body.block_items[4].coord.line, 10)
1524 self.assertIsInstance(s1_ast.ext[2].type.type.decls[0], Pragma)
1525 self.assertEqual(s1_ast.ext[2].type.type.decls[0].string, 'baz')
1526 self.assertEqual(s1_ast.ext[2].type.type.decls[0].coord.line, 13)
1555 self.assertIsInstance(s1_ast.ext[0].body.block_items[1], For)
1556 self.assertIsInstance(s1_ast.ext[0].body.block_items[1].stmt, Compound)
1557 self.assertIsInstance(s1_ast.ext[0].body.block_items[1].stmt.block_items[0], Pragma)
1558 self.assertIsInstance(s1_ast.ext[0].body.block_items[1].stmt.block_items[1], Assignment)
1559 self.assertIsInstance(s1_ast.ext[0].body.block_items[2], While)
1560 self.assertIsInstance(s1_ast.ext[0].body.block_items[2].stmt, Compound)
1561 self.assertIsInstance(s1_ast.ext[0].body.block_items[2].stmt.block_items[0], Pragma)
1562 self.assertIsInstance(s1_ast.ext[0].body.block_items[2].stmt.block_items[1], Assignment)
1563 self.assertIsInstance(s1_ast.ext[0].body.block_items[3], Label)
1564 self.assertIsInstance(s1_ast.ext[0].body.block_items[3].stmt, Compound)
1565 self.assertIsInstance(s1_ast.ext[0].body.block_items[3].stmt.block_items[0], Pragma)
1566 self.assertIsInstance(s1_ast.ext[0].body.block_items[3].stmt.block_items[1], Assignment)
1567 self.assertIsInstance(s1_ast.ext[0].body.block_items[4], If)
1568 self.assertIsInstance(s1_ast.ext[0].body.block_items[4].iftrue, Compound)
1569 self.assertIsInstance(s1_ast.ext[0].body.block_items[4].iftrue.block_items[0], Pragma)
1570 self.assertIsInstance(s1_ast.ext[0].body.block_items[4].iftrue.block_items[1], Assignment)
1571 self.assertIsInstance(s1_ast.ext[0].body.block_items[5], Switch)
1572 self.assertIsInstance(s1_ast.ext[0].body.block_items[5].stmt.stmts[0], Compound)
1573 self.assertIsInstance(s1_ast.ext[0].body.block_items[5].stmt.stmts[0].block_items[0],
1575 self.assertIsInstance(s1_ast.ext[0].body.block_items[5].stmt.stmts[0].block_items[1],
1785 self.assert_coord(ps1.ext[0].body.block_items[0], 3)
1786 self.assert_coord(ps1.ext[0].body.block_items[1], 4)
1787 self.assert_coord(ps1.ext[0].body.block_items[2], 4)
1788 self.assert_coord(ps1.ext[0].body.block_items[3], 6)
1816 switch = ps1.ext[0].body.block_items[0]
1844 switch = ps2.ext[0].body.block_items[0]
1867 switch = ps3.ext[0].body.block_items[0]
1936 self.assertEqual(p.ext[4].coord.line, 88)
1937 self.assertEqual(p.ext[4].coord.file, "./memmgr.h")
1939 self.assertEqual(p.ext[6].coord.line, 10)
1940 self.assertEqual(p.ext[6].coord.file, "memmgr.c")
1949 self.assertIsInstance(p.ext[0], Typedef)
1950 self.assertEqual(p.ext[0].coord.line, 213)
1951 self.assertEqual(p.ext[0].coord.file, r"D:\eli\cpp_stuff\libc_include/stddef.h")
1953 self.assertIsInstance(p.ext[-1], FuncDef)
1954 self.assertEqual(p.ext[-1].coord.line, 15)
1955 self.assertEqual(p.ext[-1].coord.file, "example_c_file.c")
1957 self.assertIsInstance(p.ext[-8], Typedef)
1958 self.assertIsInstance(p.ext[-8].type, TypeDecl)
1959 self.assertEqual(p.ext[-8].name, 'cookie_io_functions_t')
2004 self.assertEqual(expand_decl(s1_ast.ext[1].type.args.params[0]),
2006 self.assertEqual(expand_decl(s1_ast.ext[2].type.args.params[0]),
2019 self.assertEqual(expand_decl(s2_ast.ext[1].type.args.params[0]),
2023 self.assertEqual(expand_decl(s2_ast.ext[2].type.args.params[0]),
2039 self.assertEqual(expand_decl(s3_ast.ext[1].type.args.params[0]),
2041 self.assertEqual(expand_decl(s3_ast.ext[2].type.args.params[0]),
2058 self.assertEqual(expand_decl(s1_ast.ext[1].body.block_items[0]),
2060 self.assertEqual(expand_decl(s1_ast.ext[2]),
2071 self.assertEqual(expand_decl(s2_ast.ext[1].body.block_items[0]),
2084 self.assertEqual(expand_decl(s3_ast.ext[1].body.block_items[0]),
2086 self.assertEqual(expand_decl(s3_ast.ext[1].body.block_items[1]),
2098 self.assertEqual(expand_decl(s4_ast.ext[1].body.block_items[0]),
2100 self.assertEqual(expand_decl(s4_ast.ext[1].body.block_items[1]),
2122 items = s6_ast.ext[1].body.block_items
2136 items = s7_ast.ext[1].body.block_items
2149 items = s8_ast.ext[1].body.block_items
2176 self.assertEqual(expand_decl(s1_ast.ext[1].decl),
2193 self.assertEqual(expand_decl(s2_ast.ext[1]),