Skip to content

Commit 71b68b7

Browse files
authored
Merge pull request #10699 from dotty-staging/fix-doc-community-build
Fix doc community build
2 parents b2e3665 + d41704b commit 71b68b7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

community-build/src/scala/dotty/communitybuild/Fields.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class FieldsDsl[V](v: V):
66
inline def of[T]: Seq[T] = FieldsImpl.fieldsOfType[V, T](v)
77

88
extension [V](on: V):
9-
def fields = FieldsDsl(on)
9+
def reflectedFields = FieldsDsl(on)

community-build/src/scala/dotty/communitybuild/FieldsImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)} }

community-build/src/scala/dotty/communitybuild/Main.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,6 @@ object projects:
535535

536536
end projects
537537

538-
def allProjects = projects.fields.of[CommunityProject].sortBy(_.project)
538+
def allProjects = projects.reflectedFields.of[CommunityProject].sortBy(_.project)
539539

540540
lazy val projectMap = allProjects.map(p => p.project -> p).toMap

0 commit comments

Comments
 (0)