aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax/tokens.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-11-04 16:27:31 -0700
committerRobert Griesemer <gri@golang.org>2016-11-05 00:46:39 +0000
commit429edcff1049899cef4e3c5cb4b473e13a31d85c (patch)
treeeff2794211af0f7ad00182030f3d5edf8e9acfbf /src/cmd/compile/internal/syntax/tokens.go
parenta1a688fa0012f7ce3a37e9ac0070461fe8e3f28e (diff)
downloadgo-429edcff1049899cef4e3c5cb4b473e13a31d85c.tar.gz
go-429edcff1049899cef4e3c5cb4b473e13a31d85c.zip
Revert "cmd/compile/internal/syntax: support for alias declarations"
This reverts commit 32db3f2756324616b7c856ac9501deccc2491239. Reason: Decision to back out current alias implementation. For #16339. Change-Id: Ib05e3d96041d8347e49cae292f66bec791a1fdc8 Reviewed-on: https://go-review.googlesource.com/32825 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/syntax/tokens.go')
-rw-r--r--src/cmd/compile/internal/syntax/tokens.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/cmd/compile/internal/syntax/tokens.go b/src/cmd/compile/internal/syntax/tokens.go
index 4a02c0ce3b..bd0118a141 100644
--- a/src/cmd/compile/internal/syntax/tokens.go
+++ b/src/cmd/compile/internal/syntax/tokens.go
@@ -22,8 +22,7 @@ const (
_IncOp
_Assign
_Define
- _Larrow
- _Rarrow
+ _Arrow
_Star
// delimitors
@@ -70,12 +69,6 @@ const (
)
const (
- // for AliasDecl
- Const = _Const
- Type = _Type
- Var = _Var
- Func = _Func
-
// for BranchStmt
Break = _Break
Continue = _Continue
@@ -101,8 +94,7 @@ var tokstrings = [...]string{
_IncOp: "opop",
_Assign: "=",
_Define: ":=",
- _Larrow: "<-",
- _Rarrow: "=>",
+ _Arrow: "<-",
_Star: "*",
// delimitors