Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
320 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var define = require('define-property');
|
---|
| 4 |
|
---|
| 5 | /**
|
---|
| 6 | * Store position for a node
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | module.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 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.