MCPcopy Index your code
hub / github.com/lutzroeder/netron / file_line_col

Method file_line_col

source/python.js:13580–13587  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13578 return this._source_view;
13579 }
13580 file_line_col() {
13581 if (!this._source_view || this.source().filename() === null) {
13582 return null;
13583 }
13584 const lineno = this._source_view.lineno_for_offset(this._start);
13585 const col_offset = this._start - this._source_view.offset_for_line(lineno);
13586 return [this._source_view.filename(), this._source_view.lineno_to_source_lineno(lineno), col_offset];
13587 }
13588 start() {
13589 return this._start;
13590 }

Callers 2

printMethod · 0.80
toStringMethod · 0.80

Calls 5

filenameMethod · 0.80
lineno_for_offsetMethod · 0.80
offset_for_lineMethod · 0.80
sourceMethod · 0.45

Tested by

no test coverage detected