aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/FromTasty.scala
Commit message (Collapse)AuthorAgeFilesLines
* Set the positions of inlined trees wehn read form TastyMartin Odersky2016-10-021-1/+1
| | | | | | | | | | | This required a major change in the way positions are handled, as the previous scheme did not allow to read the positions of arbitrary subtrees selectively. Fortunately, it's altogether a major simplification. Also, this fixed a bug in the previous scheme, where positions were generated before compactification, resulting in addresses being wrong.
* Simplify handling of sourcefiles in Tasty infoMartin Odersky2016-04-091-2/+2
| | | | | | | Instead of separate source file sections, pickle SourceFile as an annotation of all toplevel classes. We represent it like this anyway when reading back Tasty-defined classes.
* Make first phase of FromTasty not be a TyperMartin Odersky2016-04-071-0/+3
| | | | | `isTyper` is used to enable some error checking and handling, which need not be done when in FromTasty.
* newCompiler now takes a context parameterMartin Odersky2016-02-171-1/+1
| | | | | Makes side-effecting initialization of interpreter unnecessary.
* Allow unpickler to be accessible after FromTastyDmitry Petrashko2015-12-201-0/+1
|
* Fix rebase breakage around reporters.Martin Odersky2015-06-291-1/+1
| | | | | Reporters are part of the context which is passed into a compiler run. Passing them as a separate option is an unnecessary complication.
* Partest 1/3: Pass PrintWriter as argument for context creationvsalvis2015-06-241-1/+2
|
* Pickling modularization reorgMartin Odersky2015-05-021-1/+1
| | | | | | | The pickling package got rather large and confusing with three separate tasks that each had their own conventions: read JVM classfiles, read Scala2 pickle info, read Tasty. The classes for each task are now in separate packages.
* Force TASTY trees read by unpickler in FromTastyMartin Odersky2015-04-301-0/+6
| | | | | We want to ensure that the whole tree is read at phase frontend. To achieve this, we run an empty traverser over the tree.
* Add usage documentation to FromTastyMartin Odersky2015-04-281-0/+11
|
* Handle missing delta positions when unpicklingMartin Odersky2015-04-281-3/+2
| | | | | | A missing delta position signifies that the node has the same position as its parent. Once that case was added, we can now enable positions when reading from Tasty.
* Maintain source files in pickled infoMartin Odersky2015-04-281-6/+2
| | | | | | | So far: Only one source file is recorded. Should evaluate whether more are needed. Will programs composed from several source files be pickled? They will certainly be generated after inlining, but maybe all that happens after pickling?
* Compiler for embedded TASTY info.Martin Odersky2015-04-281-0/+90
`FromTasty` is a main module which compiles TASTY info instead of sources.