| OLD | NEW |
| 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 Loading... |
| 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 ` |
| OLD | NEW |