Skip to content

Commit 3b71297

Browse files
committed
Rename directory and HMap to toTuple
1 parent 8b17ed0 commit 3b71297

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/run-macros/structural-macro/Macro_1.scala renamed to tests/run-macros/refined-selectable-macro/Macro_1.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ object Macro {
1313
def fromTuple(t: Tuple): Record = Record(t.toArray.toSeq.map(e => e.asInstanceOf[(String, Any)]): _*)
1414
}
1515

16-
inline def toHMap(s: Selectable) <: Tuple = ${ toHMapImpl('s)}
16+
inline def toTuple(s: Selectable) <: Tuple = ${ toTupleImpl('s)}
1717

18-
def toHMapImpl(s: Expr[Selectable])(given qctx:QuoteContext): Expr[Tuple] = {
18+
def toTupleImpl(s: Expr[Selectable])(given qctx:QuoteContext): Expr[Tuple] = {
1919
import qctx.tasty.{given, _}
2020

2121
val repr = s.unseal.tpe.widenTermRefExpr.dealias

tests/run-macros/structural-macro/Test_2.scala renamed to tests/run-macros/refined-selectable-macro/Test_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object Test {
1010
def main(args: Array[String]): Unit = {
1111
val person: Person = Record("name" -> "Emma", "age" -> 42).asInstanceOf[Person]
1212

13-
val res: (("name", String), ("age", Int)) = toHMap(person)
13+
val res: (("name", String), ("age", Int)) = toTuple(person)
1414

1515
println(res)
1616
println()

0 commit comments

Comments
 (0)