Local/inner types
This commit is contained in:
@@ -37,6 +37,8 @@ memberDeclaration
|
||||
: function
|
||||
: property
|
||||
: class
|
||||
: extension
|
||||
: typedef
|
||||
;
|
||||
|
||||
classObject
|
||||
|
||||
@@ -33,6 +33,9 @@ literalConstant
|
||||
declaration
|
||||
: function
|
||||
: property
|
||||
: extension
|
||||
: class
|
||||
: typedef
|
||||
;
|
||||
|
||||
expressionWithPrecedences // See the precedence table, everything associates to the left
|
||||
|
||||
@@ -43,5 +43,4 @@ parameterKind
|
||||
: "lazy"
|
||||
: "out"
|
||||
: "ref"
|
||||
;
|
||||
|
||||
;
|
||||
@@ -17,7 +17,15 @@ type
|
||||
;
|
||||
|
||||
userType
|
||||
: SimpleName{"."} ("<" (modifiers type){","} ">")?
|
||||
: (SimpleName ".")* simpleUserType{"."}
|
||||
;
|
||||
|
||||
simpleUserType
|
||||
: SimpleName ("<" (optionalProjection type){","} ">")?
|
||||
;
|
||||
|
||||
optionalProjection
|
||||
: modifiers
|
||||
;
|
||||
|
||||
functionType
|
||||
|
||||
Reference in New Issue
Block a user