Remove unwraps from binary expression algorithm (#992)

This commit is contained in:
Adam Chalmers
2023-11-03 13:30:19 -05:00
committed by GitHub
parent 37a65b166b
commit 7c22bac638
4 changed files with 80 additions and 36 deletions

View File

@ -25,6 +25,13 @@ export class KCLLexicalError extends KCLError {
}
}
export class KCLInternalError extends KCLError {
constructor(msg: string, sourceRanges: [number, number][]) {
super('internal', msg, sourceRanges)
Object.setPrototypeOf(this, KCLSyntaxError.prototype)
}
}
export class KCLSyntaxError extends KCLError {
constructor(msg: string, sourceRanges: [number, number][]) {
super('syntax', msg, sourceRanges)