20 lines
895 B
Rust
20 lines
895 B
Rust
pub type ErrorCode = usize;
|
|
|
|
pub const SYMBOL_NOT_FOUND: ErrorCode = 13;
|
|
pub const SYMBOL_ALREADY_DECLARED: ErrorCode = 14;
|
|
pub const BINARY_INCOMPATIBLE_TYPES: ErrorCode = 15;
|
|
pub const ASSIGN_MISMATCHED_TYPES: ErrorCode = 16;
|
|
pub const ASSIGN_NO_L_VALUE: ErrorCode = 17;
|
|
pub const ASSIGN_LHS_IMMUTABLE: ErrorCode = 18;
|
|
pub const INCORRECT_GENERIC_ARGUMENTS: ErrorCode = 19;
|
|
pub const GENERIC_ARGUMENT_TYPE_MISMATCH: ErrorCode = 20;
|
|
pub const FIELD_MULTIPLE_INIT: ErrorCode = 21;
|
|
pub const FIELD_UNINIT: ErrorCode = 22;
|
|
pub const SELF_FIELD_USED_IN_INIT: ErrorCode = 23;
|
|
pub const SELF_METHOD_USED_IN_INIT: ErrorCode = 24;
|
|
pub const SELF_CONSTRUCTOR_USED_IN_INIT: ErrorCode = 25;
|
|
pub const OUTER_CLASS_FIELD_USED_IN_INIT: ErrorCode = 26;
|
|
pub const OUTER_CLASS_METHOD_USED_IN_INIT: ErrorCode = 27;
|
|
pub const FIELD_NO_TYPE_OR_INIT: ErrorCode = 28;
|
|
pub const CLASS_NO_CONSTRUCTOR: ErrorCode = 29;
|