Attributes on types

This commit is contained in:
Andrey Breslav
2010-12-09 15:30:23 +03:00
parent 0c90942472
commit b111cbbbbb
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ typeParameter
;
typeConstraint
: attributes userType ":" (userType | "this") // "this" for self-type
: userType ":" (userType | "this") // "this" for self-type
// TODO: other constraints, maybe
;
+2 -2
View File
@@ -34,7 +34,7 @@ memberDeclaration
: classObject
: constructor
: decomposer
: method
: function
: property
: class
;
@@ -68,7 +68,7 @@ decomposer // TODO: consider other names
: attributes "decomposer" SimpleName "(" (attributes SimpleName){","} ")" // Public properties only
;
method
function
: modifiers "fun" functionRest
;
+1 -1
View File
@@ -22,7 +22,7 @@ toplevelObject
: namespace
: class
: extension
: method
: function
: property
;
+2 -1
View File
@@ -13,10 +13,11 @@ type
: userType
: functionType
: tupleType
: attributes type
;
userType
: SimpleName{"."} ("<" (varianceSpecifier? type){","} ">")?
: SimpleName{"."} ("<" (modifiers type){","} ">")?
;
functionType