* 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.
()
| 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 |