diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-23 11:21:09 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-23 11:21:09 +0200 |
commit | 8bd14310f60c1be997a62eaba84dd49624ea2df6 (patch) | |
tree | 39369f935293359c80414f0cdafbdf8acc0468c3 /src/dotty/tools/dotc/typer/Typer.scala | |
parent | 857cd4839c872d229994c9d27bb06ef866dad93d (diff) | |
download | dotty-8bd14310f60c1be997a62eaba84dd49624ea2df6.tar.gz dotty-8bd14310f60c1be997a62eaba84dd49624ea2df6.tar.bz2 dotty-8bd14310f60c1be997a62eaba84dd49624ea2df6.zip |
Renamed parameters in Typer&Applictaions.
Indicating that pt is type of selector is this pattern match makes it easier to follow.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 1823b09fa..7b8fe3727 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -1050,8 +1050,8 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit typed(tree, pt)(ctx retractMode Mode.PatternOrType) def typedType(tree: untpd.Tree, pt: Type = WildcardType)(implicit ctx: Context): Tree = // todo: retract mode between Type and Pattern? typed(tree, pt)(ctx addMode Mode.Type) - def typedPattern(tree: untpd.Tree, pt: Type = WildcardType)(implicit ctx: Context): Tree = - typed(tree, pt)(ctx addMode Mode.Pattern) + def typedPattern(tree: untpd.Tree, selType: Type = WildcardType)(implicit ctx: Context): Tree = + typed(tree, selType)(ctx addMode Mode.Pattern) def tryEither[T](op: Context => T)(fallBack: (T, TyperState) => T)(implicit ctx: Context) = { val nestedCtx = ctx.fresh.setNewTyperState |