项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

15 lines
320 B

  1. 'use strict';
  2. var define = require('define-property');
  3. /**
  4. * Store position for a node
  5. */
  6. module.exports = function Position(start, parser) {
  7. this.start = start;
  8. this.end = { line: parser.line, column: parser.column };
  9. define(this, 'content', parser.orig);
  10. define(this, 'source', parser.options.source);
  11. };