Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gnovm): handle loop variables #2429
base: master
Are you sure you want to change the base?
feat(gnovm): handle loop variables #2429
Changes from 41 commits
ae8c44e
3c46e27
f4306ed
5cc2494
31b2263
f1d7c3e
492f103
31bbcb6
53c47e5
ffb2e76
e23141c
883cc6a
2931579
6b440e0
e9e4454
ea07aee
59a51d3
c771f9c
b49630e
c3b3edf
e42a561
3892c47
ae9158e
d552d74
30386a8
a6d81ed
f8a0769
ff4224e
7beaf3e
b33736f
def501e
dc05e87
9405775
a93e7c6
df9554f
f6b076f
a26d987
e3ad91f
c9eeed2
b44a4e5
1e04c97
0a5df97
c98af3c
f3e7d61
7313720
9b7fe06
ba5a1b8
315096b
401154f
a36641c
8ed0250
409a92f
e5282fa
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and remove hasName
Check warning on line 2037 in gnovm/pkg/gnolang/machine.go
Codecov / codecov/patch
gnovm/pkg/gnolang/machine.go#L2034-L2037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, as there may only be 1 label; I think SetLabel is good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check warning on line 214 in gnovm/pkg/gnolang/nodes.go
Codecov / codecov/patch
gnovm/pkg/gnolang/nodes.go#L214
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make a
hiddenResultVariable
and aisHiddenResultVariable
function; so we don't have "magic"".res_"
strings in our code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace the code in StaticBlock.GetStaticTypeOfAt with this method?
Check warning on line 1702 in gnovm/pkg/gnolang/nodes.go
Codecov / codecov/patch
gnovm/pkg/gnolang/nodes.go#L1702
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check warning on line 111 in gnovm/pkg/gnolang/nodes_string.go
Codecov / codecov/patch
gnovm/pkg/gnolang/nodes_string.go#L104-L111
Check warning on line 190 in gnovm/pkg/gnolang/nodes_string.go
Codecov / codecov/patch
gnovm/pkg/gnolang/nodes_string.go#L190
Check warning on line 65 in gnovm/pkg/gnolang/op_call.go
Codecov / codecov/patch
gnovm/pkg/gnolang/op_call.go#L65
Check warning on line 306 in gnovm/pkg/gnolang/op_call.go
Codecov / codecov/patch
gnovm/pkg/gnolang/op_call.go#L306