blob: c859696adc84f6b6aa4ae088d96d5552b29ce6bb [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var define = require('define-property');
4
5/**
6 * Store position for a node
7 */
8
9module.exports = function Position(start, parser) {
10 this.start = start;
11 this.end = { line: parser.line, column: parser.column };
12 define(this, 'content', parser.orig);
13 define(this, 'source', parser.options.source);
14};