forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse_util.d.ts
More file actions
30 lines (30 loc) · 849 Bytes
/
parse_util.d.ts
File metadata and controls
30 lines (30 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export declare class ParseLocation {
file: ParseSourceFile;
offset: number;
line: number;
col: number;
constructor(file: ParseSourceFile, offset: number, line: number, col: number);
toString(): string;
}
export declare class ParseSourceFile {
content: string;
url: string;
constructor(content: string, url: string);
}
export declare class ParseSourceSpan {
start: ParseLocation;
end: ParseLocation;
constructor(start: ParseLocation, end: ParseLocation);
toString(): string;
}
export declare enum ParseErrorLevel {
WARNING = 0,
FATAL = 1,
}
export declare abstract class ParseError {
span: ParseSourceSpan;
msg: string;
level: ParseErrorLevel;
constructor(span: ParseSourceSpan, msg: string, level?: ParseErrorLevel);
toString(): string;
}