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

Method _newLine

source/python.js:1916–1921  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

1914 }
1915 }
1916 _newLine(position) {
1917 if ((this._get(position) === '\n' && this._get(position + 1) === '\r') || (this._get(position) === '\r' && this._get(position + 1) === '\n')) {
1918 return position + 2;
1919 }
1920 return position + 1;
1921 }
1922 _tokenize() {
1923 if (this._token.type !== '\n') {
1924 this._skipWhitespace();

Callers 3

readMethod · 0.45
_skipWhitespaceMethod · 0.45
_tokenizeMethod · 0.45

Calls 1

_getMethod · 0.45

Tested by

no test coverage detected