"typedef" replaced with "typeAlias" in the grammar

This commit is contained in:
Andrey Breslav
2014-10-16 06:14:53 +04:00
parent 4cb276c47f
commit 9feebb1dc6
5 changed files with 8 additions and 9 deletions
@@ -1279,7 +1279,7 @@ public class JetExpressionParsing extends AbstractJetParsing {
* : property * : property
* : extension * : extension
* : class * : class
* : typedef * : typeAlias
* : object * : object
* ; * ;
*/ */
@@ -342,7 +342,7 @@ public class JetParsing extends AbstractJetParsing {
* : extension * : extension
* : function * : function
* : property * : property
* : typedef * : typeAlias
* : object * : object
* ; * ;
*/ */
@@ -752,7 +752,7 @@ public class JetParsing extends AbstractJetParsing {
* : property * : property
* : class * : class
* : extension * : extension
* : typedef * : typeAlias
* : anonymousInitializer * : anonymousInitializer
* : object * : object
* ; * ;
@@ -874,7 +874,7 @@ public class JetParsing extends AbstractJetParsing {
} }
/* /*
* typedef * typeAlias
* : modifiers "typealias" SimpleName (typeParameters typeConstraints)? "=" type * : modifiers "typealias" SimpleName (typeParameters typeConstraints)? "=" type
* ; * ;
*/ */
+1 -1
View File
@@ -32,7 +32,7 @@ memberDeclaration
: function : function
: property : property
: class : class
: typedef : typeAlias
: anonymousInitializer : anonymousInitializer
; ;
+1 -1
View File
@@ -165,7 +165,7 @@ declaration
: function : function
: property : property
: class : class
: typedef : typeAlias
: object : object
; ;
+2 -3
View File
@@ -45,7 +45,7 @@ toplevelObject
: object : object
: function : function
: property : property
: typedef : typeAlias
; ;
package package
@@ -59,7 +59,6 @@ package
See [Packages](packages.html) See [Packages](packages.html)
*/ */
[undocumented] typeAlias
typedef
: modifiers "typealias" SimpleName (typeParameters typeConstraints)? "=" type : modifiers "typealias" SimpleName (typeParameters typeConstraints)? "=" type
; ;