
js.prompto.parser.Location.js Maven / Gradle / Ivy
function Location(token, isEnd) {
this.index = token.startIndex;
this.line = token.line;
this.column = token.column;
if(isEnd && token.text!==null) {
this.index += token.text.length;
this.column += token.text.length;
}
}
exports.Location = Location;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy