Closed ghostwriter closed 8 months ago
This patch adds the grammar for readonly class modifier, via the following changes:
readonly
spec/14-classes.md
tools/pre-commit
diff --git a/spec/14-classes.md b/spec/14-classes.md --- a/spec/14-classes.md +++ b/spec/14-classes.md class-declaration: - class-modifier? 'class' name class-base-clause? class-interface-clause? '{' class-member-declarations? '}' + class-modifiers? 'class' name class-base-clause? class-interface-clause? '{' class-member-declarations? '}' + +class-modifiers: + class-modifier + class-modifiers class-modifier class-modifier: 'abstract' 'final' + 'readonly'
This patch adds the grammar for
readonly
class modifier, via the following changes:spec/14-classes.md
tools/pre-commit