MCPcopy Index your code
hub / github.com/ampproject/amphtml / advancePos

Method advancePos

validator/js/engine/htmlparser.js:1060–1063  ·  view source on GitHub ↗

* Advances the internal position by the characters in {code tokenText}. * This method is to be called only from within the parser. * @param {string} tokenText The token text which we examine to advance the * line / column location within the doc.

(tokenText)

Source from the content-addressed store, hash-verified

1058 * line / column location within the doc.
1059 */
1060 advancePos(tokenText) {
1061 this.previousPos_ = this.pos_;
1062 this.pos_ += tokenText.length;
1063 }
1064
1065 /**
1066 * Snapshots the previous internal position so that getLine / getCol will

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected