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

Issue 5528077: code review 5528077: go/scanner: remove (exported) InsertSemis mode (Closed)

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

Description

go/scanner: remove (exported) InsertSemis mode This is a relic from the times when we switched to automatic semicolon insertion. It's still use- ful to have a non-exported switch for testing.

Patch Set 1 #

Patch Set 2 : diff -r c6318b5115e5 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r c6318b5115e5 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 3328855d5468 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -17 lines) Patch
M src/cmd/godoc/format.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/exp/types/check_test.go View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M src/pkg/go/parser/parser.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/scanner/scanner.go View 1 3 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/go/scanner/scanner_test.go View 1 7 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 7
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2012-01-11 17:28:10 UTC) #1
r
LGTM s/relict/relic/ in the CL description i always push back against negative flags, in this ...
13 years, 4 months ago (2012-01-11 17:30:48 UTC) #2
gri
On Wed, Jan 11, 2012 at 9:30 AM, <r@golang.org> wrote: > LGTM > s/relict/relic/ in ...
13 years, 4 months ago (2012-01-11 17:43:09 UTC) #3
rsc
LGTM
13 years, 4 months ago (2012-01-11 17:58:22 UTC) #4
r2
On Jan 11, 2012, at 9:43 AM, Robert Griesemer wrote: > One could call it ...
13 years, 4 months ago (2012-01-11 18:06:40 UTC) #5
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=4c300745d3c3 *** go/scanner: remove (exported) InsertSemis mode This is a relic from ...
13 years, 4 months ago (2012-01-11 18:06:47 UTC) #6
gri
13 years, 4 months ago (2012-01-11 18:14:50 UTC) #7
On Wed, Jan 11, 2012 at 10:06 AM, Rob 'Commander' Pike <r@google.com> wrote:
>
> On Jan 11, 2012, at 9:43 AM, Robert Griesemer wrote:
>
>> One could call it IgnoreImplicitSemis or something like that. But the
>> flag needs to have the opposite sense from what it had before.
>
> you can leave it if you prefer, but i don't understand this comment. you can
invert the meaning of the flag by inverting its tests.

Before, all clients that wanted default Go scanner behavior needed to
explicitly set the flag "InsertSemis". Now that it is gone, i.e.,
"InsertSemis" is on by default, I need a flag (for testing) to turn
"InsertSemis" off. Which is why the new flag needs to have the
inverted meaning of the old one.

I am hoping to eliminate the flag altogether, but I didn't want to
fiddle with the somewhat delicate tests (because of position
information etc.) for now.

- gri
Sign in to reply to this message.

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