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

Side by Side Diff: mojom/generators/go/templates/templates.go

Issue 2091493002: Switch to the new go generator in the mojo tree. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix more things. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package templates 5 package templates
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "io/ioutil" 9 "io/ioutil"
10 "text/template" 10 "text/template"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 {{- range $struct := $fileTmpl.Structs}} 62 {{- range $struct := $fileTmpl.Structs}}
63 {{ template "Struct" $struct }} 63 {{ template "Struct" $struct }}
64 {{- end}} 64 {{- end}}
65 65
66 {{- range $union := $fileTmpl.Unions}} 66 {{- range $union := $fileTmpl.Unions}}
67 {{ template "Union" $union }} 67 {{ template "Union" $union }}
68 {{- end}} 68 {{- end}}
69 69
70 {{- range $enum := $fileTmpl.Enums}} 70 {{- range $enum := $fileTmpl.Enums}}
71 » {{ template "Enum" $enum }} 71 » {{ template "EnumDecl" $enum }}
72 {{- end}} 72 {{- end}}
73 73
74 {{- range $interface := $fileTmpl.Interfaces}} 74 {{- range $interface := $fileTmpl.Interfaces}}
75 {{ template "Interface" $interface }} 75 {{ template "Interface" $interface }}
76 {{- end}} 76 {{- end}}
77 {{- end -}} 77 {{- end -}}
78 ` 78 `
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698