diff options
Diffstat (limited to 'vendor/github.com/d5/tengo/compiler/compilation_scope.go')
-rw-r--r-- | vendor/github.com/d5/tengo/compiler/compilation_scope.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/compiler/compilation_scope.go b/vendor/github.com/d5/tengo/compiler/compilation_scope.go new file mode 100644 index 00000000..dd198ae9 --- /dev/null +++ b/vendor/github.com/d5/tengo/compiler/compilation_scope.go @@ -0,0 +1,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 +} |