Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(753)

Side by Side Diff: src/pkg/exp/eval/expr1.go

Issue 1211047: code review 1211047: bignum: deprecate by moving into exp directory (Closed)
Patch Set: code review 1211047: bignum: deprecate by moving into exp directory Created 14 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/exp/eval/expr.go ('k') | src/pkg/exp/eval/expr_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file is machine generated by gen.go. 1 // This file is machine generated by gen.go.
2 // 6g gen.go && 6l gen.6 && ./6.out >expr1.go 2 // 6g gen.go && 6l gen.6 && ./6.out >expr1.go
3 3
4 package eval 4 package eval
5 5
6 import ( 6 import (
7 » "bignum" 7 » "exp/bignum"
8 "log" 8 "log"
9 ) 9 )
10 10
11 /* 11 /*
12 * "As" functions. These retrieve evaluator functions from an 12 * "As" functions. These retrieve evaluator functions from an
13 * expr, panicking if the requested evaluator has the wrong type. 13 * expr, panicking if the requested evaluator has the wrong type.
14 */ 14 */
15 func (a *expr) asBool() func(*Thread) bool { 15 func (a *expr) asBool() func(*Thread) bool {
16 return a.eval.(func(*Thread) bool) 16 return a.eval.(func(*Thread) bool)
17 } 17 }
(...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1896 rf := r.asSlice() 1896 rf := r.asSlice()
1897 return func(lv Value, t *Thread) { lv.(SliceValue).Set(t, rf(t)) } 1897 return func(lv Value, t *Thread) { lv.(SliceValue).Set(t, rf(t)) }
1898 case *MapType: 1898 case *MapType:
1899 rf := r.asMap() 1899 rf := r.asMap()
1900 return func(lv Value, t *Thread) { lv.(MapValue).Set(t, rf(t)) } 1900 return func(lv Value, t *Thread) { lv.(MapValue).Set(t, rf(t)) }
1901 default: 1901 default:
1902 log.Crashf("unexpected left operand type %v at %v", lt, r.pos) 1902 log.Crashf("unexpected left operand type %v at %v", lt, r.pos)
1903 } 1903 }
1904 panic("fail") 1904 panic("fail")
1905 } 1905 }
OLDNEW
« no previous file with comments | « src/pkg/exp/eval/expr.go ('k') | src/pkg/exp/eval/expr_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b