Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add ShadowedName and AvoidClashName | Martin Odersky | 2017-04-11 | 2 | -3/+4 |
| | |||||
* | Get rid of SuperAccessor flag | Martin Odersky | 2017-04-11 | 6 | -6/+9 |
| | |||||
* | Get rid of ExpandedName flag | Martin Odersky | 2017-04-11 | 4 | -5/+10 |
| | |||||
* | Drop Config.semanticNames option | Martin Odersky | 2017-04-11 | 2 | -9/+3 |
| | | | | | We now handle only semantic names. Also, name extractor tags and TASTY name tags are now aligned. | ||||
* | Add default getter names | Martin Odersky | 2017-04-11 | 2 | -6/+9 |
| | | | | Plus various bug fixes and filling in missing functionality | ||||
* | Merge pull request #2197 from dotty-staging/add-enum-exhaustiveness | odersky | 2017-04-10 | 3 | -100/+76 |
|\ | | | | | Add enum exhaustivity checking | ||||
| * | simplify exhaustivity check using ConstantType | liu fengyun | 2017-04-06 | 1 | -49/+11 |
| | | | | | | | | Now the algorithm is the same as in the paper. | ||||
| * | remove obsolete code | liu fengyun | 2017-04-06 | 1 | -9/+0 |
| | | |||||
| * | exhaustivity support for enums | liu fengyun | 2017-04-06 | 2 | -51/+68 |
| | | |||||
| * | Add child annotations for enum values | Martin Odersky | 2017-04-06 | 2 | -4/+10 |
| | | | | | | | | | | A new kind of child annotation that points to the term symbol representing an enum value. | ||||
* | | Fix #2188: Do cbn transform also on Selects | Martin Odersky | 2017-04-09 | 1 | -0/+3 |
|/ | | | | These can arise as a result of an explicit outer transform. | ||||
* | Eliminate MethodOrPoly | Martin Odersky | 2017-04-06 | 1 | -1/+1 |
| | | | | Replace with LambdaType | ||||
* | Eliminate ParamType | Martin Odersky | 2017-04-06 | 1 | -1/+1 |
| | | | | Replace with ParamRef | ||||
* | replace derived{Method,Poly}Type with derivedLambdaType | Martin Odersky | 2017-04-06 | 6 | -11/+11 |
| | |||||
* | Rename PolyParam --> TypeParamRef | Martin Odersky | 2017-04-06 | 2 | -2/+2 |
| | |||||
* | Harmonize paramTypes and paramBounds | Martin Odersky | 2017-04-06 | 10 | -21/+21 |
| | | | | | | MethodTypes have paramTypes whereas PolyTypes have paramBounds. We now harmonize by alling both paramInfos, and parameterizing types that will become common to both. | ||||
* | Break out functionality from MethodType | Martin Odersky | 2017-04-06 | 2 | -3/+3 |
| | | | | | and generalize MethodParam to ParamRef, and TypeParamInfo to ParamInfo | ||||
* | Encode variances in parameter names | Martin Odersky | 2017-04-06 | 1 | -2/+2 |
| | | | | | | | | | | This leads to a slight overall simplification, harmonizes pickle format with internal representation, and makes MethodTypes and PolyTypes more similar to each other. I believe the change is useful as it is, but in particular it is a useful step for an eventual unification of MethodTypes and PolyTypes. | ||||
* | Merge pull request #2025 from dotty-staging/fix-2024 | Nicolas Stucki | 2017-04-05 | 1 | -0/+4 |
|\ | | | | | Fix #2024: TypeApply can be a final apply of a recursive method. | ||||
| * | Fix #2024: TypeApply can be a final apply of a recursive method. | Dmitry Petrashko | 2017-03-08 | 1 | -0/+4 |
| | | | | | | | | | | nullary methods with type parameters were handled wrongly, which led to absence of type application and a cryptic error message. | ||||
* | | Addresses review comments | Allan Renucci | 2017-04-04 | 2 | -8/+8 |
| | | |||||
* | | Fixes @unchecked warnings | Allan Renucci | 2017-04-03 | 2 | -4/+4 |
| | | |||||
* | | Merge pull request #2159 from dotty-staging/fix-hashcode | Dmitry Petrashko | 2017-04-03 | 1 | -2/+3 |
|\ \ | | | | | | | Make case class hashCode take class into account | ||||
| * \ | Merge branch 'master' into fix-hashcode | Felix Mulder | 2017-04-02 | 1 | -11/+6 |
| |\ \ | |||||
| * | | | Use full name of case classes for hashing | Martin Odersky | 2017-03-31 | 1 | -2/+3 |
| | | | | |||||
| * | | | Optimize hashCode computation | Martin Odersky | 2017-03-31 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | Also, update check file. | ||||
| * | | | Make case class hashCode take class into account | Martin Odersky | 2017-03-30 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, elements of the following classes had the same hash code: case class A() case class B() Now they are distinguished. | ||||
* | | | | Merge pull request #2157 from dotty-staging/patmat-dead-code | Felix Mulder | 2017-04-02 | 1 | -109/+3 |
|\ \ \ \ | |_|/ / |/| | | | Remove dead code in pattern matching | ||||
| * | | | Remove unreachable `tupleExtractor` method | Olivier Blanvillain | 2017-03-30 | 1 | -22/+1 |
| | | | | |||||
| * | | | Remove dead code from pattern matcher | Olivier Blanvillain | 2017-03-30 | 1 | -87/+2 |
| |/ / | | | | | | | | | | Starting from unreachable case https://github.com/lampepfl/dotty/blob/f75caad00256db52bbd3310f245e51d23c2a76cc/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala#L1408 | ||||
* | | | PatMat, Outerchecks: Check outers for selections from singleton type. | Dmitry Petrashko | 2017-03-30 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | Otherwise checks are done also on type projections. Same pitfall as https://issues.scala-lang.org/browse/SI-7214 | ||||
* | | | PatMat: get rid of unnecessary forwarder | Dmitry Petrashko | 2017-03-30 | 1 | -8/+2 |
| | | | |||||
* | | | Fix #2165, emit outerChecks on ThisType | Dmitry Petrashko | 2017-03-30 | 1 | -2/+2 |
|/ / | | | | | | | | | | | ThisType doesn't have a termSymbol. And the check is actually too strong, and not needed. | ||||
* | | Only use shadowed when necessary | Martin Odersky | 2017-03-20 | 1 | -7/+8 |
| | | |||||
* | | Use shadowing to reference inherited accessors. | Martin Odersky | 2017-03-20 | 1 | -3/+9 |
| | | | | | | | | | | | | Normal references won't work since the referenced accessor has the same name as a private name in the class defining the forwarder. This showed up as pickling failures under separate compilation. | ||||
* | | Fix #2084. | Dmitry Petrashko | 2017-03-20 | 1 | -5/+12 |
| | | |||||
* | | Merge pull request #2058 from dotty-staging/fix-2054 | liu fengyun | 2017-03-18 | 2 | -2/+8 |
|\ \ | | | | | | | Fix #2054 | ||||
| * | | fix typo in comment | liu fengyun | 2017-03-18 | 1 | -1/+1 |
| | | | |||||
| * | | Fix a stupid error in fix of #2054. | Dmitry Petrashko | 2017-03-13 | 2 | -4/+7 |
| | | | |||||
| * | | Fix #2054: @Static methods may access synthetic private methods stuff | Dmitry Petrashko | 2017-03-07 | 1 | -0/+3 |
| |/ | | | | | | | | | | | Due to way how we desugar lambdas, we can decide to make a lambda static Static methods could refer to those lambdas and we need to make them public | ||||
* | | Merge pull request #2043 from dotty-staging/tailrec-derivesFrom | Dmitry Petrashko | 2017-03-15 | 2 | -3/+7 |
|\ \ | | | | | | | Tailrec for derivesFrom/lookupRefined/classSymbol/classSymbols | ||||
| * | | Add @tailrec to avoid regressions. | Nicolas Stucki | 2017-03-01 | 2 | -3/+7 |
| |/ | |||||
* | | Merge pull request #2079 from dotty-staging/depmeth2 | odersky | 2017-03-14 | 10 | -32/+34 |
|\ \ | | | | | | | Allow inter-parameter dependencies | ||||
| * | | Fix unrelated typos in comments | Martin Odersky | 2017-03-14 | 1 | -6/+6 |
| | | | |||||
| * | | Drop mixed MethodType apply method | Martin Odersky | 2017-03-14 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | The dropped method takes direct parameter types but a result type expression. Since parameter types are now in general dependent as well, that method is mostly redundant. | ||||
| * | | Construct MethodTypes from parameter closure | Martin Odersky | 2017-03-14 | 9 | -24/+25 |
| | | | | | | | | | | | | | | | 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 #2091 from dotty-staging/fix-#2077 | Guillaume Martres | 2017-03-14 | 1 | -0/+9 |
|\ \ \ | |/ / |/| | | Fix #2077: Optimization of constant conditionals | ||||
| * | | Fix #2077: Optimization of constant conditionals | Martin Odersky | 2017-03-13 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | Move fixed logic to FirstTransform, where the other constant folding operations are also done. | ||||
* | | | fix #1488: unfriendly jumping in evaluating lazy val block | liu fengyun | 2017-03-14 | 1 | -1/+1 |
|/ / | |||||
* | | Merge pull request #2078 from dotty-staging/fix-#1569-v2 | Guillaume Martres | 2017-03-12 | 1 | -1/+1 |
|\ \ | | | | | | | Fix #360: Improve avoidance algorithm |