cmd/api: rewrite using go/types
- adjusted test files so that they actually type-check
- adjusted go1.txt, go1.1.txt, next.txt
- to run, provide build tag: api_tool
Fixes issue 4538.
Remove the *.old files from the CL On Wed, Aug 7, 2013 at 12:49 PM, ...
11 years, 7 months ago
(2013-08-07 20:17:32 UTC)
#2
Remove the *.old files from the CL
On Wed, Aug 7, 2013 at 12:49 PM, <gri@golang.org> wrote:
> Reviewers: bradfitz,
>
> Message:
> Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com),
>
> I'd like you to review this change to
> https://code.google.com/p/go
>
>
> Description:
> cmd/api: rewrite using go/types
>
> - renamed previous implementation to *.old for reference
> - adjusted test files so that they actually type-check
> - depends on CL 12578043 (support for fake packages in go/types)
>
> To be submitted when ok and the build scripts have been adjusted.
>
> Please review this at
https://codereview.appspot.**com/12300043/<https://codereview.appspot.com/123...
>
> Affected files:
> M src/cmd/api/clone.go.old
> M src/cmd/api/goapi.go
> M src/cmd/api/goapi.go.old
> M src/cmd/api/goapi_test.go
> M src/cmd/api/testdata/src/pkg/**p1/golden.txt
> M src/cmd/api/testdata/src/pkg/**p1/p1.go
>
>
>
LGTM but let me submit once run.go is tested and updated. https://codereview.appspot.com/12300043/diff/67001/src/cmd/api/goapi.go File src/cmd/api/goapi.go (right): ...
11 years, 7 months ago
(2013-08-07 21:47:52 UTC)
#6
where are those files? I don't see a api/go1.txt in cmd/api On Wed, Aug 7, ...
11 years, 7 months ago
(2013-08-08 00:54:07 UTC)
#9
where are those files? I don't see a api/go1.txt in cmd/api
On Wed, Aug 7, 2013 at 5:52 PM, Brad Fitzpatrick <bradfitz@golang.org>wrote:
> Robert,
>
> You also need to update api/go1.txt (and go1.1.txt if needed) in this CL
> as well, correcting its old mistakes.
>
>
>
> On Wed, Aug 7, 2013 at 2:55 PM, <gri@golang.org> wrote:
>
>>
>> https://codereview.appspot.**com/12300043/diff/67001/src/**
>>
cmd/api/goapi.go<https://codereview.appspot.com/12300043/diff/67001/src/cmd/api/goapi.go>
>> File src/cmd/api/goapi.go (right):
>>
>> https://codereview.appspot.**com/12300043/diff/67001/src/**
>>
cmd/api/goapi.go#newcode643<https://codereview.appspot.com/12300043/diff/67001/src/cmd/api/goapi.go#newcode643>
>> src/cmd/api/goapi.go:643: case *types.TypeName:
>> On 2013/08/07 21:47:52, bradfitz wrote:
>>
>>> move this to a new emitType method? it's big enough.
>>>
>>
>> Done.
>>
>>
https://codereview.appspot.**com/12300043/<https://codereview.appspot.com/123...
>>
>
>
$GOROOT/api/ On Wed, Aug 7, 2013 at 5:54 PM, Robert Griesemer <gri@golang.org> wrote: > where ...
11 years, 7 months ago
(2013-08-08 00:55:15 UTC)
#10
$GOROOT/api/
On Wed, Aug 7, 2013 at 5:54 PM, Robert Griesemer <gri@golang.org> wrote:
> where are those files? I don't see a api/go1.txt in cmd/api
>
>
> On Wed, Aug 7, 2013 at 5:52 PM, Brad Fitzpatrick <bradfitz@golang.org>wrote:
>
>> Robert,
>>
>> You also need to update api/go1.txt (and go1.1.txt if needed) in this CL
>> as well, correcting its old mistakes.
>>
>>
>>
>> On Wed, Aug 7, 2013 at 2:55 PM, <gri@golang.org> wrote:
>>
>>>
>>> https://codereview.appspot.**com/12300043/diff/67001/src/**
>>>
cmd/api/goapi.go<https://codereview.appspot.com/12300043/diff/67001/src/cmd/api/goapi.go>
>>> File src/cmd/api/goapi.go (right):
>>>
>>> https://codereview.appspot.**com/12300043/diff/67001/src/**
>>>
cmd/api/goapi.go#newcode643<https://codereview.appspot.com/12300043/diff/67001/src/cmd/api/goapi.go#newcode643>
>>> src/cmd/api/goapi.go:643: case *types.TypeName:
>>> On 2013/08/07 21:47:52, bradfitz wrote:
>>>
>>>> move this to a new emitType method? it's big enough.
>>>>
>>>
>>> Done.
>>>
>>>
https://codereview.appspot.**com/12300043/<https://codereview.appspot.com/123...
>>>
>>
>>
>
Issue 12300043: code review 12300043: cmd/api: rewrite using go/types
(Closed)
Created 11 years, 7 months ago by gri
Modified 11 years, 7 months ago
Reviewers:
Base URL:
Comments: 2