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

Method EnterBlock

compile.go:573–576  ·  view source on GitHub ↗
(blabel int, pos ast.PositionHolder)

Source from the content-addressed store, hash-verified

571}
572
573func (fc *funcContext) EnterBlock(blabel int, pos ast.PositionHolder) {
574 fc.Block = newCodeBlock(newVarNamePool(fc.RegTop()), blabel, fc.Block, pos, fc.gotosCount)
575 fc.Blocks = append(fc.Blocks, fc.Block)
576}
577
578func (fc *funcContext) CloseUpvalues() int {
579 n := -1

Callers 6

compileBlockFunction · 0.80
compileStmtFunction · 0.80
compileWhileStmtFunction · 0.80
compileRepeatStmtFunction · 0.80
compileNumberForStmtFunction · 0.80
compileGenericForStmtFunction · 0.80

Calls 3

RegTopMethod · 0.95
newCodeBlockFunction · 0.85
newVarNamePoolFunction · 0.85

Tested by

no test coverage detected