Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
grumpy
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
grumpy
Commits
94df6066
Commit
94df6066
authored
Dec 26, 2016
by
Dylan Trotter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove block from frame object. Will eventually be replaced with code object.
parent
b29461f0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
runtime/block.go
runtime/block.go
+0
-1
runtime/frame.go
runtime/frame.go
+2
-3
runtime/generator.go
runtime/generator.go
+0
-1
No files found.
runtime/block.go
View file @
94df6066
...
...
@@ -35,7 +35,6 @@ func NewBlock(name, filename string, fn func(*Frame, *Object) (*Object, *BaseExc
func
(
b
*
Block
)
Exec
(
back
*
Frame
,
globals
*
Dict
)
(
*
Object
,
*
BaseException
)
{
f
:=
newFrame
(
back
)
f
.
globals
=
globals
f
.
block
=
b
return
b
.
execInternal
(
f
,
nil
)
}
...
...
runtime/frame.go
View file @
94df6066
...
...
@@ -38,7 +38,6 @@ type Frame struct {
state
RunState
globals
*
Dict
`attr:"f_globals"`
lineno
int
`attr:"f_lineno"`
block
*
Block
`attr:"f_code"`
}
// newFrame creates a new Frame whose parent frame is back.
...
...
runtime/generator.go
View file @
94df6066
...
...
@@ -46,7 +46,6 @@ type Generator struct {
func
NewGenerator
(
b
*
Block
,
globals
*
Dict
)
*
Generator
{
f
:=
newFrame
(
nil
)
f
.
globals
=
globals
f
.
block
=
b
return
&
Generator
{
Object
:
Object
{
typ
:
GeneratorType
},
block
:
b
,
frame
:
f
}
}
...
...
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