aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-24 13:20:01 +0100
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:10 +0200
commit0ad1cd816bc1537ad332addabb0ff6c293e3e0a0 (patch)
tree68ab44576e17d19fa6cca14a0f750266a638eb7f /compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala
parenta2731a8be2f3434218623c0b0ecd4078107f14a5 (diff)
downloaddotty-0ad1cd816bc1537ad332addabb0ff6c293e3e0a0.tar.gz
dotty-0ad1cd816bc1537ad332addabb0ff6c293e3e0a0.tar.bz2
dotty-0ad1cd816bc1537ad332addabb0ff6c293e3e0a0.zip
Add default getter names
Plus various bug fixes and filling in missing functionality
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala b/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala
index 7ac505a20..b45255eb8 100644
--- a/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala
+++ b/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala
@@ -36,6 +36,8 @@ class NameBuffer extends TastyBuffer(10000) {
case _: NameInfo.Expand => Expanded
}
tcon(nameIndex(prefix, toTasty), nameIndex(qual.name))
+ case DerivedTermName(prefix, NameInfo.DefaultGetter(num)) =>
+ DefaultGetter(nameIndex(prefix, toTasty), num)
case name1 =>
if (name1.isShadowedName) Shadowed(nameIndex(name1.revertShadowed, toTasty))
else toTasty(name1.asSimpleName)