19 lines
417 B
TypeScript
19 lines
417 B
TypeScript
|
|
|
|
export interface CompilationError {
|
|
filePath: string;
|
|
line: number;
|
|
charStart?: number;
|
|
charEnd?: number;
|
|
message: string;
|
|
type: CompilationErrorType;
|
|
metaData?: Map<string, any>;
|
|
}
|
|
|
|
export enum CompilationErrorType {
|
|
Syntax = "Syntax",
|
|
Semantic = "Semantic",
|
|
Runtime = "Runtime",
|
|
DependencyCircular = "DependencyCircular",
|
|
DependencyNotFound = "DependencyNotFound"
|
|
} |