Skip to content

Commit e433c0c

Browse files
committed
Add grammar for augmenting methods.
1 parent 6579f38 commit e433c0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

working/augmentation-libraries/feature-specification.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,14 @@ declaration ::= 'external' factoryConstructorSignature
873873
| 'augment'? redirectingFactoryConstructorSignature
874874
| 'augment'? constantConstructorSignature (redirection | initializers)?
875875
| 'augment'? constructorSignature (redirection | initializers)?
876+
877+
methodSignature ::= constructorSignature initializers?
878+
| factoryConstructorSignature
879+
| 'augment'? 'static'? functionSignature
880+
| 'augment'? 'static'? getterSignature
881+
| 'augment'? 'static'? setterSignature
882+
| 'augment'? operatorSignature
883+
876884
```
877885

878886
**TODO: Define the grammar for the various `augmented` expressions.**

0 commit comments

Comments
 (0)