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 typeConstraint
: attributes userType ":" (userType | "this") // "this" for self-type : userType ":" (userType | "this") // "this" for self-type
// TODO: other constraints, maybe // TODO: other constraints, maybe
; ;
+2 -2
View File
@@ -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
; ;
+1 -1
View File
@@ -22,7 +22,7 @@ toplevelObject
: namespace : namespace
: class : class
: extension : extension
: method : function
: property : property
; ;
+2 -1
View File
@@ -13,10 +13,11 @@ type
: userType : userType
: functionType : functionType
: tupleType : tupleType
: attributes type
; ;
userType userType
: SimpleName{"."} ("<" (varianceSpecifier? type){","} ">")? : SimpleName{"."} ("<" (modifiers type){","} ">")?
; ;
functionType functionType