blob: cf2fe4b36f9ebb2d2d8e7c72010be8af9fc4442a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
export type PropertyType = 'i8' | 'i16' | 'i32' | 'i64' | 'ptr';
/**
* Class describing allocated property in parser's state
*/
export class Property {
constructor(public readonly ty: PropertyType, public readonly name: string) {
if (/^_/.test(name)) {
throw new Error(`Can't use internal property name: "${name}"`);
}
}
}
|