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

Issue 5535055: code review 5535055: go/parser: Remove unused Parse* functions. Simplified P... (Closed)

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

Description

go/parser: Remove unused Parse* functions. Simplified ParseExpr signature. Only ParseFile, ParseDir, and ParseExpr are used in the tree. If partial parsing of code is required, it is fairly simple to wrap the relevant piece of code into a dummy package for parsing (see parser.ParseExpr). Also: minor cleanups.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 1eda42c599ac https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 1eda42c599ac https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 1eda42c599ac https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 1eda42c599ac https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 1eda42c599ac https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r aa208a81cc08 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r c58ddc8f0210 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -155 lines) Patch
M src/cmd/cgo/gcc.go View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/cmd/gofix/fix.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gofmt/rewrite.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/go/parser/interface.go View 1 2 3 4 5 6 7 6 chunks +46 lines, -116 lines 0 comments Download
M src/pkg/go/parser/parser.go View 1 2 3 4 5 6 7 4 chunks +12 lines, -34 lines 0 comments Download
M src/pkg/go/parser/parser_test.go View 1 2 chunks +27 lines, -1 line 0 comments Download

Messages

Total messages: 5
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 6 months ago (2012-01-12 03:15:22 UTC) #1
gri
PS: I can write a gofix module for ParseExpr but I am not sure it's ...
13 years, 6 months ago (2012-01-12 03:23:14 UTC) #2
gri
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 6 months ago (2012-01-12 19:41:57 UTC) #3
rsc
LGTM
13 years, 6 months ago (2012-01-12 23:17:58 UTC) #4
gri
13 years, 6 months ago (2012-01-13 00:04:37 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=aab4d2ed7ed8 ***

go/parser: Remove unused Parse* functions. Simplified ParseExpr signature.

Only ParseFile, ParseDir, and ParseExpr are used in the tree.
If partial parsing of code is required, it is fairly simple
to wrap the relevant piece of code into a dummy package for
parsing (see parser.ParseExpr).

Also: minor cleanups.

R=rsc
CC=golang-dev
http://codereview.appspot.com/5535055
Sign in to reply to this message.

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