Parsing object declarations
This commit is contained in:
@@ -32,6 +32,7 @@ class Example(a : Foo, i : Int) : Bar(i), Some {
|
||||
|
||||
memberDeclaration
|
||||
: classObject
|
||||
: object
|
||||
: constructor
|
||||
: function
|
||||
: property
|
||||
@@ -99,4 +100,7 @@ setter
|
||||
|
||||
parameter
|
||||
: SimpleName ":" type
|
||||
;
|
||||
;
|
||||
|
||||
object
|
||||
: "object" SimpleName ":" ":" delegationSpecifier{","}? classBody? // Class body can be optional: this is a declaration
|
||||
@@ -124,6 +124,7 @@ declaration
|
||||
: extension
|
||||
: class
|
||||
: typedef
|
||||
: object
|
||||
;
|
||||
|
||||
statement
|
||||
|
||||
@@ -21,6 +21,7 @@ import
|
||||
toplevelObject
|
||||
: namespace
|
||||
: class
|
||||
: object
|
||||
: extension
|
||||
: function
|
||||
: property
|
||||
|
||||
Reference in New Issue
Block a user