diff --git a/interp/interp.go b/interp/interp.go index 4c26e2b0b..9ad3341d2 100644 --- a/interp/interp.go +++ b/interp/interp.go @@ -130,11 +130,15 @@ type Interpreter struct { // architectures. id uint64 + // nindex is a node number incremented for each new node. + // It is used for debug (AST and CFG graphs). As it is atomically + // incremented, keep it aligned on 64 bits boundary. + nindex int64 + name string // name of the input source file (or main) opt // user settable options cancelChan bool // enables cancellable chan operations - nindex int64 // next node index fset *token.FileSet // fileset to locate node in source code binPkg Exports // binary packages used in interpreter, indexed by path rdir map[string]bool // for src import cycle detection