Added separate value type for extern calls
All checks were successful
/ test (push) Successful in 30s

This commit is contained in:
Eduard Urbach 2025-07-03 16:57:39 +02:00
parent 4aa4d613a1
commit 3f481d0bd3
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
4 changed files with 110 additions and 28 deletions

View file

@ -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: