aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing
Commit message (Collapse)AuthorAgeFilesLines
* Fixing NoPosition leaksMartin Odersky2013-11-071-1/+1
| | | | Previously, some trees could contain subtrees with NoPosition. This happended when a tree had both positioned children and other children with NoPosition. When setting the synthetic position of a tree, the NoPosition children were not visited.
* Special-casing printing of `_` Idents.Martin Odersky2013-11-061-1/+1
| | | | These don't have a symref in their .tpe, so we should just print `_` instead of the type of the tree.
* Added capability to print tree positionsMartin Odersky2013-11-041-0/+2
| | | | Controlled by option -Yprintpos
* Refinement to tree printing of refs.Martin Odersky2013-10-251-3/+8
| | | | When printing the type of a non-overloaded RefTree (Ident, Select, SelectFromTypeTree), the reference itself is no longer printed.
* Change in how type variables are printed.Martin Odersky2013-10-241-2/+2
| | | | Uninstantiated type variables are now marked with ? instead of ''. The marking with '' is ambiguous becuase it could also mean an instantiated type variable that refers to another instantiated type variable.
* Printing trees now honors -Xprint-types option.Martin Odersky2013-10-241-1/+4
|
* More informative printing of typed identifiers.Martin Odersky2013-10-241-1/+4
|
* Making printing refined types more robust.Martin Odersky2013-10-231-2/+5
| | | | Refined type printing gave {<none>} if the refined name did not have a member in the parent. We now print the refined name instead.
* Avoiding duplication for printing modules.Martin Odersky2013-10-231-0/+2
| | | | Normal singleton types are printed "underlying(value)". For modules that would give a duplication, which is avoided by this commit.
* Refined disambiguating printingMartin Odersky2013-10-231-0/+82
|
* Implemented refined prinitng of function prototypesMartin Odersky2013-10-151-0/+2
|
* Tightening up typer state + printing refinementsMartin Odersky2013-10-121-1/+6
| | | | | | 1) Made consistency checking water tight, so that inconsistencies are always catched wehn they arise 2) Fixed problem in implicit search that led to inconsistencies 3) Refined printing of type parameters and type arguments
* Modified printing of variant aliasesMartin Odersky2013-10-101-4/+8
| | | | Now displayed with =+, =-.
* Direct access to symbol in TermRefMartin Odersky2013-09-261-0/+1
| | | | If symbol was given explicitly, return it directly rather than going through denot.
* Fixed a bug related to classfile parsingMartin Odersky2013-09-231-2/+5
| | | | Parsing inner classes of generic outer classes requires a name-unexpansion.
* Bug fixes and improvements in error diagnostics.Martin Odersky2013-09-161-6/+9
| | | | Main refactoring: lub/glb moves to type comparers.
* Improvements to termref printing.Martin Odersky2013-09-072-17/+36
|
* More tests and fixes related to inference.Martin Odersky2013-08-301-2/+3
| | | | Main blooper: TypeVars got dereferenced in all Typemaps, so disappeared too quickly from types during inference.
* Fixed bugs related to typechecking closures.Martin Odersky2013-08-271-2/+2
|
* Review of all deompositions of NamedTypeMartin Odersky2013-08-241-3/+7
| | | | Avoid using symbols that might not exist when doing that.
* Fix in printerMartin Odersky2013-08-231-2/+2
| | | | NamedTypes need not have an existing symbol, so one should print the name in the type instead.
* Various bug fixes for typer.Martin Odersky2013-08-221-2/+2
|
* Fixed printing of self types tto prevent cyclic reference errors.Martin Odersky2013-08-191-4/+5
|
* Several fixes and refactorings for typecheckingMartin Odersky2013-08-191-3/+3
| | | | | | | | | | | 1) Refactoring of package loaders that ensures that a package is always loaded before new members are entered. This led to a refactoring of sourceModule in completers into its own trait 2) Refactoring of optSelfType ot selfInfo. Class Infos may now have a reference to a symbol in their selfInfo field, instead of always a type, as it was before. This allows to introduce laziness for self type evaluation. Laziness is needed so that modules can be desugared and the desugared version be compiled without special tricks. 3) <init> and $init members are no longer inherited. 4) Refactoring of createSymbol and enterSym, so that creating symbols and entering them in a scope is decoupled. Renamed the driver operation form `enterSym(s)` to `index`.
* Defined root context with importsMartin Odersky2013-08-174-6/+12
| | | | … and cleaned up and simplified other context-reated features.
* Eliminating getter generation in namer/typer.Martin Odersky2013-08-161-3/+1
| | | | | The idea is that getters shoul dbe generated later (probably during UnCurry). This is much better for handling modules, and also obviates the need to have LocalNames. Getters can be generated as soon in the compilation pipeline as methoda always get a parameter list. That way, we can distinguihs getters from fields without playing any tricks with names.
* Integrated parser/typer into compilerMartin Odersky2013-08-141-5/+8
| | | | | Some initial bug fixes. Added -explaintypes diagnostics.
* Type checking function trees and closures.Martin Odersky2013-08-051-1/+1
|
* Handling typevars in inference.Martin Odersky2013-08-011-0/+2
| | | | Fleshed out handling of typevars for type inference. Also added some more methods to typer, for blocks, ifs and assignments. (Closures are still wip).
* Redesign of trees.Martin Odersky2013-07-271-1/+1
| | | | | | 1) Trees are now contravariant. 2) All creation ops, transformers, copiers are pushed into Instance. 3) Still to do: integrate TreeMappers and tpd.TreeTransformers.
* More typer logic, in particular dealing with variants of applicationsMartin Odersky2013-07-251-3/+3
|
* SeqLiteral refactoringMartin Odersky2013-07-221-1/+1
| | | | SeqLiterals no longer have an elemtpt subtree. Their type is now no longer a RepeatedParamType, but instead an instance of SeqType or ArrayType.
* Handling bounded wildcard types.Martin Odersky2013-07-191-2/+2
|
* Added functionality to deal with function applications.Martin Odersky2013-07-111-1/+1
| | | | | | | | | | | | | - 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
* Taking accessibility into account for &, |Martin Odersky2013-06-191-1/+3
| | | | | | Changed the algorithm for & (and also |) to take accessibility into account. Fixed various problems that opened up when doing this. Under -debug, new and old behavior of & are checked side-by-side and any discrepancy is noted.
* Removed ClassDef as a Tree node class.Martin Odersky2013-06-151-10/+14
| | | | ClassDefs are now TypeDefs that have a Template as rhs.
* Dropping type parameters from typed TypeDefs.Martin Odersky2013-06-131-4/+6
| | | | | | Typed TypeDefs no longer carry tparams. Untyped ones still do, but there is a special PolyTypeDef node for them in untpd. Also, fixed flatten and DeSugarTest to deal with new tree desugarings which are not idempotent (e.g. desugar.classDef, or desugar.valDef).
* Refactoring: breaking out desugaring into its own object.Martin Odersky2013-06-041-6/+6
| | | | | 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.
* Making EmptyTree a special case of TempTreesMartin Odersky2013-05-251-2/+2
|
* Improvements to printing trees.Martin Odersky2013-05-242-40/+47
|
* Eliminating Trees.TypedTree and Trees.UntypedTreeMartin Odersky2013-05-221-25/+28
| | | | | Replaced by tpd.Tree and untpd.Tree. Also some cleanups in RefinedPrinters.
* Made tpd/untpd toplevel objects.Martin Odersky2013-05-222-2/+2
| | | | Moved all other elements of TypedTrees and UntypedTrees into tpd and untpd.
* More tree refactorings.Martin Odersky2013-05-223-5/+6
| | | | | | | 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
* Added desugaring.Martin Odersky2013-05-221-1/+6
| | | | With various other small changes.
* Refactored Printing architecture.Martin Odersky2013-05-177-541/+870
| | | | | Split printers into several files. Added refined printing of trees. Changed Showable and generalized printing under a precedence.
* Made precedence common between parsers and printersMartin Odersky2013-05-141-7/+10
|
* Refactored Printers, Showable and Text into new package dotc.printing.Martin Odersky2013-05-143-0/+709