| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
… and cleaned up and simplified other context-reated features.
|
|
|
|
|
| |
Some initial bug fixes.
Added -explaintypes diagnostics.
|
| |
|
|
|
|
|
|
|
| |
- Pushed mode into context
- Elimintaed scope nesting level
- Fixed a desugar bug
- Added constant folding
|
| |
|
|
|
|
|
|
| |
Still to do:
- properly account for bounded wildcard types
- set up scheme for nested diagnostics buffers.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Added Applications class to represent applications
- Added Constraint class to represent type constraints
- Added TyperState class to represent typer state
- Added Diagnostic class to buffer errors and warnings
- Added Inferencing class that contains some common functionality for type inferencing (this one's still rudimentary).
- Added extractor for FunctionType in Definitions
- Added desugaring of default parameters to default getters in Desugar
- Added flags to deal with default parameters
- Added substitutions that replace bound parameters
|
|
|
|
| |
Re-organized constraints and type comparers and added methods that will be needed for type inference.
|
| |
|
|
|
|
| |
Also some refactorings that were caused by adding this method.
|
|
|
|
| |
A new design that relies on DefDef local maps, instead of global maps before.
|
| |
|
|
|
|
|
| |
Also, changing the maps in Namer. More commenting needs to be done. Pushing now to get off this machine and
back to the new one, which just came back form repair.
|
| |
|
| |
|
|
|
|
| |
Moved all other elements of TypedTrees and UntypedTrees into tpd and untpd.
|
|
|
|
|
|
|
| |
1) Getting rid of ugen in favor of untpd.
2) Eliminating some unused methods
3) Splitting out CheckTrees from TypedTrees.
4) Moving trees and related classes into separate package dotc.ast
|
|
|
|
|
| |
Split printers into several files. Added refined printing of trees. Changed Showable and generalized printing
under a precedence.
|
| |
|
|
|
|
| |
…for deprecation, feature, unchecked.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Moving Positions, Chars to new packages.
Added Source positions.
Added untyped trees module.
Factored out behavior between typed and untyped trees.
|
|
|
|
| |
It turned out this led to cycles in subtyping. We need to check for legal prefixes only for types that are declared or inferred in source. For the rest, we should assume that the type is OK.
|
|
|
|
|
| |
Looking up these properties requires a map lookup so is slower than a context field. On the other hand,
a property in the map does not require addiitonal space in all contexts, so does not increase the price of cloning either.
|
| |
|
|
|
|
| |
In particular: Survive malformed type errors. Make trees cloneable. and others more.
|
| |
|
|
|
|
| |
Most important one: Getting equality of NamedTypes right.
|
|
|
|
| |
Can now read all classes in scala.collection.generic. Some failures remain for their companion objects.
|
| |
|
|
|
|
| |
Can now read and display info of verious classfiles as listed in the showClass test. Great end of the week!
|
|
|
|
| |
Only problem is that there are stubs for AnyRef generated.
|
| |
|
|
|
|
| |
Still fighting with CyclicReference errors.
|
|
|
|
| |
Made trees printable in plain mode (refined mode still missing).
|
|
|
|
| |
Manjor change is that splitArgs got eliminated and replaced by an optimized version of typeArgs.
|
| |
|
| |
|
|
|
|
| |
Also, now all calls to NamedType#underlying are montored for infinite cycles.
|
| |
|
|
|
|
|
|
|
| |
Added reporters.
Added context for signatures.
Implemented method signatures via erasure.
Refined derivedNameType handling.
|
|
|
|
|
|
|
| |
1. Went back to old completer model where completers are types.
2. Made class denotations a simple optimzation of symbol denotatons (with more caches)
by moving all class-specific attributes into ClassInfo.
3. Now all symbol and symbol denotation creations are routed through one of 3 methods: newNakedSymbol, newNakedClassSymbol, newSymDenotation.
|
| |
|
| |
|
|
|
|
| |
As it throws an unsupported error.
|
| |
|
|
|
|
| |
Reason: Symbols may change on each run; TypeRefs do not.
|
| |
|