| 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 "text/template" | 9 "text/template" |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 {{ template "Struct" $struct }} | 60 {{ template "Struct" $struct }} |
| 61 {{- end}} | 61 {{- end}} |
| 62 | 62 |
| 63 {{- range $union := $fileTmpl.Unions}} | 63 {{- range $union := $fileTmpl.Unions}} |
| 64 {{ template "Union" $union }} | 64 {{ template "Union" $union }} |
| 65 {{- end}} | 65 {{- end}} |
| 66 | 66 |
| 67 {{- range $enum := $fileTmpl.Enums}} | 67 {{- range $enum := $fileTmpl.Enums}} |
| 68 {{ template "Enum" $enum }} | 68 {{ template "Enum" $enum }} |
| 69 {{- end}} | 69 {{- end}} |
| 70 |
| 71 {{- range $interface := $fileTmpl.Interfaces}} |
| 72 {{ template "Interface" $interface }} |
| 73 {{- end}} |
| 70 {{- end -}} | 74 {{- end -}} |
| 71 ` | 75 ` |
| OLD | NEW |