Skip to content

Commit

Permalink
Merge pull request #340 from MichaelS11/position
Browse files Browse the repository at this point in the history
Add position to anonCallExpr
  • Loading branch information
mattn authored May 21, 2020
2 parents c8c7385 + 3e58160 commit 0d30f07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vm/vmExprFunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func (runInfo *runInfoStruct) anonCallExpr() {
}

runInfo.expr = &ast.CallExpr{Func: runInfo.rv, SubExprs: anonCallExpr.SubExprs, VarArg: anonCallExpr.VarArg, Go: anonCallExpr.Go}
runInfo.expr.SetPosition(anonCallExpr.Expr.Position())
runInfo.invokeExpr()
}

Expand Down

0 comments on commit 0d30f07

Please sign in to comment.