Skip to content

apply methods ("constructors") for Selector in metaprogramming #17657

@erikerlandson

Description

@erikerlandson

The Selector type and its sub-classes (SimpleSelector, etc) do not expose any way to construct new selector trees, and this in turn prevents creation of import ... statements in quoted expressions.

Import comes with a constructor:
https://github.com/lampepfl/dotty/blob/d99d9bfc6429f02403c27562fc5f1b5814115e02/library/src/scala/quoted/Quotes.scala#L359

However it requires a List[Selector], and I cannot find a way to construct such a list

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