コード例 #1
0
ファイル: compile.go プロジェクト: kissthink/gopher-lua
func newCodeBlock(localvars *varNamePool, blabel int, parent *codeBlock, pos ast.PositionHolder) *codeBlock {
	bl := &codeBlock{localvars, blabel, parent, false, 0, 0}
	if pos != nil {
		bl.LineStart = pos.Line()
		bl.LastLine = pos.LastLine()
	}
	return bl
}
コード例 #2
0
ファイル: compile.go プロジェクト: kissthink/gopher-lua
func eline(pos ast.PositionHolder) int {
	return pos.LastLine()
}