Add support for const object members (#678)

This adds support for adding the `const` modifier to object members.

Such object members are also required to have the `local` modifier applied.

This follows SPICE-0011.
This commit is contained in:
Daniel Chao
2024-10-21 22:00:12 -07:00
committed by GitHub
parent 5057bb5b17
commit 0ee3d37524
13 changed files with 104 additions and 5 deletions
@@ -19,6 +19,9 @@ Modifier `{0}` is not applicable to properties.
invalidObjectMemberModifier=\
Modifier `{0}` is not applicable to object members.
invalidConstObjectMemberModifier=\
Modifier `const` can only be applied to object members that are also `local`.
objectMethodMustBeLocal=\
Method needs a `local` modifier because it is defined in an object, not a class.