MCPcopy
hub / github.com/yuin/gopher-lua / sline

Function sline

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

Source from the content-addressed store, hash-verified

91}
92
93func sline(pos ast.PositionHolder) int {
94 return pos.Line()
95}
96
97func eline(pos ast.PositionHolder) int {
98 line := pos.LastLine()

Callers 15

compileBlockFunction · 0.85
compileAssignStmtRightFunction · 0.85
compileAssignStmtFunction · 0.85
compileLocalAssignStmtFunction · 0.85
compileReturnStmtFunction · 0.85
compileIfStmtFunction · 0.85
compileBranchConditionFunction · 0.85
compileBreakStmtFunction · 0.85
compileFuncDefStmtFunction · 0.85
compileNumberForStmtFunction · 0.85
compileGenericForStmtFunction · 0.85
compileLabelStmtFunction · 0.85

Calls 1

LineMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…