Skip to content

Commit

Permalink
Use correct source position
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Apr 8, 2021
1 parent 2b064fd commit b3e5eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transpiler/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func callExprToMLOG(ctx context.Context, callExpr *ast.CallExpr, ident []Resolva
resolvable,
},
},
SourcePos: ctx.Value(contextStatement).(ast.Node),
SourcePos: callExpr,
})
} else if translatedFunc, ok := funcTranslations[funcName]; ok {
args, instructions, err := argumentsToResolvables(ctx, callExpr.Args)
Expand Down

0 comments on commit b3e5eb5

Please sign in to comment.