From 42a14df1793952e5b5583e7d475798934116fb43 Mon Sep 17 00:00:00 2001 From: Hariom Verma Date: Thu, 2 May 2024 20:52:03 +0530 Subject: [PATCH] temp(to be squashed) --- gnovm/pkg/gnolang/go2gno.go | 1 + gnovm/pkg/gnolang/nodes.go | 1 + gnovm/pkg/transpiler/transpiler.go | 1 + tm2/pkg/std/memfile.go | 1 + 4 files changed, 4 insertions(+) diff --git a/gnovm/pkg/gnolang/go2gno.go b/gnovm/pkg/gnolang/go2gno.go index 8ca985352a71..51205cfae2a1 100644 --- a/gnovm/pkg/gnolang/go2gno.go +++ b/gnovm/pkg/gnolang/go2gno.go @@ -99,6 +99,7 @@ func MustParseExpr(expr string) Expr { // ParseFile uses the Go parser to parse body. It then runs [Go2Gno] on the // resulting AST -- the resulting FileNode is returned, together with any other // error (including panics, which are recovered) from [Go2Gno]. +// Here? func ParseFile(filename string, body string) (fn *FileNode, err error) { // Use go parser to parse the body. fs := token.NewFileSet() diff --git a/gnovm/pkg/gnolang/nodes.go b/gnovm/pkg/gnolang/nodes.go index 8f2c5054a8a8..f65e263e19c0 100644 --- a/gnovm/pkg/gnolang/nodes.go +++ b/gnovm/pkg/gnolang/nodes.go @@ -1170,6 +1170,7 @@ func ReadMemPackageFromList(list []string, pkgPath string) *std.MemPackage { // // If one of the files has a different package name than memPkg.Name, // or [ParseFile] returns an error, ParseMemPackage panics. +// Here? func ParseMemPackage(memPkg *std.MemPackage) (fset *FileSet) { fset = &FileSet{} for _, mfile := range memPkg.Files { diff --git a/gnovm/pkg/transpiler/transpiler.go b/gnovm/pkg/transpiler/transpiler.go index a87a336125ed..7b5bdcf079f8 100644 --- a/gnovm/pkg/transpiler/transpiler.go +++ b/gnovm/pkg/transpiler/transpiler.go @@ -123,6 +123,7 @@ func GetTranspileFilenameAndTags(gnoFilePath string) (targetFilename, tags strin return } +// Here? func TranspileAndCheckMempkg(mempkg *std.MemPackage) error { gofmt := "gofmt" diff --git a/tm2/pkg/std/memfile.go b/tm2/pkg/std/memfile.go index 5655876c9bbb..71230c4c2ad1 100644 --- a/tm2/pkg/std/memfile.go +++ b/tm2/pkg/std/memfile.go @@ -46,6 +46,7 @@ var ( // path must not contain any dots after the first domain component. // file names must contain dots. // NOTE: this is to prevent conflicts with nested paths. +// Here? func (mempkg *MemPackage) Validate() error { // add assertion that MemPkg contains at least 1 file if len(mempkg.Files) <= 0 {