aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Patch redundant `_' suffixes.Martin Odersky2016-03-121-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scala2 allows `x _` even if `x` is not a method. Dotty disallows them. The patch removes the ` _` in these cases.
| * | | | | More detailed diagnostic in NavigateASTMartin Odersky2016-03-121-1/+6
| | | | | |
| * | | | | Maintain source position in GettersMartin Odersky2016-03-121-2/+2
| | | | | |
| * | | | | Disable volatile interpretation of lazy vals under -language:Scala2Martin Odersky2016-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Revert this commit once #1149 is fixed.
| * | | | | Remove printlnMartin Odersky2016-03-121-3/+1
| | | | | |
| * | | | | Add @volatile when rewriting lazy vals from Scala2.Martin Odersky2016-03-121-2/+8
| | | | | |
| * | | | | Better error message when an outer path is not found.Martin Odersky2016-03-121-1/+6
| | | | | |
| * | | | | Copy full modifiers to companionsMartin Odersky2016-03-121-7/+6
| | | | | |
| * | | | | Fix desugaring of lazy patterns.Martin Odersky2016-03-121-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | Selectors should be defs, not lazy vals.
| * | | | | Untangle withAnnotation naming.Martin Odersky2016-03-122-4/+8
| | | | | |
| * | | | | Test language features always in phase typer.Martin Odersky2016-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Imports are missing afterwards.
| * | | | | Add functionality to navigate ASTsMartin Odersky2016-03-122-32/+115
| | | | | | | | | | | | | | | | | | | | | | | | Map typed to corresponding untyped trees.
| * | | | | Better encapsulationMartin Odersky2016-03-126-93/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No more leaking ofMove PatchedFiles in a settings option. Move all patch classes into a `Rewrites` object.
| * | | | | Avoid setupMethod in DriverMartin Odersky2016-03-124-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Driver should not know that patch functionality exists. Instead, introduce settings that can introduce their own stateful values.
| * | | | | Add patching functionality for migrationMartin Odersky2016-03-126-3/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Firs version of patching that can be invoked by dotty compiler itself.
* | | | | | Merge pull request #1178 from liufengyun/tokens-fixDmitry Petrashko2016-03-151-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | make token declarations consistent
| * | | | | | make token declarations consistentliu fengyun2016-03-141-2/+2
| | |_|_|_|/ | |/| | | |
* | | | | | Merge pull request #1165 from dotty-staging/fix-#1144Dmitry Petrashko2016-03-152-8/+23
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Pickle/unpickle SuperAccessor names
| * | | | | Delete unused lineMartin Odersky2016-03-121-1/+0
| | | | | |
| * | | | | Pickle/unpickle SuperAccessor namesMartin Odersky2016-03-102-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed to restore the SuperAccessor flag in separate compilation. Fixes #1144.
* | | | | | Merge pull request #1168 from dotty-staging/fix-#1131Dmitry Petrashko2016-03-144-33/+29
|\ \ \ \ \ \ | | | | | | | | | | | | | | Tweaks to ExplicitOuter and TreeTypeMap
| * | | | | | Drop debug printlnMartin Odersky2016-03-121-1/+0
| | | | | | |
| * | | | | | Changes to owners in Mixin and ConstructorsMartin Odersky2016-03-122-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two changes: 1. Replace changeOwer with changeOwnerAfter for code that moves into the $initial methods in Mixin. This is needed because otherwise subsequent transforms gets confused wrt new vs old owners. `i1131.scala` exhibits the problem. 2. Drop `transformSym` changed the owner of tenplate-local symbols to be the primary constructor. But that is done anyway with a "changeOwnerAfter" in `intoConstr`. So it is redundant and actually gets in the way with a `changeOwnerAfter` in `Mixin`. The faulty scenario is this: 1. The SymTransformer of Constructor is run on a constructor-local definition. The owner of that definition is set to <init> after phase Constructors. 2. The body of the definition is transformed in Mixin. The owner is set to the initializer method, but only for the interval between Mixin and Constructors. Changing to changeOwner in Mixin avoided that problem by duplicating the symbol but it runs into other problems. Fortunately, the solution is much simpler than the status quo: Two changeOwnerAfter calls and no SymTransformer.
| * | | | | | Refinement to TreeTypeMapMartin Odersky2016-03-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When recursing in a template body, need to update the context's owner, so that `ref` can work correctly.
| * | | | | | Refinements to referencesOuterMartin Odersky2016-03-121-17/+24
| | |/ / / / | |/| | | | | | | | | | | | | | | | In a New we need to decide based on the prefix of the type of object created.
* | | | | | make variable name consistent in ScalaSettingsliu fengyun2016-03-141-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Options with syntax "-Y" should NOT be named with a variable beginning with `X`.
* | | | | | Merge pull request #1171 from dotty-staging/fix-#1130Guillaume Martres2016-03-132-23/+41
|\ \ \ \ \ \ | | | | | | | | | | | | | | Have checkNotPrivate skip over private aliases.
| * | | | | | Have checkNotPrivate skip over private aliases.Martin Odersky2016-03-122-23/+41
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CheckNotPrivate now avoids private aliases, so that types sat prepresentable in transformation phases. This does not solve the problem that private classes or abstract types might leak coming from Scala 2, but there is not really a good cure for that. We can reject them outright or allow them under language:Scala2 and hope for the best.
* | | | | | Merge pull request #1164 from dotty-staging/fix-#1140Guillaume Martres2016-03-135-17/+29
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Make sure lazy accessors in traits are not private.
| * | | | | Make Synthetic a FormStart flag.Martin Odersky2016-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Not needed in the end for this patch, but anyway a good idea.
| * | | | | Assert that ensureNotPrivate does not break on separate compilationMartin Odersky2016-03-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When ensureNotPrivate changes the status of a formerly private declaration, assert that the reference to the declaration is in the same compilation unit, as otherwise the nehavior would be different under separate compilation.
| * | | | | Propagate source file to synthetic companionsMartin Odersky2016-03-131-1/+1
| | | | | |
| * | | | | Fix and simplify initializerMartin Odersky2016-03-101-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initializer was needlessly complex and did not work anymore for lazy vals (for them, we implicitly made use of the fact that the initializer would find the symbol itself. But after name mangling that logic would break down.
| * | | | | More detailed reporting in TreeCheckerMartin Odersky2016-03-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | ... when definitions are missing.
| * | | | | Make sure lazy accessors in traits are not private.Martin Odersky2016-03-101-2/+6
| |/ / / / | | | | | | | | | | | | | | | Fixes #1140. Review by @DarkDimius or @smarter.
* | | | / Fix incorrect hashing leading to cache pollutionGuillaume Martres2016-03-112-2/+4
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit, Hashable#addDelta did not work correctly when the input hash was the special value NotCached, instead of returning NotCached, it returned NotCached + delta. This means that many different values ended up being cached with the same hash when they should not be cached at all, this is especially bad since our HashSet implementation uses open addressing. I noticed this bug while working on a phase to collect API information for sbt (this phase needs to collect every member of a class, including inherited members), after enabling it, the compileStdLib test took ~500 seconds to complete, this commit reduces this to ~100 seconds.
* | | | Fix bug where ambiguous references were not reportedMartin Odersky2016-03-091-1/+2
|/ / / | | | | | | | | | | | | | | | | | | There was a mssing condition which meant Tyepr thought it was at the outermost scope where but was mistaken. Fixes #1145
* | | remove println from FirstTransformVladimirNik2016-03-091-1/+0
| | |
* | | Merge pull request #1153 from dotty-staging/vc-companionsodersky2016-03-091-17/+42
|\ \ \ | |_|/ |/| | Fix for separate compilation with value class issue (#1137)
| * | Fix for separate compilation with value class issue (missing companion ↵VladimirNik2016-03-071-17/+42
| | | | | | | | | | | | object - #1137)
* | | Merge pull request #1155 from dotty-staging/staticodersky2016-03-098-3/+124
|\ \ \ | | | | | | | | Implement @static sip.
| * | | Replace addAnnotation(annotation) by addAnnotation(Annotation(annotation))Dmitry Petrashko2016-03-083-7/+7
| | | | | | | | | | | | | | | | as asked in https://github.com/lampepfl/dotty/pull/1155/files#r55355664
| * | | CheckStatic: do not eliminate non-pure expressions.Dmitry Petrashko2016-03-081-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | Implemented by checking that tree is allowed to access the static member and all the members on the path to it. Needed as typer has a tendency to desugar calls into series of selections&calls to This.
| * | | Fix Identation in tpd.Dmitry Petrashko2016-03-081-1/+1
| | | |
| * | | Fix add beanSetter annotation to @staticDmitry Petrashko2016-03-071-1/+1
| | | |
| * | | LazyVals: make all fields added to companions static.Dmitry Petrashko2016-03-071-1/+5
| | | |
| * | | Implement @static sip.Dmitry Petrashko2016-03-077-2/+108
| | |/ | |/| | | | | | | | | | | | | | | | | | | This pull request implements most of machinery needed for https://github.com/scala/scala.github.com/pull/491 Only 3-rd check is not implemented by this commit. I propose to get this in faster to fix #1149
* | | Allow successive opening comments.Martin Odersky2016-03-071-11/+11
| |/ |/| | | | | Fixes #1052.
* | Merge pull request #1142 from dotty-staging/fix/implicit-ctxodersky2016-03-072-6/+4
|\ \ | | | | | | Do the implicit search shadowing check in the correct context
| * | Allow adding typevars to an uncommitable constraint setGuillaume Martres2016-03-041-4/+2
| | | | | | | | | | | | We triggered this assert after the fix in the previous commit.