diff options
author | Martin Odersky <odersky@gmail.com> | 2013-04-09 15:19:49 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-04-09 15:19:49 +0200 |
commit | 7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3 (patch) | |
tree | 5ca8c806a1414010a2aa8c62c319528386ea653c /src/dotty/tools/dotc/core/Symbols.scala | |
parent | 442c361aee87266fe6428f1d9a5da7de934c8cef (diff) | |
download | dotty-7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3.tar.gz dotty-7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3.tar.bz2 dotty-7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3.zip |
Renamed creation methods of NamedTypes
Methods taking a fixed symbol are now called …withSym, methods taking a signature … withSig.
The reason for the change is that we want to liberate the original method names to take optional denotations, thus avoiding to have to go through withDenot each time.
Diffstat (limited to 'src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Symbols.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala index d040fc998..dced9823d 100644 --- a/src/dotty/tools/dotc/core/Symbols.scala +++ b/src/dotty/tools/dotc/core/Symbols.scala @@ -123,7 +123,7 @@ trait Symbols { this: Context => infoFn(module, modcls), privateWithin) val mdenot = SymDenotation( module, owner, name, modFlags | ModuleCreationFlags, - if (cdenot.isCompleted) TypeRef(owner.thisType, name.toTypeName, modcls) + if (cdenot.isCompleted) TypeRef.withSym(owner.thisType, modcls) else new ModuleCompleter(modcls)(condensed)) module.denot = mdenot modcls.denot = cdenot @@ -148,7 +148,7 @@ trait Symbols { this: Context => newModuleSymbol( owner, name, modFlags, clsFlags, (module, modcls) => ClassInfo( - owner.thisType, modcls, parents, decls, TermRef(owner.thisType, module)), + owner.thisType, modcls, parents, decls, TermRef.withSym(owner.thisType, module)), privateWithin, coord, assocFile) /** Create a package symbol with associated package class |