Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix calls to tree copier that now requires multiple parameter lists | Ondrej Lhotak | 2014-11-22 | 1 | -2/+2 |
| | |||||
* | Flags.Static renamed to JavaStatic | Ondrej Lhotak | 2014-11-22 | 1 | -8/+8 |
| | |||||
* | remove debugging println | Ondrej Lhotak | 2014-11-22 | 1 | -3/+1 |
| | |||||
* | add comment to explain why refctx passed explicitly to selectionType | Ondrej Lhotak | 2014-11-22 | 1 | -0/+2 |
| | |||||
* | add comment explaining why checkValue skips Java compilation units | Ondrej Lhotak | 2014-11-22 | 1 | -0/+2 |
| | |||||
* | add mapping ENUM -> Enum to PickleBuffer | Ondrej Lhotak | 2014-11-22 | 1 | -1/+2 |
| | |||||
* | make elimrepeated addVarArgsBridge at thisTransformer instead of ↵ | Ondrej Lhotak | 2014-11-22 | 1 | -1/+0 |
| | | | | thisTransformer.next | ||||
* | Java Select: try typing as both SelectFromTypeTree and Select | Ondrej Lhotak | 2014-11-22 | 1 | -5/+36 |
| | |||||
* | desugar Java repeated parms into an Array instead of Seq | Ondrej Lhotak | 2014-11-22 | 4 | -12/+14 |
| | |||||
* | Initial implementation of Java scanner and parser | Ondrej Lhotak | 2014-11-22 | 9 | -204/+1794 |
| | | | | | | | | | | | | | Ported from scalac 2.11.x branch SHA 9753f23f9362b25a9f481b11dd8d51187187882a This is mostly a direct port, with few significant dotty-specific changes needed. The two more significant changes are: In dotty, the first constructor of a class is pulled out separately from the other stats in the Template. The keyword detection code (buildKeywordArray) was moved into Tokens so that it can more cleanly be shared by the Scala and Java scanners. | ||||
* | Show full name of doubly defined symbols | Dmitry Petrashko | 2014-11-22 | 1 | -2/+2 |
| | |||||
* | Allow checking that trees and their defined symbols have modifiers in sync. | Dmitry Petrashko | 2014-11-22 | 2 | -2/+14 |
| | |||||
* | #204 check for global uniqueness of definitions. | Dmitry Petrashko | 2014-11-22 | 1 | -10/+19 |
| | | | | | Check now fails after erasure. Should become error after fixed. | ||||
* | Rename PolyType.copy method. It clashes with generated one. | Dmitry Petrashko | 2014-11-22 | 2 | -3/+3 |
| | | | | See #209 for explanation. | ||||
* | Fix ElimRepeated not transforming modifiers in tree. | Dmitry Petrashko | 2014-11-22 | 2 | -3/+6 |
| | |||||
* | Dotty typer deviation triggered in Unpickler | Dmitry Petrashko | 2014-11-22 | 1 | -1/+2 |
| | |||||
* | Infer if overloading resolution should trigger implicit search. | Dmitry Petrashko | 2014-11-22 | 2 | -35/+30 |
| | | | | This doesn't require additional argument. Decision can be made solely from the phaseId. | ||||
* | Fix StackOveflow due to implicit resolution in readAnnotationContents | Dmitry Petrashko | 2014-11-22 | 1 | -1/+1 |
| | |||||
* | Allow resolving overloads without inferring views. | Dmitry Petrashko | 2014-11-22 | 1 | -2/+21 |
| | |||||
* | readAnnotationContents that should be able to resolve overloaded constructors. | Dmitry Petrashko | 2014-11-22 | 1 | -12/+36 |
| | |||||
* | FunProtoTyped to be used when args are known to be typed | Dmitry Petrashko | 2014-11-22 | 1 | -0/+10 |
| | |||||
* | Fix underlyingIfRepeated always assuming Scala repeated. | Dmitry Petrashko | 2014-11-22 | 2 | -5/+9 |
| | |||||
* | Fix TypeErasure.sigName erasing java repeated params to Seq | Dmitry Petrashko | 2014-11-22 | 1 | -1/+3 |
| | |||||
* | Fix typeAssigner ignoring existence of JavaSeqLiteral | Dmitry Petrashko | 2014-11-22 | 2 | -7/+10 |
| | |||||
* | Add Id's to types. | Dmitry Petrashko | 2014-11-22 | 1 | -0/+9 |
| | | | | Helps to track where erroneous type was created. | ||||
* | Fix elimRepeated not transforming annotations. | Dmitry Petrashko | 2014-11-22 | 1 | -0/+29 |
| | |||||
* | Add the right constructor to Java annotations | Martin Odersky | 2014-11-22 | 3 | -2/+42 |
| | |||||
* | Merge pull request #228 from dotty-staging/fix/overriding | odersky | 2014-11-18 | 7 | -73/+108 |
|\ | | | | | Fix/overriding | ||||
| * | Check that overriding members refine the types of overridden ones. | Martin Odersky | 2014-11-18 | 3 | -21/+28 |
| | | | | | | | | | | Somehow this was lost in porting (or was this done somewhere else in scalac?). | ||||
| * | Fixes of reviewers comments. | Martin Odersky | 2014-11-17 | 1 | -6/+2 |
| | | |||||
| * | Some fixes to override checking in RefChecks. | Martin Odersky | 2014-11-15 | 2 | -10/+13 |
| | | | | | | | | `override` was not recognized at all on types. | ||||
| * | Fixes for type argument handling. | Martin Odersky | 2014-11-15 | 3 | -8/+13 |
| | | | | | | | | | | | | | | (1) Type arguments now get a coordinate. (2) They are labeled Override (2) avoids having to special case TypeArgs in OverridingPairs. | ||||
| * | Fine-tuning override errors for syntehtic companion objects | Martin Odersky | 2014-11-14 | 2 | -10/+16 |
| | | | | | | | | | | | | | | These may raise real errors, so we cannot exclude them from overriding pairs a priori. But we can avoid reporting any errors if other override errors were reported previously for the same class. | ||||
| * | Refactored OverridingPairs | Martin Odersky | 2014-11-14 | 1 | -36/+43 |
| | | | | | | | | to make it easier to understand. | ||||
| * | Fix OverridingPairs | Martin Odersky | 2014-11-14 | 2 | -16/+16 |
| | | | | | | | | | | | | | | | | OverridingPairs had several bugs which caused pairs to be lost, which caused missing overrides checks. Fixing OverridingPairs revealed several test failures (and a problem in Synthetics generation which was fixed in the last commit). Tests that became negative are all moved into neg/overrides.scala, and the original versions in pos were fixed. | ||||
| * | Refine merge of nullary and parameterless denotations. | Martin Odersky | 2014-11-14 | 1 | -1/+12 |
| | | | | | | | | | | | | | | | | | | | | Previously, two denotations with types => T and ()T could not be merged, only their types could be, but then the denotation would no longer be a SymDenotation. We now treat the two types as equivalent so that it will select the symbol in a subclass. This fixes a problem where, once overrding pairs are made to work (see following commit), in core/Types we get an error "overriding final method "hashCode". | ||||
* | | Merge pull request #230 from dotty-staging/fix/and-or-subtyping | odersky | 2014-11-18 | 1 | -2/+61 |
|\ \ | | | | | | | Try to avoid overconstraining when comparing and/or types | ||||
| * | | Fixed typos | Martin Odersky | 2014-11-18 | 1 | -1/+1 |
| | | | |||||
| * | | Try to avoid overconstraining when comparing and/or types | Martin Odersky | 2014-11-16 | 1 | -2/+61 |
| | | | | | | | | | | | | | | | See comments in eitherIsSubType for an explanation what the problem is. Some test cases are in subtyping.scala | ||||
* | | | Merge pull request #229 from dotty-staging/change/typevar-printing | Dmitry Petrashko | 2014-11-17 | 1 | -2/+5 |
|\ \ \ | | | | | | | | | When printing uninstantiated type variables, include their bounds. | ||||
| * | | | When printing uninstantiated type variables, include their bounds. | Martin Odersky | 2014-11-16 | 1 | -2/+5 |
| |/ / | |||||
* | | | Moved pending tests that work into pos and neg. | Martin Odersky | 2014-11-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | One test (t2613) required lifting a hard recursion limit in findMember (used for debug only, will be removed in the future). The same test also requires -Yno-deep-subtypes to be reset, so it's in pos_special instead of pos. | ||||
* | | | Merge pull request #227 from dotty-staging/patmatch/productArity | Dmitry Petrashko | 2014-11-17 | 1 | -16/+16 |
|\ \ \ | | |/ | |/| | Rename productArity in pattern matcher to prodArity | ||||
| * | | Rename productArity in pattern matcher to prodArity | Martin Odersky | 2014-11-14 | 1 | -16/+16 |
| |/ | | | | | | | | | | | | | | | | | | | productArity is a method defined in ProductN which is inherited from case classes. It is possible that it will be usewd in the implementation of pattern matching in the future. The previous implementation used the same name to mean something else: Not the arity of the case class itself but the arity of the pattern/type it represented. Renaming to prodArity avoids the confusion. | ||||
* | | Merge pull request #223 from dotty-staging/fix/elimRepeatedTransformSym | Dmitry Petrashko | 2014-11-15 | 6 | -13/+38 |
|\ \ | |/ |/| | Avoid forcing infos of some symbols in InfoTransforms | ||||
| * | Avoid computing info of TypeRefs for Object <-> Any comversions in ↵ | Martin Odersky | 2014-11-13 | 2 | -8/+17 |
| | | | | | | | | | | | | ClassfileParser Another bit to help avoid CyclicReferences when reading Java classes | ||||
| * | Avoid forcing infos of some symbols in InfoTransforms | Martin Odersky | 2014-11-12 | 4 | -5/+21 |
| | | | | | | | | | | Provides the "mayChange" hook to exclude symbols from being completed prior to a transformInfo. | ||||
* | | Fixes problem exhibited by ensuring.scala | Martin Odersky | 2014-11-13 | 2 | -3/+12 |
| | | | | | | | | | | Need to account for the possibility that function arguments are wrapped in braces. | ||||
* | | Eliminate global state in LambdaLift | Martin Odersky | 2014-11-12 | 1 | -314/+311 |
| | | | | | | | | | | State moved into local transforms which are allocated one per unit. Thsi allows lambda lifters on different units to run in parallel. | ||||
* | | Make CapturedVars a functional transform. | Martin Odersky | 2014-11-12 | 1 | -69/+72 |
| | | | | | | | | No global side effect on capturedVars anymore. |