File tree 4 files changed +4
-4
lines changed 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ class FieldsDsl[V](v: V):
6
6
inline def of [T ]: Seq [T ] = FieldsImpl .fieldsOfType[V , T ](v)
7
7
8
8
extension [V ](on : V ):
9
- def fields = FieldsDsl (on)
9
+ def reflectedFields = FieldsDsl (on)
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ object FieldsImpl:
12
12
def isProjectField (s : Symbol ) =
13
13
s.isValDef && s.tree.asInstanceOf [ValDef ].tpt.tpe <:< retType
14
14
val projectsTree = Term .of(from)
15
- val symbols = TypeTree .of[V ].symbol.memberMethods .filter(isProjectField)
15
+ val symbols = TypeTree .of[V ].symbol.fields .filter(isProjectField)
16
16
val selects = symbols.map(Select (projectsTree, _).asExprOf[T ])
17
17
' { println($ {Expr (retType.show)}); $ {Varargs (selects)} }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object Main:
25
25
case " publish" :: name :: Nil =>
26
26
case " doc" :: " all" :: destStr :: Nil =>
27
27
val dest = Paths .get(destStr)
28
- Seq (" rm" , " -rf" , " destStr" ).!
28
+ Seq (" rm" , " -rf" , destStr).!
29
29
Files .createDirectory(dest)
30
30
val (toRun, ignored) =
31
31
allProjects.partition(_.docCommand != null )
Original file line number Diff line number Diff line change @@ -535,6 +535,6 @@ object projects:
535
535
536
536
end projects
537
537
538
- def allProjects = projects.fields .of[CommunityProject ].sortBy(_.project)
538
+ def allProjects = projects.reflectedFields .of[CommunityProject ].sortBy(_.project)
539
539
540
540
lazy val projectMap = allProjects.map(p => p.project -> p).toMap
You can’t perform that action at this time.
0 commit comments