Lines Matching refs:symbol
30 import symbol
106 for value, name in symbol.sym_name.items():
149 if n == symbol.encoding_decl:
154 if n == symbol.single_input:
156 if n == symbol.file_input:
158 if n == symbol.eval_input:
160 if n == symbol.lambdef:
162 if n == symbol.funcdef:
164 if n == symbol.classdef:
180 doc = self.get_docstring(nodelist, symbol.file_input)
216 assert nodelist[1][0] == symbol.dotted_name
231 assert dec_nodelist[0] == symbol.decorator
236 assert nodelist[0][0] == symbol.decorators
237 if nodelist[1][0] == symbol.funcdef:
240 elif nodelist[1][0] == symbol.classdef:
253 assert nodelist[0][0] == symbol.decorators
263 if args[0] == symbol.varargslist:
282 if nodelist[2][0] == symbol.varargslist:
462 if nodelist[idx][0] == symbol.dotted_name:
565 if node[0] == symbol.stmt:
586 assert nodelist[0][0] == symbol.test
587 if len(nodelist) == 2 and nodelist[1][0] == symbol.comp_for:
594 if len(nodelist) == 1 and nodelist[0][0] == symbol.lambdef:
608 if len(nodelist) == 1 and nodelist[0][0] == symbol.lambdef:
887 assert node[0] == symbol.dotted_as_name
897 assert node[0] == symbol.dotted_as_names
905 assert node[0] == symbol.import_as_name
915 assert node[0] == symbol.import_as_names
945 if node[0] == symbol.except_clause:
988 assert node[0] == symbol.augassign
1006 if t in (symbol.exprlist, symbol.testlist, symbol.testlist_safe, symbol.testlist_comp):
1014 elif t == symbol.power:
1015 if node[1][0] != symbol.atom:
1027 elif t == symbol.atom:
1055 if node[i + 1][0] == symbol.list_for:
1108 if nodelist[i][0] == symbol.list_for:
1170 assert node[0] == symbol.list_iter
1174 assert node[0] == symbol.comp_iter
1214 assert nodelist[0] == symbol.dictorsetmaker
1222 elif nodelist[1][0] == symbol.comp_for:
1226 elif len(nodelist) > 3 and nodelist[3][0] == symbol.comp_for:
1284 and len(node) == 3 and node[2][0] == symbol.comp_for:
1296 if len(nodelist) == 3 and nodelist[2][0] == symbol.comp_for:
1325 sub[-1][0] != symbol.sliceop:
1364 if i < len(node) and node[i][0] == symbol.test:
1398 if n == symbol.suite:
1402 if sub[0] == symbol.stmt:
1405 if n == symbol.file_input:
1407 if sub[0] == symbol.stmt:
1410 if n == symbol.atom:
1417 if n == symbol.stmt or n == symbol.simple_stmt \
1418 or n == symbol.small_stmt:
1426 symbol.expr_stmt,
1427 symbol.testlist,
1428 symbol.testlist_safe,
1429 symbol.test,
1430 symbol.or_test,
1431 symbol.and_test,
1432 symbol.not_test,
1433 symbol.comparison,
1434 symbol.expr,
1435 symbol.xor_expr,
1436 symbol.and_expr,
1437 symbol.shift_expr,
1438 symbol.arith_expr,
1439 symbol.term,
1440 symbol.factor,
1441 symbol.power,
1457 symbol.funcdef,
1458 symbol.classdef,
1459 symbol.stmt,
1460 symbol.small_stmt,
1461 symbol.flow_stmt,
1462 symbol.simple_stmt,
1463 symbol.compound_stmt,
1464 symbol.expr_stmt,
1465 symbol.print_stmt,
1466 symbol.del_stmt,
1467 symbol.pass_stmt,
1468 symbol.break_stmt,
1469 symbol.continue_stmt,
1470 symbol.return_stmt,
1471 symbol.raise_stmt,
1472 symbol.import_stmt,
1473 symbol.global_stmt,
1474 symbol.exec_stmt,
1475 symbol.assert_stmt,
1476 symbol.if_stmt,
1477 symbol.while_stmt,
1478 symbol.for_stmt,
1479 symbol.try_stmt,
1480 symbol.with_stmt,
1481 symbol.suite,
1482 symbol.testlist,
1483 symbol.testlist_safe,
1484 symbol.test,
1485 symbol.and_test,
1486 symbol.not_test,
1487 symbol.comparison,
1488 symbol.exprlist,
1489 symbol.expr,
1490 symbol.xor_expr,
1491 symbol.and_expr,
1492 symbol.shift_expr,
1493 symbol.arith_expr,
1494 symbol.term,
1495 symbol.factor,
1496 symbol.power,
1497 symbol.atom,
1500 if hasattr(symbol, 'yield_stmt'):
1501 _legal_node_types.append(symbol.yield_stmt)
1502 if hasattr(symbol, 'yield_expr'):
1503 _legal_node_types.append(symbol.yield_expr)
1506 symbol.test,
1507 symbol.or_test,
1508 symbol.and_test,
1509 symbol.not_test,
1510 symbol.comparison,
1511 symbol.expr,
1512 symbol.xor_expr,
1513 symbol.and_expr,
1514 symbol.shift_expr,
1515 symbol.arith_expr,
1516 symbol.term,
1517 symbol.factor,
1521 for k, v in symbol.sym_name.items():