Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify processing of method invocations w/ default arguments #1886

Merged
merged 2 commits into from Aug 15, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Fix formatting

  • Loading branch information...
olafurpg committed Aug 15, 2019
commit 92c94190ebd740d82f49f1089c5f362c184ad40b
@@ -13,16 +13,15 @@ trait VersionSpecificOps { self: SemanticdbOps =>
object NamedApplyBlock {
def unapply(block: g.Block): Option[Option[g.analyzer.NamedApplyInfo]] =
if (block.stats.forall(stat =>
stat.symbol != null &&
stat.symbol.isArtifact &&
(stat match {
case g.ValDef(_, name, _, _) if name.startsWith(g.termNames.NAMEDARG_PREFIX) => true
case _ => false
})
)) {
stat.symbol != null &&
stat.symbol.isArtifact &&
(stat match {
case g.ValDef(_, name, _, _) if name.startsWith(g.termNames.NAMEDARG_PREFIX) => true
case _ => false
}))) {
Some(None)
} else {
None
}
}
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.