Attributes on types
This commit is contained in:
@@ -42,7 +42,7 @@ typeParameter
|
|||||||
;
|
;
|
||||||
|
|
||||||
typeConstraint
|
typeConstraint
|
||||||
: attributes userType ":" (userType | "this") // "this" for self-type
|
: userType ":" (userType | "this") // "this" for self-type
|
||||||
// TODO: other constraints, maybe
|
// TODO: other constraints, maybe
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ memberDeclaration
|
|||||||
: classObject
|
: classObject
|
||||||
: constructor
|
: constructor
|
||||||
: decomposer
|
: decomposer
|
||||||
: method
|
: function
|
||||||
: property
|
: property
|
||||||
: class
|
: class
|
||||||
;
|
;
|
||||||
@@ -68,7 +68,7 @@ decomposer // TODO: consider other names
|
|||||||
: attributes "decomposer" SimpleName "(" (attributes SimpleName){","} ")" // Public properties only
|
: attributes "decomposer" SimpleName "(" (attributes SimpleName){","} ")" // Public properties only
|
||||||
;
|
;
|
||||||
|
|
||||||
method
|
function
|
||||||
: modifiers "fun" functionRest
|
: modifiers "fun" functionRest
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ toplevelObject
|
|||||||
: namespace
|
: namespace
|
||||||
: class
|
: class
|
||||||
: extension
|
: extension
|
||||||
: method
|
: function
|
||||||
: property
|
: property
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ type
|
|||||||
: userType
|
: userType
|
||||||
: functionType
|
: functionType
|
||||||
: tupleType
|
: tupleType
|
||||||
|
: attributes type
|
||||||
;
|
;
|
||||||
|
|
||||||
userType
|
userType
|
||||||
: SimpleName{"."} ("<" (varianceSpecifier? type){","} ">")?
|
: SimpleName{"."} ("<" (modifiers type){","} ">")?
|
||||||
;
|
;
|
||||||
|
|
||||||
functionType
|
functionType
|
||||||
|
|||||||
Reference in New Issue
Block a user