diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2017-02-22 16:08:26 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan@lightbend.com> | 2017-04-06 18:13:17 -0700 |
commit | c04bcdc6dedf3e4cf3e6a608a66978841abc6171 (patch) | |
tree | ad879924e095d04747ef14dd4291d611fb77d4e4 /src/compiler/scala/tools/nsc/typechecker/Unapplies.scala | |
parent | d8613df1cd6545f85767bf649a483621676b5893 (diff) | |
download | scala-c04bcdc6dedf3e4cf3e6a608a66978841abc6171.tar.gz scala-c04bcdc6dedf3e4cf3e6a608a66978841abc6171.tar.bz2 scala-c04bcdc6dedf3e4cf3e6a608a66978841abc6171.zip |
Refactor to reduce assignSymbol indirection
- remove logging wrapper that also does important work
- `assignAndEnterSymbol(tree)` --> `enterInScope(assignMemberSymbol(tree))`
- reduce redundant type test (we know it's an import/package/member)
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Unapplies.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Unapplies.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala index f2e9b260b0..c13257f6ec 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala @@ -24,7 +24,7 @@ trait Unapplies extends ast.TreeDSL { private def unapplyParamName = nme.x_0 private def caseMods = Modifiers(SYNTHETIC | CASE) - // In the typeCompleter (templateSig) of a case class (resp it's module), + // In the typeCompleter (templateSig) of a case class (resp its module), // synthetic `copy` (reps `apply`, `unapply`) methods are added. To compute // their signatures, the corresponding ClassDef is needed. During naming (in // `enterClassDef`), the case class ClassDef is added as an attachment to the |