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

Method nodeLineNo

codegen.go:485–489  ·  view source on GitHub ↗
(e node)

Source from the content-addressed store, hash-verified

483}
484
485func (g *pageCodeGen) nodeLineNo(e node) {
486 if g.lineDirectivesEnabled {
487 g.emitLineDirective(g.lineNo(e.Pos()))
488 }
489}
490
491func (c *pageCodeGen) lineNo(s span) int {
492 return lineCount(c.source[:s.start+1])

Callers 2

genNodeMethod · 0.95
genNodePartialMethod · 0.95

Calls 3

emitLineDirectiveMethod · 0.95
lineNoMethod · 0.95
PosMethod · 0.65

Tested by

no test coverage detected