intial
This commit is contained in:
15
node_modules/svelte-eslint-parser/lib/errors.js
generated
vendored
Normal file
15
node_modules/svelte-eslint-parser/lib/errors.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Svelte parse errors.
|
||||
*/
|
||||
export class ParseError extends SyntaxError {
|
||||
/**
|
||||
* Initialize this ParseError instance.
|
||||
*/
|
||||
constructor(message, offset, ctx) {
|
||||
super(message);
|
||||
this.index = offset;
|
||||
const loc = ctx.getLocFromIndex(offset);
|
||||
this.lineNumber = loc.line;
|
||||
this.column = loc.column;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user