aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/ast/tpd.scala
Commit message (Collapse)AuthorAgeFilesLines
* Rename NameExtractor -> NameKindMartin Odersky2017-04-111-1/+1
|
* Make freshName semanticMartin Odersky2017-04-111-1/+2
|
* Rename PolyTypeTree -> LambdaTypeTreeMartin Odersky2017-04-061-2/+2
|
* Harmonize paramTypes and paramBoundsMartin Odersky2017-04-061-5/+5
| | | | | | MethodTypes have paramTypes whereas PolyTypes have paramBounds. We now harmonize by alling both paramInfos, and parameterizing types that will become common to both.
* Merge pull request #2043 from dotty-staging/tailrec-derivesFromDmitry Petrashko2017-03-151-1/+1
|\ | | | | Tailrec for derivesFrom/lookupRefined/classSymbol/classSymbols
| * Add @tailrec to avoid regressions.Nicolas Stucki2017-03-011-1/+1
| |
* | Construct MethodTypes from parameter closureMartin Odersky2017-03-141-2/+2
|/ | | | | To allow for dependencies between method type parameters, construct MethodTypes from a closure that maps the currently constructed MethodType to its parameter types.
* Merge pull request #1996 from dotty-staging/fix-#1990odersky2017-02-211-1/+1
|\ | | | | Fix #1990: Handle inlining where this proxies change types
| * Harden outer proxy computation of inlined codeMartin Odersky2017-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | It turns out that we simply cannot do reliable outer path computation that fills in the right hand sides of this-proxies from the types of these proxies. As-seen-from logic can mangle the types of proxies enough to scramble the necessary information. What we now do instead is simply count: We record the number of outer accesses to an outer this in inlineable code, and do the same number of outer accesses when computing the proxy.
* | TreeMap/TreeAccumulator: proper context for inlined treesGuillaume Martres2017-02-131-4/+1
|/ | | | | | This was already be done in TreeTraverser but should also be done in TreeMap and TreeAccumulator for ctx.error(..., tree.pos) to not use completely incorrect positions inside inlined trees.
* Refine AnonClass generationMartin Odersky2017-02-081-1/+1
| | | | | | | | | The leading class should be the superclass of the first trait (which is not always Object). We could think of a more refined condition, (i.e. taking the least common superclass of all extended traits), but I think it's not worth it, as one can always spell out the right superclass manually.
* Fix #1568 - avoid transforming error treesMartin Odersky2017-02-021-0/+2
| | | | | If a tree has type error, subtrees may not have an assigned type. Therefore we should avoid transforming such trees.
* Ref copier that works for Idents and SelectsMartin Odersky2016-12-171-1/+2
| | | | | The Ref copier copies Idents and Selects, changing the name of either.
* TypedTreeCopier#Select: don't use unstable prefixesGuillaume Martres2016-11-221-1/+1
| | | | | | | | | This manifested itself as a pickling difference in tasty_tools Note that there are probably more issues in this method, in particular the old type is reused when `qualifier.tpe eq tree.qualifier.tpe` even if the `name` is different. But I'm only trying to get the tests to pass for now.
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-221-0/+952