MCPcopy Index your code
hub / github.com/desktop/desktop / reset

Method reset

app/src/lib/diff-parser.ts:94–98  ·  view source on GitHub ↗

* Resets the internal parser state so that it can be reused. * * This is done automatically at the end of each parse run.

()

Source from the content-addressed store, hash-verified

92 * This is done automatically at the end of each parse run.
93 */
94 private reset() {
95 this.ls = 0
96 this.le = -1
97 this.text = ''
98 }
99
100 /**
101 * Aligns the internal character pointers at the boundaries of

Callers 2

constructorMethod · 0.95
parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected