apply methods ("constructors") for Selector in metaprogramming #17658
erikerlandson
started this conversation in
Feature Requests
Replies: 1 comment
-
cc @armanbilge |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 ofimport ...
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 listBeta Was this translation helpful? Give feedback.
All reactions