Skip to content

Improve enum symbol coverter #4572

@pepone

Description

@pepone

Unrelated to this PR, but could we do something like:

var func = builtin.Kind switch {
    BuiltinKind.Int8 => ...
    BuiltinKind.UInt8 => ...
};
return CreateBasicEnum(raw, module, builtin, func);

Instead of repeating the call to CreateBasicEnum in ever case? Because the only thing that actually changes between each case is the lambda we pass, everything else is the same right?

Originally posted by @InsertCreativityHere in #4568 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions