Skip to content

Commit

Permalink
Inline
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed Aug 12, 2023
1 parent ffb9f9a commit 7b070ac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ type GoStmt struct {
}

func (s *DeclStmt) Pos() token.Pos { return s.Decl.Pos() }
func (s *ExprStmt) Pos() token.Pos {
x := s.X
ps := x.Pos()
return ps
}
func (s *ExprStmt) Pos() token.Pos { return s.X.Pos() }

func (s *IncDecStmt) Pos() token.Pos { return s.X.Pos() }
func (s *AssignStmt) Pos() token.Pos { return s.Lhs[0].Pos() }
Expand Down

0 comments on commit 7b070ac

Please sign in to comment.