MCPcopy Create free account
hub / github.com/adhocteam/pushup / newPageCodeGen

Function newPageCodeGen

codegen.go:464–477  ·  view source on GitHub ↗
(page *page, pfile projectFile, source string)

Source from the content-addressed store, hash-verified

462}
463
464func newPageCodeGen(page *page, pfile projectFile, source string) *pageCodeGen {
465 g := &pageCodeGen{
466 page: page,
467 pfile: pfile,
468 source: source,
469 imports: make(map[importDecl]bool),
470 ioWriterVar: "w",
471 lineDirectivesEnabled: true,
472 }
473 for _, im := range page.imports {
474 g.imports[im] = true
475 }
476 return g
477}
478
479func (g *pageCodeGen) used(path ...string) {
480 for _, p := range path {

Callers 2

TestCodeGenFromNodeFunction · 0.85
compileFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCodeGenFromNodeFunction · 0.68