summaryrefslogtreecommitdiff
path: root/usr/austin/eval/gen.go
diff options
context:
space:
mode:
authorAustin Clements <aclements@csail.mit.edu>2009-09-25 09:37:35 -0700
committerAustin Clements <aclements@csail.mit.edu>2009-09-25 09:37:35 -0700
commit4b52a8cfda843a0a2ae905e5cc3a140a85e69e8f (patch)
tree61758c52fa8e12d847b1ef57688df6f8788c96a8 /usr/austin/eval/gen.go
parentcac20abe7d91d9dbd111ca71a82c32a8b7a1068e (diff)
downloadgolang-4b52a8cfda843a0a2ae905e5cc3a140a85e69e8f.tar.gz
s/switch _ :=/switch/
R=rsc APPROVED=rsc DELTA=36 (0 added, 0 deleted, 36 changed) OCL=34971 CL=35006
Diffstat (limited to 'usr/austin/eval/gen.go')
-rw-r--r--usr/austin/eval/gen.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/austin/eval/gen.go b/usr/austin/eval/gen.go
index cbb8fd27b..5e7465e3d 100644
--- a/usr/austin/eval/gen.go
+++ b/usr/austin/eval/gen.go
@@ -181,7 +181,7 @@ func (a *expr) asInterface() (func(*Thread) interface{}) {
*/
func (a *expr) genConstant(v Value) {
- switch _ := a.t.lit().(type) {
+ switch a.t.lit().(type) {
«.repeated section Types»
case «Repr»:
«.section IsIdeal»
@@ -198,7 +198,7 @@ func (a *expr) genConstant(v Value) {
func (a *expr) genIdentOp(level, index int) {
a.evalAddr = func(t *Thread) Value { return t.f.Get(level, index) };
- switch _ := a.t.lit().(type) {
+ switch a.t.lit().(type) {
«.repeated section Types»
«.section IsIdeal»
«.or»
@@ -213,7 +213,7 @@ func (a *expr) genIdentOp(level, index int) {
func (a *expr) genFuncCall(call func(t *Thread) []Value) {
a.exec = func(t *Thread) { call(t)};
- switch _ := a.t.lit().(type) {
+ switch a.t.lit().(type) {
«.repeated section Types»
«.section IsIdeal»
«.or»
@@ -230,7 +230,7 @@ func (a *expr) genFuncCall(call func(t *Thread) []Value) {
func (a *expr) genValue(vf func(*Thread) Value) {
a.evalAddr = vf;
- switch _ := a.t.lit().(type) {
+ switch a.t.lit().(type) {
«.repeated section Types»
«.section IsIdeal»
«.or»
@@ -245,7 +245,7 @@ func (a *expr) genValue(vf func(*Thread) Value) {
«.repeated section UnaryOps»
func (a *expr) genUnaryOp«Name»(v *expr) {
- switch _ := a.t.lit().(type) {
+ switch a.t.lit().(type) {
«.repeated section Types»
case «Repr»:
«.section IsIdeal»
@@ -265,7 +265,7 @@ func (a *expr) genUnaryOp«Name»(v *expr) {
«.end»
«.repeated section BinaryOps»
func (a *expr) genBinOp«Name»(l, r *expr) {
- switch _ := l.t.lit().(type) {
+ switch l.t.lit().(type) {
«.repeated section Types»
case «Repr»:
«.section IsIdeal»
@@ -290,7 +290,7 @@ func (a *expr) genBinOp«Name»(l, r *expr) {
«.end»
func genAssign(lt Type, r *expr) (func(lv Value, t *Thread)) {
- switch _ := lt.lit().(type) {
+ switch lt.lit().(type) {
«.repeated section Types»
«.section IsIdeal»
«.or»