MCPcopy Index your code
hub / github.com/yuin/gopher-lua / eline

Function eline

compile.go:97–103  ·  view source on GitHub ↗
(pos ast.PositionHolder)

Source from the content-addressed store, hash-verified

95}
96
97func eline(pos ast.PositionHolder) int {
98 line := pos.LastLine()
99 if line == 0 {
100 return pos.Line()
101 }
102 return line
103}
104
105func savereg(ec *expcontext, reg int) int {
106 if ec.ctype != ecLocal || ec.reg == regNotDefined {

Callers 7

compileBlockFunction · 0.85
compileAssignStmtRightFunction · 0.85
compileWhileStmtFunction · 0.85
compileRepeatStmtFunction · 0.85
compileFuncDefStmtFunction · 0.85
compileFunctionExprFunction · 0.85
CompileFunction · 0.85

Calls 2

LastLineMethod · 0.65
LineMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…