-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(gnovm): improve code generation (#3595)
- follow the standard `^// Code generated .* DO NOT EDIT\.$` syntax in genstd (see `go help generate`) - move `stringer` to `go:generate` directive, output all String methods into one single file
- Loading branch information
Showing
14 changed files
with
477 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
// SPDX-License-Identifier: GNO License Version 1.0 | ||
|
||
// Package gnolang contains the implementation of the Gno Virtual Machine. | ||
package gnolang | ||
|
||
//go:generate -command stringer go run -modfile ../../../misc/devdeps/go.mod golang.org/x/tools/cmd/stringer | ||
//go:generate stringer -type=Kind,Op,TransCtrl,TransField,VPType,Word -output string_methods.go . |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package gnolang | ||
|
||
// XXX rename file to machine.go. | ||
|
||
import ( | ||
"fmt" | ||
"io" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.