aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babylon/lib/parser/location.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/babylon/lib/parser/location.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/babylon/lib/parser/location.js')
-rw-r--r--node_modules/babylon/lib/parser/location.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/node_modules/babylon/lib/parser/location.js b/node_modules/babylon/lib/parser/location.js
deleted file mode 100644
index 61a9a27cc..000000000
--- a/node_modules/babylon/lib/parser/location.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-
-var _location = require("../util/location");
-
-var _index = require("./index");
-
-var _index2 = _interopRequireDefault(_index);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var pp = _index2.default.prototype;
-
-// This function is used to raise exceptions on parse errors. It
-// takes an offset integer (into the current `input`) to indicate
-// the location of the error, attaches the position to the end
-// of the error message, and then raises a `SyntaxError` with that
-// message.
-
-pp.raise = function (pos, message) {
- var loc = (0, _location.getLineInfo)(this.input, pos);
- message += " (" + loc.line + ":" + loc.column + ")";
- var err = new SyntaxError(message);
- err.pos = pos;
- err.loc = loc;
- throw err;
-}; \ No newline at end of file