Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Check param is anonymous using param by SymbolInformation (instead of empty displayName) #24

Open
tanishiking opened this issue Aug 29, 2021 · 0 comments
Labels
enhancement New feature or request Scala3 Issue only with Scala3

Comments

@tanishiking
Copy link
Owner

// TODO: should be tested by symbol.info.map(_.isGiven)
// update scala3 https://github.com/lampepfl/dotty/pull/13239
// and update scalameta and scalafix needed
val paramName = if (name.nonEmpty) name else s"using ${paramTree.syntax}"
UnusedDiagnostic.UnusedParameter(
paramName,
owner.getDisplayName,
pos,
)
}

@tanishiking tanishiking added enhancement New feature or request Scala3 Issue only with Scala3 labels Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Scala3 Issue only with Scala3
Projects
None yet
Development

No branches or pull requests

1 participant