Simplified ssa package
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Eduard Urbach 2025-07-03 22:54:30 +02:00
parent b77d876ebb
commit ca9595d1fb
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
28 changed files with 179 additions and 649 deletions

View file

@ -149,10 +149,10 @@ func (f *Function) Evaluate(expr *expression.Expression) (ssa.Value, error) {
}
if fn.IsExtern() {
v := f.Append(&ssa.CallExtern{
v := f.Append(&ssa.CallExtern{Call: ssa.Call{
Arguments: args,
Source: ssa.Source(expr.Source),
})
}})
return v, nil
}
@ -179,7 +179,7 @@ func (f *Function) Evaluate(expr *expression.Expression) (ssa.Value, error) {
return nil, errors.New(&UnknownStructField{StructName: structure.Name(), FieldName: rightText}, f.File, right.Token.Position)
}
v := f.Append(&ssa.StructField{
v := f.Append(&ssa.Field{
Struct: identifier,
Field: field,
Source: ssa.Source(expr.Source),