File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 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):
66 inline def of [T ]: Seq [T ] = FieldsImpl .fieldsOfType[V , T ](v)
77
88extension [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:
1212 def isProjectField (s : Symbol ) =
1313 s.isValDef && s.tree.asInstanceOf [ValDef ].tpt.tpe <:< retType
1414 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)
1616 val selects = symbols.map(Select (projectsTree, _).asExprOf[T ])
1717 ' { println($ {Expr (retType.show)}); $ {Varargs (selects)} }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object Main:
2525 case " publish" :: name :: Nil =>
2626 case " doc" :: " all" :: destStr :: Nil =>
2727 val dest = Paths .get(destStr)
28- Seq (" rm" , " -rf" , " destStr" ).!
28+ Seq (" rm" , " -rf" , destStr).!
2929 Files .createDirectory(dest)
3030 val (toRun, ignored) =
3131 allProjects.partition(_.docCommand != null )
Original file line number Diff line number Diff line change @@ -535,6 +535,6 @@ object projects:
535535
536536end projects
537537
538- def allProjects = projects.fields .of[CommunityProject ].sortBy(_.project)
538+ def allProjects = projects.reflectedFields .of[CommunityProject ].sortBy(_.project)
539539
540540lazy val projectMap = allProjects.map(p => p.project -> p).toMap
You can’t perform that action at this time.
0 commit comments