summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/compiler/compilation_scope.go
blob: dd198ae97f46c77c48b572b0c765d2cfa354d80a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package compiler

import "github.com/d5/tengo/compiler/source"

// CompilationScope represents a compiled instructions
// and the last two instructions that were emitted.
type CompilationScope struct {
	instructions     []byte
	lastInstructions [2]EmittedInstruction
	symbolInit       map[string]bool
	sourceMap        map[int]source.Pos
}