aboutsummaryrefslogtreecommitdiff
path: root/node_modules/snapdragon/lib/position.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/snapdragon/lib/position.js')
-rw-r--r--node_modules/snapdragon/lib/position.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/snapdragon/lib/position.js b/node_modules/snapdragon/lib/position.js
new file mode 100644
index 0000000..c859696
--- /dev/null
+++ b/node_modules/snapdragon/lib/position.js
@@ -0,0 +1,14 @@
+'use strict';
+
+var define = require('define-property');
+
+/**
+ * Store position for a node
+ */
+
+module.exports = function Position(start, parser) {
+ this.start = start;
+ this.end = { line: parser.line, column: parser.column };
+ define(this, 'content', parser.orig);
+ define(this, 'source', parser.options.source);
+};