php-parser
Version:
Parse PHP code from JS and returns its AST
23 lines (20 loc) • 562 B
JavaScript
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
;
/**
* Each Position object consists of a line number (1-indexed) and a column number (0-indexed):
* @constructor Position
* @memberOf module:php-parser
* @property {number} line
* @property {number} column
* @property {number} offset
*/
const Position = function (line, column, offset) {
this.line = line;
this.column = column;
this.offset = offset;
};
module.exports = Position;