tools/gen-jscore/templates/property.tmpl
raw| 1 | {{- /* Expects .Name and .Properties */ -}} |
| 2 | map[string]property{ |
| 3 | {{range .Properties -}} |
| 4 | {{- /* Skip constructor which is output later. */}} |
| 5 | {{- if eq .Name "constructor" | not -}} |
| 6 | {{template "property-entry.tmpl" dict "Name" $.Name "BlankConstructor" $.BlankConstructor "Property" .}} |
| 7 | {{end -}} |
| 8 | {{end -}} |
| 9 | }{{/* No newline */ -}} |