diff options
author | Martin Odersky <odersky@gmail.com> | 2013-06-18 19:38:09 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-06-18 19:38:09 +0200 |
commit | f8a42a0584d855a0548c20c7434ed83a59647ed9 (patch) | |
tree | 9bdb1b8367d5a692cbf26003e6b10b6122a8d03b /src/dotty/tools/dotc/typer/Namer.scala | |
parent | 3c7936515a9aaf383b453fe5844598fd53a2e551 (diff) | |
download | dotty-f8a42a0584d855a0548c20c7434ed83a59647ed9.tar.gz dotty-f8a42a0584d855a0548c20c7434ed83a59647ed9.tar.bz2 dotty-f8a42a0584d855a0548c20c7434ed83a59647ed9.zip |
Added typedIdent method.
Also some refactorings that were caused by adding this method.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Namer.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala index 6ed45e4df..16d643552 100644 --- a/src/dotty/tools/dotc/typer/Namer.scala +++ b/src/dotty/tools/dotc/typer/Namer.scala @@ -131,7 +131,7 @@ class Namer { typer: Typer => /** A new context that summarizes an import statement */ def importContext(sym: Symbol, selectors: List[Tree])(implicit ctx: Context) = - ctx.fresh.withImport(ImportInfo(sym, selectors, ctx.scopeNestingLevel)) + ctx.fresh.withImportInfo(ImportInfo(sym, selectors, ctx.scopeNestingLevel)) /** A new context for the interior of a class */ def inClassContext(cls: ClassSymbol, selfName: TermName)(implicit ctx: Context): Context = { @@ -214,7 +214,7 @@ class Namer { typer: Typer => } } - /** Typecheck tree during completion, and remember result in yypedtree map */ + /** Typecheck tree during completion, and remember result in typedtree map */ def typedAhead(tree: Tree, mode: Mode = Mode.Expr, pt: Type = WildcardType)(implicit ctx: Context): tpd.Tree = typedTree.getOrElseUpdate(tree, typer.typedExpanded(tree, mode, pt)) |