aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/util
Commit message (Collapse)AuthorAgeFilesLines
* Hoisting out commonly used values into util.commonMartin Odersky2013-11-281-0/+16
| | | | ... because this cuts down on object creations. Also, some polishings in Denotations.
* Tweaks to SimpleMapMartin Odersky2013-11-221-62/+94
| | | | Now uses a custom representation for sizes 4 and over. This improves on the previous representation in terms of immutable.Map because it is more efficient for smaller sizes and keeps orderedness. Being ordered is important for making things replayable.
* Reporting max constraintMartin Odersky2013-11-101-3/+1
| | | | Instead of throwing an exception if SImpleMap size goes over some threshold, we now report the largest constraint encountered in a run.
* Fixing Position.contains(NoPosition)Martin Odersky2013-11-091-2/+1
|
* Adding a size method to SimpleMap.Martin Odersky2013-11-061-0/+8
|
* Limit size of SImpleMapMartin Odersky2013-10-311-1/+3
| | | | This is a debugging measure so we are notified when maps blow up beyond some "reasonable" limit. (Yet to be seen what constituted "reasonable".)
* Made mapValues conservativeMartin Odersky2013-10-301-29/+50
| | | | mapValues is now strict on all maps and will return the map itself if the passed function causes no change in values.
* Added option -YheartbeatMartin Odersky2013-10-011-1/+42
| | | | … which shows snapshot of the callstack of tracked operations at fixed intervals.
* Made sourcePos more robustMartin Odersky2013-09-301-1/+2
| | | | Now survives NoPosition.
* Direct access to symbol in TermRefMartin Odersky2013-09-261-1/+1
| | | | If symbol was given explicitly, return it directly rather than going through denot.
* Improvements in implicits error reportingMartin Odersky2013-09-061-1/+3
| | | | Plus a few bugfixes for implicits
* Made SimpleMap non-variant in key type and added map2 method.Martin Odersky2013-09-051-16/+32
| | | | Better type for foreachKey that way.
* Fixing two typer bugsMartin Odersky2013-08-201-1/+3
| | | | | 1) Context was messed up when issuing errors from findRef 2) EmptyTrees should not be adapted
* Several fixes and refactorings for typecheckingMartin Odersky2013-08-191-0/+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`.
* Made NameTransformer encode return the kind of name it is given.Martin Odersky2013-08-191-2/+4
| | | | Fixes a bug in typedIdent.
* Handling typevars in inference.Martin Odersky2013-08-011-0/+8
| | | | Fleshed out handling of typevars for type inference. Also added some more methods to typer, for blocks, ifs and assignments. (Closures are still wip).
* Additions needed to support implicits.Martin Odersky2013-07-191-2/+2
| | | | | | Still to do: - properly account for bounded wildcard types - set up scheme for nested diagnostics buffers.
* Added a mapValues method to SimpleMapMartin Odersky2013-06-221-0/+14
|
* Flehsed out constraints, with more efficient maps.Martin Odersky2013-06-221-0/+125
|
* Namer redesign.Martin Odersky2013-06-061-2/+3
| | | | A new design that relies on DefDef local maps, instead of global maps before.
* wip, because I have to get off this machine.Martin Odersky2013-05-301-3/+2
|
* wip namer.Martin Odersky2013-05-281-7/+3
|
* Parser tweaks to handling new and templates.Martin Odersky2013-05-241-2/+3
|
* NameTransformer.encode now goes from names to names.Martin Odersky2013-05-241-6/+9
| | | | Also, special treatment of <init>, which is not encoded.
* Refactored Printers, Showable and Text into new package dotc.printing.Martin Odersky2013-05-141-154/+0
|
* First tiny bit of statistics.Martin Odersky2013-05-131-0/+7
|
* new tests and worksheetsMartin Odersky2013-05-121-0/+18
|
* Adding toString to Source positions.Martin Odersky2013-05-121-1/+5
|
* Various fixes to Positions.Martin Odersky2013-05-121-20/+42
|
* Refactored and augmented source positions.Martin Odersky2013-05-103-11/+40
| | | | Also Implemented ConsoleReporter formatting.
* Improvements in error handling of parserMartin Odersky2013-05-081-0/+2
| | | | Also some simplifications and eliminations of unused code.
* Added a parser.Martin Odersky2013-05-071-1/+1
| | | | | | | | Synced parser and SyntaxSymmary. Parser now produces untyped trees that need to be desugared further. Also some tweaks to position to make it work well. This is a first version.
* New tree organization, with untyped trees that closely model source.Martin Odersky2013-04-301-1/+1
|
* Re-vamping of positions, and split into synthetic and source-derived.Martin Odersky2013-04-301-28/+72
|
* Modifications in prepation of parsing.Martin Odersky2013-04-231-2/+12
|
* Added symbolic XML builderMartin Odersky2013-04-191-0/+1
|
* Added TreeBuilder and TreeInfo classes.Martin Odersky2013-04-191-0/+2
| | | | Also changed Untyped from Nothing to Null, because it avoids type inference problems.
* Scanners added.Martin Odersky2013-04-174-0/+331
| | | | | | | Moving Positions, Chars to new packages. Added Source positions. Added untyped trees module. Factored out behavior between typed and untyped trees.
* More fixes to classfile reading.Martin Odersky2013-03-211-0/+1
| | | | Can now read all classes in scala.collection.generic. Some failures remain for their companion objects.
* Pretty-printing improvements.Martin Odersky2013-03-201-39/+69
|
* First draft of pretty printing abstractionsMartin Odersky2013-03-201-0/+123
|
* Various fixes to get past Definitions#init.Martin Odersky2013-03-131-0/+294
|
* New LRU Cache implementationMartin Odersky2013-03-033-95/+148
|
* Initial commitMartin Odersky2012-12-064-0/+403