Added separate value type for extern calls
All checks were successful
/ test (push) Successful in 30s
All checks were successful
/ test (push) Successful in 30s
This commit is contained in:
parent
4aa4d613a1
commit
3f481d0bd3
4 changed files with 110 additions and 28 deletions
|
@ -145,12 +145,11 @@ func (f *Function) Evaluate(expr *expression.Expression) (ssa.Value, error) {
|
|||
}
|
||||
}
|
||||
|
||||
call := &ssa.Call{
|
||||
Arguments: args,
|
||||
Source: ssa.Source(expr.Source),
|
||||
if fn.IsExtern() {
|
||||
return f.Append(&ssa.CallExtern{Arguments: args, Source: ssa.Source(expr.Source)}), nil
|
||||
}
|
||||
|
||||
return f.Append(call), nil
|
||||
return f.Append(&ssa.Call{Arguments: args, Source: ssa.Source(expr.Source)}), nil
|
||||
}
|
||||
|
||||
case token.Dot:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue