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

Issue 6846131: code review 6846131: exp/types: checking of type switches and range clauses (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by gri
Modified:
11 years, 4 months ago
Reviewers:
CC:
rsc, rog, golang-dev
Visibility:
Public.

Description

exp/types: checking of type switches and range clauses Also: - better handling of type assertions - implemented built-in error type - first cut at handling variadic function signatures - several bug fixes

Patch Set 1 #

Patch Set 2 : diff -r 751e8610bd5d https://code.google.com/p/go #

Patch Set 3 : diff -r 86eed47f9b5c https://code.google.com/p/go #

Patch Set 4 : diff -r 86eed47f9b5c https://code.google.com/p/go #

Patch Set 5 : diff -r 86eed47f9b5c https://code.google.com/p/go #

Total comments: 2

Patch Set 6 : diff -r 6aab0212379c https://code.google.com/p/go #

Patch Set 7 : diff -r 6aab0212379c https://code.google.com/p/go #

Patch Set 8 : diff -r 6aab0212379c https://code.google.com/p/go #

Patch Set 9 : diff -r 6aab0212379c https://code.google.com/p/go #

Patch Set 10 : diff -r 87d3b86bcc68 https://code.google.com/p/go #

Patch Set 11 : diff -r 87d3b86bcc68 https://code.google.com/p/go #

Patch Set 12 : diff -r 87d3b86bcc68 https://code.google.com/p/go #

Patch Set 13 : diff -r d05272f402ec https://code.google.com/p/go #

Patch Set 14 : diff -r d05272f402ec https://code.google.com/p/go #

Patch Set 15 : diff -r d05272f402ec https://code.google.com/p/go #

Patch Set 16 : diff -r d05272f402ec https://code.google.com/p/go #

Patch Set 17 : diff -r 08462805eb2c https://code.google.com/p/go #

Patch Set 18 : diff -r 08462805eb2c https://code.google.com/p/go #

Patch Set 19 : diff -r 64847a27cdd5 https://code.google.com/p/go #

Patch Set 20 : diff -r 64847a27cdd5 https://code.google.com/p/go #

Patch Set 21 : diff -r 64847a27cdd5 https://code.google.com/p/go #

Patch Set 22 : diff -r 64847a27cdd5 https://code.google.com/p/go #

Patch Set 23 : diff -r 6e0e4077f488 https://code.google.com/p/go #

Patch Set 24 : diff -r 6e0e4077f488 https://code.google.com/p/go #

Patch Set 25 : diff -r f7c125983d99 https://code.google.com/p/go #

Patch Set 26 : diff -r cc2f29e6e335 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -96 lines) Patch
M src/pkg/exp/types/check.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +5 lines, -2 lines 0 comments Download
M src/pkg/exp/types/const.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/exp/types/expr.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 14 chunks +131 lines, -35 lines 0 comments Download
M src/pkg/exp/types/operand.go View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -21 lines 0 comments Download
M src/pkg/exp/types/predicates.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +33 lines, -0 lines 0 comments Download
M src/pkg/exp/types/stmt.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +211 lines, -31 lines 0 comments Download
M src/pkg/exp/types/testdata/decls1.src View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/exp/types/testdata/expr3.src View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +50 lines, -1 line 0 comments Download
M src/pkg/exp/types/testdata/stmt0.src View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +150 lines, -0 lines 0 comments Download
M src/pkg/exp/types/universe.go View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M src/pkg/go/parser/parser.go View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8
gri
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 4 months ago (2012-11-30 04:06:23 UTC) #1
rog
https://codereview.appspot.com/6846131/diff/7002/src/pkg/exp/types/stmt.go File src/pkg/exp/types/stmt.go (right): https://codereview.appspot.com/6846131/diff/7002/src/pkg/exp/types/stmt.go#newcode531 src/pkg/exp/types/stmt.go:531: lhs.Type = typ doesn't this end up with the ...
11 years, 4 months ago (2012-11-30 12:14:35 UTC) #2
gri
PTAL. https://codereview.appspot.com/6846131/diff/7002/src/pkg/exp/types/stmt.go File src/pkg/exp/types/stmt.go (right): https://codereview.appspot.com/6846131/diff/7002/src/pkg/exp/types/stmt.go#newcode531 src/pkg/exp/types/stmt.go:531: lhs.Type = typ On 2012/11/30 12:14:35, rog wrote: ...
11 years, 4 months ago (2012-11-30 17:55:54 UTC) #3
gri
Hello rsc@golang.org, rogpeppe@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 4 months ago (2012-12-01 01:24:41 UTC) #4
gri
Hello rsc@golang.org, rogpeppe@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 4 months ago (2012-12-03 03:54:13 UTC) #5
gri
Hello rsc@golang.org, rogpeppe@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 4 months ago (2012-12-05 06:47:08 UTC) #6
rsc
LGTM
11 years, 4 months ago (2012-12-06 06:24:26 UTC) #7
gri
11 years, 4 months ago (2012-12-06 17:21:50 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=78f62d4f67a9 ***

exp/types: checking of type switches and range clauses

Also:
- better handling of type assertions
- implemented built-in error type
- first cut at handling variadic function signatures
- several bug fixes

R=rsc, rogpeppe
CC=golang-dev
https://codereview.appspot.com/6846131
Sign in to reply to this message.

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