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

Issue 4849049: code review 4849049: exp/template: split the parse tree into a separate pack... (Closed)

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

Description

exp/template: split the parse tree into a separate package exp/template/parse Mostly a mechanical change, with a few cleanups to make the split easier. The external interface to exp/template is unaffected. In another round I will play with the function map setup to see if I can avoid exposing reflect across the boundary, but that will require some structural changes I did not want to mix into this CL.

Patch Set 1 #

Total comments: 8

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+2088 lines, -1949 lines) Patch
M src/pkg/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/exp/template/Makefile View 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/exp/template/exec.go View 1 17 chunks +131 lines, -117 lines 0 comments Download
M src/pkg/exp/template/exec_test.go View 2 chunks +3 lines, -0 lines 0 comments Download
M src/pkg/exp/template/funcs.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
R src/pkg/exp/template/lex.go View 1 chunk +0 lines, -474 lines 0 comments Download
R src/pkg/exp/template/lex_test.go View 1 chunk +0 lines, -209 lines 0 comments Download
M src/pkg/exp/template/parse.go View 4 chunks +16 lines, -846 lines 0 comments Download
A src/pkg/exp/template/parse/Makefile View 1 chunk +14 lines, -0 lines 0 comments Download
A src/pkg/exp/template/parse/lex.go View 1 chunk +474 lines, -0 lines 0 comments Download
A src/pkg/exp/template/parse/lex_test.go View 1 chunk +209 lines, -0 lines 0 comments Download
A src/pkg/exp/template/parse/node.go View 1 chunk +468 lines, -0 lines 0 comments Download
A src/pkg/exp/template/parse/parse.go View 1 chunk +437 lines, -0 lines 0 comments Download
A src/pkg/exp/template/parse/parse_test.go View 1 chunk +260 lines, -0 lines 0 comments Download
A src/pkg/exp/template/parse/set.go View 1 chunk +51 lines, -0 lines 0 comments Download
R src/pkg/exp/template/parse_test.go View 1 chunk +0 lines, -253 lines 0 comments Download
M src/pkg/exp/template/set.go View 1 3 chunks +16 lines, -46 lines 0 comments Download
M src/pkg/exp/template/set_test.go View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 6
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 7 months ago (2011-08-09 03:38:09 UTC) #1
dsymonds
http://codereview.appspot.com/4849049/diff/1/src/pkg/exp/template/exec.go File src/pkg/exp/template/exec.go (right): http://codereview.appspot.com/4849049/diff/1/src/pkg/exp/template/exec.go#newcode87 src/pkg/exp/template/exec.go:87: return useless return http://codereview.appspot.com/4849049/diff/1/src/pkg/exp/template/funcs.go File src/pkg/exp/template/funcs.go (right): http://codereview.appspot.com/4849049/diff/1/src/pkg/exp/template/funcs.go#newcode30 src/pkg/exp/template/funcs.go:30: ...
13 years, 7 months ago (2011-08-09 03:52:50 UTC) #2
r
http://codereview.appspot.com/4849049/diff/1/src/pkg/exp/template/exec.go File src/pkg/exp/template/exec.go (right): http://codereview.appspot.com/4849049/diff/1/src/pkg/exp/template/exec.go#newcode87 src/pkg/exp/template/exec.go:87: return On 2011/08/09 03:52:50, dsymonds wrote: > useless return ...
13 years, 7 months ago (2011-08-09 04:01:38 UTC) #3
r
Hello golang-dev@googlegroups.com, dsymonds@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-09 04:01:49 UTC) #4
dsymonds
LGTM
13 years, 7 months ago (2011-08-09 04:10:20 UTC) #5
r
13 years, 7 months ago (2011-08-09 05:43:08 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=14872cc7275f ***

exp/template: split the parse tree into a separate package exp/template/parse

Mostly a mechanical change, with a few cleanups to make the split easier.
The external interface to exp/template is unaffected.

In another round I will play with the function map setup to see if I can
avoid exposing reflect across the boundary, but that will require some
structural changes I did not want to mix into this CL.

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/4849049
Sign in to reply to this message.

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