Skip to content

Commit

Permalink
No more type registration
Browse files Browse the repository at this point in the history
  • Loading branch information
pelletier committed Sep 24, 2023
1 parent d40a85b commit a349fc3
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 741 deletions.
9 changes: 4 additions & 5 deletions compiler/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ func (c *compiler) compilePackage(p *packages.Package, colors functionColors, pr
&ast.ImportSpec{
Path: &ast.BasicLit{Kind: token.STRING, Value: strconv.Quote("unsafe")},
},
// TODO: remove me
&ast.ImportSpec{
Path: &ast.BasicLit{Kind: token.STRING, Value: strconv.Quote("time")},
},
},
})

Expand Down Expand Up @@ -293,11 +297,6 @@ func (c *compiler) compilePackage(p *packages.Package, colors functionColors, pr
}
}

log.Print("building type register init function")
if err := generateTypesInit(c.fset, gen, p); err != nil {
return err
}

packageDir := filepath.Dir(p.GoFiles[0])
outputPath := filepath.Join(packageDir, c.outputFilename)
if err := c.writeFile(outputPath, gen); err != nil {
Expand Down
346 changes: 0 additions & 346 deletions compiler/serde.go

This file was deleted.

Loading

0 comments on commit a349fc3

Please sign in to comment.