Debian Codegraph @

tools/gen-jscore/templates/root.tmpl

raw
1 // Code generated by tools/gen-jscore. DO NOT EDIT.
2
3 package otto
4
5 import (
6 "math"
7 )
8
9 func (rt *runtime) newContext() {
10 // Order here is import as definitions depend on each other.
11 {{- $object := .Type "Object"}}
12 {{- $function := .Type "Function"}}
13 {{template "prototype.tmpl" $object}}
14 {{template "prototype.tmpl" $function}}
15
16 {{- template "core-prototype-property.tmpl" $object}}
17 {{- template "core-prototype-property.tmpl" $function}}
18
19 {{- template "type.tmpl" $object}}
20 {{- template "type.tmpl" $function}}
21
22 {{- range .Types}}
23 {{- if eq .Name "Global"}}
24 {{template "global.tmpl" . }}
25 {{- else if not .Core}}
26 {{template "type.tmpl" .}}
27 {{- end}}
28 {{- end}}
29 }
30
31 func (rt *runtime) newConsole() *object {
32 return {{template "definition.tmpl" .Log}}
33 }
34
35 {{range .Values}}
36 {{template "value.tmpl" .}}
37 {{- end}}