File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -79,18 +79,18 @@ export class Forest {
79
79
function serializeNode ( node : Node ) : string {
80
80
let output : string = ''
81
81
const template : string = `{
82
- Name : "${ node . name } ",
83
- Path : []byte("${ node . path } "),
82
+ name : "${ node . name } ",
83
+ path : []byte("${ node . path } "),
84
84
`
85
85
86
86
output += template
87
87
if ( node . children . length > 0 ) {
88
88
for ( const child of node . children ) {
89
89
if ( child . isVariable ) {
90
- output += `Variable : &node${ serializeNode ( child ) } `
90
+ output += `variable : &node${ serializeNode ( child ) } `
91
91
}
92
92
}
93
- output += `Children : []node{
93
+ output += `children : []node{
94
94
`
95
95
for ( const child of node . children ) {
96
96
if ( ! child . isVariable ) {
@@ -124,13 +124,14 @@ function serializeForest (forest: Forest): string {
124
124
let output : string = ''
125
125
const begin : string = `package esroutes
126
126
127
+ // Code generated from the elasticsearch-specification DO NOT EDIT.
127
128
var routes = forest{
128
- map[byte ]trees{
129
+ map[string ]trees{
129
130
`
130
131
output += begin
131
132
132
133
for ( const [ version , tree ] of forest . byVersion ) {
133
- output += `\n' ${ version } ' : { ByMethod : map[string]node{`
134
+ output += `\n" ${ version } " : { byMethod : map[string]node{`
134
135
output += serializeTree ( tree )
135
136
output += '},'
136
137
}
You can’t perform that action at this time.
0 commit comments