Skip to content

[macro] Declaring typedef not working and ruins macro generation #59717

Open
@dsvishchov

Description

When trying to declare a simple typedef generation stops at typede when typing and ruins macros generation at a whole, so nothing works unless this statement is removed/commented out.

For example:
builder.declareType('Test', DeclarationCode.fromString('typedef Test = int;'));

Dart version: 3.6.0 (same behavior was on 3.5.3 as well)

Monosnap actionable dart — test_macro 2024-12-14 10-37-52

Metadata

Assignees

No one assigned

    Labels

    area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.feature-macrosImplementation of the macros featurepkg-jsonThe json macro packagetype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions