Skip to content

Fix compound object field designator #924

@kant2002

Description

@kant2002

Currently the object field initializer uses designator from AST. That leads to polluted emitter in CompoundObjectInitializationExpression which known about what kind of initializer we have.

Instead of that, I think proper way to handle that would be encode initialization at that AST->IR translation, or create special IR translation phase which desugar expression to primitive object field assigning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:compilerRelated to code compilation or type checkingkind:refactorInternal changes not affecting the compiler behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions