Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmaxwell committed Dec 19, 2024
1 parent 907acbd commit 50948d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions gnovm/pkg/gnolang/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ type NameExpr struct {
AbsPath string // absolute path
}

func (nx *NameExpr) GetAbsPath() string {
return nx.AbsPath
func (x *NameExpr) GetAbsPath() string {
return x.AbsPath
}

type NameExprs []NameExpr
Expand Down Expand Up @@ -455,8 +455,8 @@ type IndexExpr struct { // X[Index]
AbsPath string // absolute path, set by preprocessor
}

func (ix *IndexExpr) GetAbsPath() string {
return ix.AbsPath
func (x *IndexExpr) GetAbsPath() string {
return x.AbsPath
}

type SelectorExpr struct { // X.Sel
Expand All @@ -467,8 +467,8 @@ type SelectorExpr struct { // X.Sel
AbsPath string // absolute path, set by preprocessor
}

func (sx *SelectorExpr) GetAbsPath() string {
return sx.AbsPath
func (x *SelectorExpr) GetAbsPath() string {
return x.AbsPath
}

type SliceExpr struct { // X[Low:High:Max]
Expand All @@ -488,8 +488,8 @@ type StarExpr struct { // *X
AbsPath string // absolute path, set by preprocessor
}

func (sx *StarExpr) GetAbsPath() string {
return sx.AbsPath
func (x *StarExpr) GetAbsPath() string {
return x.AbsPath
}

type RefExpr struct { // &X
Expand Down
6 changes: 3 additions & 3 deletions gnovm/pkg/gnolang/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -3080,12 +3080,12 @@ func isSwitchLabel(ns []Node, label Name) bool {
return false
}

func (pn *PackageNode) nextBlockID(PkgPath string) BlockID {
func (x *PackageNode) nextBlockID(PkgPath string) BlockID {
pkgID := PkgIDFromPkgPath(PkgPath)
pn.Time++
x.Time++
return BlockID{
PkgID: pkgID,
NewTime: pn.Time,
NewTime: x.Time,
}
}

Expand Down

0 comments on commit 50948d0

Please sign in to comment.