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

Method snapshotPos

validator/js/engine/htmlparser.js:1070–1075  ·  view source on GitHub ↗

* Snapshots the previous internal position so that getLine / getCol will * return it. These snapshots happen as the parser enter / exits a tag. * This method is to be called only from within the parser.

()

Source from the content-addressed store, hash-verified

1068 * This method is to be called only from within the parser.
1069 */
1070 snapshotPos() {
1071 if (this.previousPos_ < this.lineByPos_.length) {
1072 this.line_ = this.lineByPos_[this.previousPos_];
1073 this.col_ = this.colByPos_[this.previousPos_];
1074 }
1075 }
1076
1077 /**
1078 * @inheritDoc

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected