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

Method nodeLineNo

codegen.go:102–106  ·  view source on GitHub ↗
(e node)

Source from the content-addressed store, hash-verified

100}
101
102func (g *layoutCodeGen) nodeLineNo(e node) {
103 if g.lineDirectivesEnabled {
104 g.emitLineDirective(g.lineNo(e.Pos()))
105 }
106}
107
108func (g *layoutCodeGen) emitLineDirective(n int) {
109 g.bodyPrintf("//line %s:%d\n", g.pfile.relpath(), n)

Callers 1

genNodeMethod · 0.95

Calls 3

emitLineDirectiveMethod · 0.95
lineNoMethod · 0.95
PosMethod · 0.65

Tested by

no test coverage detected