Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
og-rek
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
og-rek
Commits
1fc6c76e
Commit
1fc6c76e
authored
Jun 29, 2014
by
Sean DuBois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export members for Class and Thunk struct
parent
d014bb4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ogórek.go
ogórek.go
+6
-6
No files found.
ogórek.go
View file @
1fc6c76e
...
...
@@ -400,14 +400,14 @@ func (d *Decoder) loadBinPersid() error {
}
type
Thunk
struct
{
c
lass
Class
a
rgs
[]
interface
{}
C
lass
Class
A
rgs
[]
interface
{}
}
func
(
d
*
Decoder
)
reduce
()
error
{
args
:=
d
.
pop
()
.
([]
interface
{})
class
:=
d
.
pop
()
.
(
Class
)
d
.
stack
=
append
(
d
.
stack
,
Thunk
{
class
:
class
,
a
rgs
:
args
})
d
.
stack
=
append
(
d
.
stack
,
Thunk
{
Class
:
class
,
A
rgs
:
args
})
return
nil
}
...
...
@@ -536,8 +536,8 @@ func (d *Decoder) build() error {
}
type
Class
struct
{
m
odule
,
n
ame
string
M
odule
,
N
ame
string
}
func
(
d
*
Decoder
)
global
()
error
{
...
...
@@ -549,7 +549,7 @@ func (d *Decoder) global() error {
if
err
!=
nil
{
return
nil
}
d
.
stack
=
append
(
d
.
stack
,
Class
{
module
:
string
(
module
),
n
ame
:
string
(
name
)})
d
.
stack
=
append
(
d
.
stack
,
Class
{
Module
:
string
(
module
),
N
ame
:
string
(
name
)})
return
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment