Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Issue 2045063002: [New go generator] Implement declaring unions. (Closed)

Created:
4 years, 6 months ago by azani
Modified:
4 years, 6 months ago
Reviewers:
vardhan
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+723 lines, -292 lines) Patch
M mojom/generators/go/templates/declarations.go View 1 2 1 chunk +0 lines, -16 lines 0 comments Download
M mojom/generators/go/templates/declarations_test.go View 1 2 1 chunk +0 lines, -53 lines 0 comments Download
M mojom/generators/go/templates/decoding.go View 1 2 2 chunks +8 lines, -43 lines 0 comments Download
M mojom/generators/go/templates/decoding_test.go View 1 2 8 chunks +27 lines, -54 lines 0 comments Download
M mojom/generators/go/templates/encoding.go View 1 2 2 chunks +8 lines, -16 lines 0 comments Download
M mojom/generators/go/templates/encoding_test.go View 1 2 9 chunks +96 lines, -77 lines 0 comments Download
A mojom/generators/go/templates/structs.go View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
A mojom/generators/go/templates/structs_test.go View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M mojom/generators/go/templates/templates.go View 1 2 2 chunks +9 lines, -14 lines 0 comments Download
A + mojom/generators/go/templates/test_utils.go View 1 2 3 chunks +5 lines, -18 lines 0 comments Download
A mojom/generators/go/templates/unions.go View 1 2 1 chunk +147 lines, -0 lines 0 comments Download
A mojom/generators/go/templates/unions_test.go View 1 2 1 chunk +169 lines, -0 lines 0 comments Download
M mojom/generators/go/translator/mojom_file.go View 1 2 2 chunks +26 lines, -0 lines 0 comments Download
M mojom/generators/go/translator/translator.go View 1 2 3 3 chunks +32 lines, -1 line 0 comments Download
M mojom/generators/go/translator/translator_test.go View 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
azani
4 years, 6 months ago (2016-06-07 23:20:35 UTC) #1
vardhan
https://codereview.chromium.org/2045063002/diff/1/mojom/generators/go/translator/translator.go File mojom/generators/go/translator/translator.go (right): https://codereview.chromium.org/2045063002/diff/1/mojom/generators/go/translator/translator.go#newcode106 mojom/generators/go/translator/translator.go:106: panic(fmt.Sprintf("%s is not a union.", userDefinedTypeShortName(u))) use log.Panicf() ? ...
4 years, 6 months ago (2016-06-08 20:45:47 UTC) #2
azani
ptal https://codereview.chromium.org/2045063002/diff/1/mojom/generators/go/translator/translator.go File mojom/generators/go/translator/translator.go (right): https://codereview.chromium.org/2045063002/diff/1/mojom/generators/go/translator/translator.go#newcode106 mojom/generators/go/translator/translator.go:106: panic(fmt.Sprintf("%s is not a union.", userDefinedTypeShortName(u))) On 2016/06/08 ...
4 years, 6 months ago (2016-06-08 23:51:49 UTC) #4
vardhan
there seems to be a lot more new code in the latest patchset than the ...
4 years, 6 months ago (2016-06-09 00:05:36 UTC) #5
azani
Sorry, I screwed that up. Anyways, the previous patchset only declared unions. The new one ...
4 years, 6 months ago (2016-06-13 20:27:22 UTC) #6
vardhan
lgtm
4 years, 6 months ago (2016-06-14 16:50:31 UTC) #7
azani
4 years, 6 months ago (2016-06-14 17:22:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
9ec80421c03ee885e8dcdf153d8003ced5acd0bc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698