You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
None => write!(f,"Parse Error: unexpected end of file, expecting {} on line {} column {}", expected, span.0, span.1),
48
51
}
49
52
},
53
+
Self::MissingTypeForReadonlyProperty(class, prop, span) => write!(f,"Parse Error: Readonly property {}::${} must have type on line {} column {}", class, prop, span.0, span.1),
50
54
Self::MultipleModifiers(modifier, span) => write!(f,"Parse Error: Multiple {} modifiers are not allowed on line {} column {}", modifier, span.0, span.1),
51
55
Self::MultipleAccessModifiers( span) => write!(f,"Parse Error: Multiple access type modifiers are not allowed on line {} column {}", span.0, span.1),
52
56
Self::UnexpectedToken(message, span) => write!(f,"Parse Error: Unexpected token {} on line {} column {}", message, span.0, span.1),
53
57
Self::UnexpectedEndOfFile => write!(f,"Parse Error: unexpected end of file."),
54
-
Self::FinalModifierOnAbstractClassMember(span) => write!(f,"Parse Error: Cannot use the final modifier on an abstract class member on line {} column {}", span.0, span.1),
58
+
Self::FinalModifierOnAbstractClassMember(span) => write!(f,"Parse Error: Cannot use 'final' as an abstract class member modifier on line {} column {}", span.0, span.1),
55
59
Self::StaticModifierOnConstant(span) => write!(f,"Parse Error: Cannot use 'static' as constant modifier on line {} column {}", span.0, span.1),
56
60
Self::ReadonlyModifierOnConstant(span) => write!(f,"Parse Error: Cannot use 'readonly' as constant modifier on line {} column {}", span.0, span.1),
57
61
Self::FinalModifierOnPrivateConstant(span) => write!(f,"Parse Error: Private constant cannot be final as it is not visible to other classes on line {} column {}", span.0, span.1),
@@ -65,7 +69,9 @@ impl Display for ParseError {
65
69
Self::ConstructorInEnum(name, span) => write!(f,"Parse Error: Enum '{}' cannot have a constructor on line {} column {}", name, span.0, span.1),
66
70
Self::MissingCaseValueForBackedEnum(case, name, span) => write!(f,"Parse Error: Case `{}` of backed enum `{}` must have a value on line {} column {}", case, name, span.0, span.1),
67
71
Self::CaseValueForUnitEnum(case, name, span) => write!(f,"Parse Error: Case `{}` of unit enum `{}` must not have a value on line {} column {}", case, name, span.0, span.1),
68
-
Self::UnpredictableState(span) => write!(f,"Parse Error: Reached an unpredictable state on line {} column {}", span.0, span.1)
72
+
Self::UnpredictableState(span) => write!(f,"Parse Error: Reached an unpredictable state on line {} column {}", span.0, span.1),
73
+
Self::StaticPropertyUsingReadonlyModifier(class, prop, span) => write!(f,"Parse Error: Static property {}:${} cannot be readonly on line {} column {}", class, prop, span.0, span.1),
74
+
Self::ReadonlyPropertyHasDefaultValue(class, prop, span) => write!(f,"Parse Error: Readonly property {}:${} cannot have a default value on line {} column {}", class, prop, span.0, span.1),
0 commit comments