Skip to content

Commit c342fe7

Browse files
committed
Unexport fields in serialization
1 parent 71a08e0 commit c342fe7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/src/dump/extract-routes.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ export class Forest {
7979
function serializeNode (node: Node): string {
8080
let output: string = ''
8181
const template: string = `{
82-
Name: "${node.name}",
83-
Path: []byte("${node.path}"),
82+
name: "${node.name}",
83+
path: []byte("${node.path}"),
8484
`
8585

8686
output += template
8787
if (node.children.length > 0) {
8888
for (const child of node.children) {
8989
if (child.isVariable) {
90-
output += `Variable: &node${serializeNode(child)}`
90+
output += `variable: &node${serializeNode(child)}`
9191
}
9292
}
93-
output += `Children: []node{
93+
output += `children: []node{
9494
`
9595
for (const child of node.children) {
9696
if (!child.isVariable) {
@@ -130,7 +130,7 @@ function serializeForest (forest: Forest): string {
130130
output += begin
131131

132132
for (const [version, tree] of forest.byVersion) {
133-
output += `\n'${version}': { ByMethod: map[string]node{`
133+
output += `\n'${version}': { byMethod: map[string]node{`
134134
output += serializeTree(tree)
135135
output += '},'
136136
}

0 commit comments

Comments
 (0)