Skip to content

Missing constructor for Term.Ident #5951

Closed
@liufengyun

Description

@liufengyun

In addition to constructors for Term.Select (#5796), we need constructor for Term.Ident as well in implementing Monocle macros (#5941) . Something similar to that in tpd.scala would be ideal:

def Ident(tp: TermRef)(implicit ctx: Context): Ident

However, currently there are both SymRef and TermRef in tasty reflect, which are not subtype of each other. This makes the API fragmented.

Any ideas @nicolasstucki ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions