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

Issue 13256050: code review 13256050: go.oracle: freevars: don't report free identifiers defi... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by adonovan
Modified:
10 years, 7 months ago
Reviewers:
gri
CC:
crawshaw1, gri, golang-dev
Visibility:
Public.

Description

go.oracle: freevars: don't report free identifiers defined in package scope. The existing check rejected only free identifiers defined in file scope, i.e. just imports. + regression test.

Patch Set 1 #

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

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M oracle/freevars.go View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M oracle/testdata/src/main/freevars.go View 1 2 chunks +4 lines, -0 lines 0 comments Download
M oracle/testdata/src/main/freevars.golden View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4
adonovan
Hello crawshaw@google.com (cc: golang-dev@googlegroups.com, gri@golang.org), I'd like you to review this change to https://code.google.com/p/go.tools
10 years, 7 months ago (2013-09-11 14:27:41 UTC) #1
gri
LGTM https://codereview.appspot.com/13256050/diff/6001/oracle/freevars.go File oracle/freevars.go (right): https://codereview.appspot.com/13256050/diff/6001/oracle/freevars.go#newcode68 oracle/freevars.go:68: return nil // e.g. interface method TODO(adonovan): what ...
10 years, 7 months ago (2013-09-11 22:32:47 UTC) #2
adonovan
https://codereview.appspot.com/13256050/diff/6001/oracle/freevars.go File oracle/freevars.go (right): https://codereview.appspot.com/13256050/diff/6001/oracle/freevars.go#newcode68 oracle/freevars.go:68: return nil // e.g. interface method TODO(adonovan): what else? ...
10 years, 7 months ago (2013-09-12 14:58:57 UTC) #3
adonovan
10 years, 7 months ago (2013-09-12 15:00:23 UTC) #4
*** Submitted as
https://code.google.com/p/go/source/detail?r=2c39134a2b94&repo=tools ***

go.oracle: freevars: don't report free identifiers defined in package scope.

The existing check rejected only free identifiers defined in
file scope, i.e. just imports.

+ regression test.

R=crawshaw, gri
CC=golang-dev
https://codereview.appspot.com/13256050
Sign in to reply to this message.

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