/external/python/cpython3/Include/internal/ |
D | pycore_ast.h | 328 int end_lineno; member 485 int end_lineno; member 509 int end_lineno; member 529 int end_lineno; member 538 int end_lineno; member 547 int end_lineno; member 610 int end_lineno; member 637 col_offset, int end_lineno, int end_col_offset, 643 end_lineno, int end_col_offset, PyArena *arena); 647 col_offset, int end_lineno, int end_col_offset, PyArena [all …]
|
D | pycore_ast_state.h | 181 PyObject *end_lineno; member
|
/external/python/cpython3/Lib/ |
D | pyclbr.py | 55 def __init__(self, module, name, file, lineno, end_lineno, parent): argument 60 self.end_lineno = end_lineno 71 parent=None, is_async=False, *, end_lineno=None): argument 72 super().__init__(module, name, file, lineno, end_lineno, parent) 81 parent=None, *, end_lineno=None): argument 82 super().__init__(module, name, file, lineno, end_lineno, parent) 89 def _nest_function(ob, func_name, lineno, end_lineno, is_async=False): argument 92 parent=ob, is_async=is_async, end_lineno=end_lineno) 94 def _nest_class(ob, class_name, lineno, end_lineno, super=None): argument 97 parent=ob, end_lineno=end_lineno) [all …]
|
D | ast.py | 203 def _fix(node, lineno, col_offset, end_lineno, end_col_offset): argument 211 node.end_lineno = end_lineno 213 end_lineno = node.end_lineno 225 _fix(child, lineno, col_offset, end_lineno, end_col_offset) 241 and (end_lineno := getattr(child, "end_lineno", 0)) is not None 243 child.end_lineno = end_lineno + n 345 if node.end_lineno is None or node.end_col_offset is None: 348 end_lineno = node.end_lineno - 1 355 if end_lineno == lineno: 364 last = lines[end_lineno].encode()[:end_col_offset].decode() [all …]
|
D | traceback.py | 514 end_lno = exc_value.end_lineno 515 self.end_lineno = str(end_lno) if end_lno is not None else None
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 195 Py_CLEAR(state->end_lineno); in _PyAST_Fini() 301 if ((state->end_lineno = PyUnicode_InternFromString("end_lineno")) == NULL) return 0; in init_identifiers() 1153 if (PyObject_SetAttr(state->stmt_type, state->end_lineno, Py_None) == -1) in init_types() 1327 if (PyObject_SetAttr(state->expr_type, state->end_lineno, Py_None) == -1) in init_types() 1696 if (PyObject_SetAttr(state->excepthandler_type, state->end_lineno, Py_None) in init_types() 1728 if (PyObject_SetAttr(state->arg_type, state->end_lineno, Py_None) == -1) in init_types() 1740 if (PyObject_SetAttr(state->keyword_type, state->end_lineno, Py_None) == -1) in init_types() 1753 if (PyObject_SetAttr(state->alias_type, state->end_lineno, Py_None) == -1) in init_types() 1946 type_comment, int lineno, int col_offset, int end_lineno, in _PyAST_FunctionDef() argument 1972 p->end_lineno = end_lineno; in _PyAST_FunctionDef() [all …]
|
D | symtable.c | 53 (x)->lineno, (x)->col_offset, (x)->end_lineno, (x)->end_col_offset 61 int end_lineno, int end_col_offset) in ste_new() argument 95 ste->ste_end_lineno = end_lineno; in ste_new() 208 int end_lineno, int end_col_offset); 981 int end_lineno, int end_col_offset) in symtable_enter_block() argument 985 ste = ste_new(st, name, block, ast, lineno, col_offset, end_lineno, end_col_offset); in symtable_enter_block() 1035 int lineno, int col_offset, int end_lineno, int end_col_offset) in symtable_add_def_helper() argument 1053 end_lineno, end_col_offset + 1); in symtable_add_def_helper() 1075 end_lineno, end_col_offset + 1); in symtable_add_def_helper() 1121 int lineno, int col_offset, int end_lineno, int end_col_offset) in symtable_add_def() argument [all …]
|
D | pythonrun.c | 515 Py_ssize_t* end_lineno, Py_ssize_t* end_offset, in parse_syntax_error() argument 524 _Py_IDENTIFIER(end_lineno); in parse_syntax_error() 577 *end_lineno = *lineno; in parse_syntax_error() 580 *end_lineno = *lineno; in parse_syntax_error() 587 *end_lineno = hold; in parse_syntax_error() 607 *end_lineno = *lineno; in parse_syntax_error() 915 Py_ssize_t lineno, offset, end_lineno, end_offset; in print_exception() local 920 &end_lineno, &end_offset, &text)) in print_exception() 943 if (end_lineno > lineno) { in print_exception()
|
D | errors.c | 1576 int end_lineno, int end_col_offset) in PyErr_SyntaxLocationObjectEx() argument 1581 _Py_IDENTIFIER(end_lineno); in PyErr_SyntaxLocationObjectEx() 1616 if (end_lineno >= 0) { in PyErr_SyntaxLocationObjectEx() 1617 tmp = PyLong_FromLong(end_lineno); in PyErr_SyntaxLocationObjectEx() 1698 int end_lineno, int end_col_offset) { in PyErr_RangedSyntaxLocationObject() argument 1699 PyErr_SyntaxLocationObjectEx(filename, lineno, col_offset, end_lineno, end_col_offset); in PyErr_RangedSyntaxLocationObject()
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | parser.py | 173 end_lineno = getattr(n, 'end_lineno', None) 174 if end_lineno is not None: 175 n.end_lineno = end_lineno - minl 285 end_lineno = getattr(n, 'end_lineno', None) 286 if end_lineno is not None: 288 lineno = end_lineno
|
/external/python/cpython3/Parser/ |
D | pegen.h | 38 int lineno, col_offset, end_lineno, end_col_offset; member 146 Py_ssize_t end_lineno, Py_ssize_t end_col_offset, 161 Py_ssize_t end_lineno, Py_ssize_t end_col_offset, in RAISE_ERROR_KNOWN_LOCATION() argument 168 …_PyPegen_raise_error_known_location(p, errtype, lineno, _col_offset, end_lineno, _end_col_offset, … in RAISE_ERROR_KNOWN_LOCATION() 174 #define EXTRA_EXPR(head, tail) head->lineno, (head)->col_offset, (tail)->end_lineno, (tail)->end_co… 179 …RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, (b)->end_lineno, (b… 181 …RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, (a)->end_lineno, (a… 288 int lineno, int col_offset, int end_lineno,
|
D | Python.asdl | 54 attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) 93 attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) 109 attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) 115 attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) 119 attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) 123 attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) 141 attributes (int lineno, int col_offset, int end_lineno, int end_col_offset)
|
D | pegen.c | 38 a->lineno, a->col_offset, a->end_lineno, a->end_col_offset, in _PyPegen_add_type_comment_to_arg() 422 …_PyPegen_raise_error_known_location(p, errtype, t->lineno, col_offset, t->end_lineno, end_col_offs… in _PyPegen_raise_error() 462 Py_ssize_t end_lineno, Py_ssize_t end_col_offset, in _PyPegen_raise_error_known_location() argument 471 if (end_lineno == CURRENT_POS) { in _PyPegen_raise_error_known_location() 472 end_lineno = p->tok->lineno; in _PyPegen_raise_error_known_location() 545 …tmp = Py_BuildValue("(OiiNii)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_… in _PyPegen_raise_error_known_location() 707 int end_lineno = p->tok->lineno; in initialize_token() local 714 token->end_lineno = end_lineno; in initialize_token() 997 return _PyAST_Name(id, Load, t->lineno, t->col_offset, t->end_lineno, in _PyPegen_name_from_token() 1138 return _PyAST_Constant(c, NULL, t->lineno, t->col_offset, t->end_lineno, in _PyPegen_number_token() [all …]
|
D | parser.c | 1622 int _end_lineno = _token->end_lineno; in statement_newline_rule() 1824 int _end_lineno = _token->end_lineno; in simple_stmt_rule() 1920 int _end_lineno = _token->end_lineno; in simple_stmt_rule() 2016 int _end_lineno = _token->end_lineno; in simple_stmt_rule() 2049 int _end_lineno = _token->end_lineno; in simple_stmt_rule() 2362 int _end_lineno = _token->end_lineno; in assignment_rule() 2404 int _end_lineno = _token->end_lineno; in assignment_rule() 2445 int _end_lineno = _token->end_lineno; in assignment_rule() 2487 int _end_lineno = _token->end_lineno; in assignment_rule() 2920 int _end_lineno = _token->end_lineno; in global_stmt_rule() [all …]
|
D | string_parser.c | 810 last_token->end_lineno, in fstring_find_expr() 1056 last_token->end_lineno, last_token->end_col_offset, in make_str_node_and_del() 1217 last_token->end_lineno, last_token->end_col_offset, in _PyPegen_FstringParser_Finish()
|
/external/python/cpython3/Lib/test/ |
D | test_syntax.py | 1283 lineno=None, offset=None, end_lineno=None, end_offset=None): argument 1303 if end_lineno is not None: 1304 self.assertEqual(err.end_lineno, end_lineno) 1451 lineno=1, end_lineno=1, offset=11, end_offset=53)
|
D | test_pyclbr.py | 179 f0 = mb.Function(m, 'f0', f, 1, end_lineno=5) 183 C0 = mb.Class(m, 'C0', None, f, 6, end_lineno=14) 206 t1 = type(o1), o1.name, o1.file, o1.module, o1.lineno, o1.end_lineno 207 t2 = type(o2), o2.name, o2.file, o2.module, o2.lineno, o2.end_lineno
|
D | test_ast.py | 23 result[-1] += (t.end_lineno, t.end_col_offset) 345 self.assertEqual(alias.end_lineno, 1) 354 self.assertEqual(alias.end_lineno, 1) 663 self.assertEqual(parent_binop.end_lineno, 2) 668 self.assertEqual(child_binop.end_lineno, 2) 673 self.assertEqual(grandchild_binop.end_lineno, 1) 838 src = ast.Call(col_offset=1, lineno=1, end_lineno=1, end_col_offset=1) 840 self.assertIsNone(new.end_lineno) 887 self.assertIsNone(ast.increment_lineno(src).end_lineno) 980 self.assertEqual(starred_expr.end_lineno, 1) [all …]
|
D | test_fstring.py | 299 self.assertEqual(name.end_lineno, 1) 365 self.assertEqual(call.end_lineno, 3) 389 self.assertEqual(wat1.end_lineno, 6) 396 self.assertEqual(call.end_lineno, 5) 402 self.assertEqual(wat2.end_lineno, 6)
|
D | test_exceptions.py | 2434 filename, lineno, offset, error, end_lineno, end_offset = args 2437 self.assertEqual(end_lineno, the_exception.end_lineno) 2449 self.assertEqual(None, the_exception.end_lineno)
|
/external/python/cpython3/Include/cpython/ |
D | pyerrors.h | 23 PyObject *end_lineno; member 157 int end_lineno,
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_browser.py | 64 C0 = mb.Class(module, 'C0', ['base'], fname, 1, end_lineno=9) 69 f0 = mb.Function(module, 'f0', fname, 11, end_lineno=15)
|
/external/python/cpython3/Objects/ |
D | exceptions.c | 1498 self->end_lineno = NULL; in SyntaxError_init() 1503 &self->end_lineno, &self->end_offset)) { in SyntaxError_init() 1512 Py_XINCREF(self->end_lineno); in SyntaxError_init() 1516 if (self->end_lineno != NULL && self->end_offset == NULL) { in SyntaxError_init() 1531 Py_CLEAR(self->end_lineno); in SyntaxError_clear() 1553 Py_VISIT(self->end_lineno); in SyntaxError_traverse() 1645 {"end_lineno", T_OBJECT, offsetof(PySyntaxErrorObject, end_lineno), 0,
|
/external/python/cpython3/Doc/library/ |
D | ast.rst | 79 end_lineno 83 :attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno`, and 84 :attr:`end_col_offset` attributes. The :attr:`lineno` and :attr:`end_lineno` 2006 If some location information (:attr:`lineno`, :attr:`end_lineno`, 2033 Copy source location (:attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno`,
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.10.0a5.rst | 460 Add an 'end_lineno' attribute to the Class and Function objects that appear
|