xgo/compiler/compilation_scope.go

13 lines
340 B
Go
Raw Normal View History

2019-01-09 10:17:42 +03:00
package compiler
import "github.com/d5/tengo/compiler/source"
// CompilationScope represents a compiled instructions
// and the last two instructions that were emitted.
2019-01-09 10:17:42 +03:00
type CompilationScope struct {
instructions []byte
lastInstructions [2]EmittedInstruction
2019-02-02 10:27:29 +03:00
symbolInit map[string]bool
sourceMap map[int]source.Pos
2019-01-09 10:17:42 +03:00
}