Commit 1fc6c76e authored by Sean DuBois's avatar Sean DuBois

Export members for Class and Thunk struct

parent d014bb4a
...@@ -400,14 +400,14 @@ func (d *Decoder) loadBinPersid() error { ...@@ -400,14 +400,14 @@ func (d *Decoder) loadBinPersid() error {
} }
type Thunk struct { type Thunk struct {
class Class Class Class
args []interface{} Args []interface{}
} }
func (d *Decoder) reduce() error { func (d *Decoder) reduce() error {
args := d.pop().([]interface{}) args := d.pop().([]interface{})
class := d.pop().(Class) class := d.pop().(Class)
d.stack = append(d.stack, Thunk{class: class, args: args}) d.stack = append(d.stack, Thunk{Class: class, Args: args})
return nil return nil
} }
...@@ -536,8 +536,8 @@ func (d *Decoder) build() error { ...@@ -536,8 +536,8 @@ func (d *Decoder) build() error {
} }
type Class struct { type Class struct {
module, Module,
name string Name string
} }
func (d *Decoder) global() error { func (d *Decoder) global() error {
...@@ -549,7 +549,7 @@ func (d *Decoder) global() error { ...@@ -549,7 +549,7 @@ func (d *Decoder) global() error {
if err != nil { if err != nil {
return nil return nil
} }
d.stack = append(d.stack, Class{module: string(module), name: string(name)}) d.stack = append(d.stack, Class{Module: string(module), Name: string(name)})
return nil return nil
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment