Skip to content

Commit

Permalink
lang: ast: Include text position in string representation of ExprFunc…
Browse files Browse the repository at this point in the history
…Call
  • Loading branch information
Felix Frank committed Sep 8, 2024
1 parent 1990a42 commit c37ab56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lang/ast/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7974,7 +7974,9 @@ func (obj *ExprCall) String() string {
for _, x := range obj.Args {
s = append(s, fmt.Sprintf("%s", x.String()))
}
return fmt.Sprintf("call:%s(%s)", obj.Name, strings.Join(s, ", "))
result := fmt.Sprintf("call:%s(%s)", obj.Name, strings.Join(s, ", "))
result += fmt.Sprintf(" @ (%d %d)", obj.startLine+1, obj.startColumn+1)
return result
}

// Apply is a general purpose iterator method that operates on any AST node. It
Expand Down

0 comments on commit c37ab56

Please sign in to comment.