diff options
author | Martin Odersky <odersky@gmail.com> | 2013-06-04 18:00:37 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-06-04 18:00:37 +0200 |
commit | b28c9ef75e274bdc54e9502e56c95b505495de5b (patch) | |
tree | 84b350bffb77d521d7c8393096b43deca78f5e5f /src/dotty/tools/dotc/core/Contexts.scala | |
parent | 4fc1d8501a3937547e05f14aa4f4423a2c0d6a1d (diff) | |
download | dotty-b28c9ef75e274bdc54e9502e56c95b505495de5b.tar.gz dotty-b28c9ef75e274bdc54e9502e56c95b505495de5b.tar.bz2 dotty-b28c9ef75e274bdc54e9502e56c95b505495de5b.zip |
Refactoring: breaking out desugaring into its own object.
Also, changing the maps in Namer. More commenting needs to be done. Pushing now to get off this machine and
back to the new one, which just came back form repair.
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Contexts.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala index 98cf7e801..6d566cdbd 100644 --- a/src/dotty/tools/dotc/core/Contexts.scala +++ b/src/dotty/tools/dotc/core/Contexts.scala @@ -253,6 +253,7 @@ object Contexts { def withPlainPrinter(printer: Context => Printer): this.type = { this.plainPrinter = printer; this } def withRefinedPrinter(printer: Context => Printer): this.type = { this.refinedPrinter = printer; this } def withOwner(owner: Symbol): this.type = { this.owner = owner; this } + def withNewScope: this.type = { this.scope = newScope; this } def withSettings(sstate: SettingsState): this.type = { this.sstate = sstate; this } def withTree(tree: Tree[_ >: Untyped]): this.type = { this.tree = tree; this } def withScope(scope: Scope): this.type = { this.scope = scope; this } |