UNPKG

574 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var LinterError = (function () {
4 function LinterError(lineNumber, message) {
5 if (lineNumber) {
6 this.lineError = lineNumber;
7 }
8 if (message) {
9 this.message = message;
10 }
11 }
12 LinterError.prototype.toString = function () {
13 return this.lineError + ": " + this.message;
14 };
15 LinterError.prototype.getLine = function () {
16 return this.lineError;
17 };
18 return LinterError;
19}());
20exports.LinterError = LinterError;