MCPcopy Index your code
hub / github.com/python/mypy / read_loc

Function read_loc

mypy/nativeparse.py:1674–1681  ·  view source on GitHub ↗
(data: ReadBuffer, node: Context)

Source from the content-addressed store, hash-verified

1672
1673
1674def read_loc(data: ReadBuffer, node: Context) -> None:
1675 expect_tag(data, LOCATION)
1676 line = read_int_bare(data)
1677 node.line = line
1678 column = read_int_bare(data)
1679 node.column = column
1680 node.end_line = line + read_int_bare(data)
1681 node.end_column = column + read_int_bare(data)
1682
1683
1684def strip_contents_from_if_stmt(stmt: IfStmt) -> None:

Callers 14

read_statementFunction · 0.85
read_parametersFunction · 0.85
read_func_defFunction · 0.85
read_class_defFunction · 0.85
read_type_alias_stmtFunction · 0.85
read_try_stmtFunction · 0.85
read_typeFunction · 0.85
read_call_typeFunction · 0.85
read_patternFunction · 0.85
read_blockFunction · 0.85
read_expressionFunction · 0.85
build_fstring_joinFunction · 0.85

Calls 1

expect_tagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…