refactor: move compile into compiler-core

This commit is contained in:
Evan You
2019-09-20 12:16:19 -04:00
parent 3e1973f065
commit 8a923f6a52
12 changed files with 106 additions and 77 deletions

View File

@@ -5,6 +5,10 @@ export interface CompilerError extends SyntaxError {
loc: Position
}
export function defaultOnError(error: CompilerError) {
throw error
}
export function createCompilerError(
code: ErrorCodes,
loc: Position