File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
main/define/src/mill/define Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ object Discover {
6161 val crossSym = Symbol .requiredClass(" mill.define.Cross" )
6262 val crossArg = crossSym.typeMembers.filter(_.isTypeParam).head
6363 val moduleSym = Symbol .requiredClass(" mill.define.Module" )
64+ val deprecatedSym = Symbol .requiredClass(" scala.deprecated" )
6465 def rec (tpe : TypeRepr ): Unit = {
6566 if (seen.add(tpe)) {
6667 val typeSym = tpe.typeSymbol
@@ -123,7 +124,7 @@ object Discover {
123124 val mapping = for {
124125 discoveredModuleType <- seen.toSeq.sortBy(_.typeSymbol.fullName)
125126 curCls = discoveredModuleType
126- methods = curCls.typeSymbol.methodMembers.filterNot(m => m.isSuperAccessor || m.flags.is(Flags .Synthetic | Flags .Invisible | Flags .Private | Flags .Protected )) // getValsOrMeths(curCls) replaced by equivalent from Scala 3 mainargs
127+ methods = curCls.typeSymbol.methodMembers.filterNot(m => m.isSuperAccessor || m.hasAnnotation(deprecatedSym) || m. flags.is(Flags .Synthetic | Flags .Invisible | Flags .Private | Flags .Protected )) // getValsOrMeths(curCls) replaced by equivalent from Scala 3 mainargs
127128 overridesRoutes = {
128129 assertParamListCounts(
129130 curCls,
You can’t perform that action at this time.
0 commit comments