summaryrefslogtreecommitdiff
path: root/src/scalap
Commit message (Collapse)AuthorAgeFilesLines
* scalap: signature for case classes fixedilyas2010-04-282-0/+5
|
* Since pickled data moved into annotations ShowP...Paul Phillips2010-04-211-2/+25
| | | | | | | | | Since pickled data moved into annotations ShowPickled has been confusedly scratching its head. Made tools/showPickled work again. In the process created a simple interface for creating command line tools for the (majority of) commands which would just like to specify a handful of options. No review.
* ScalaSigPrinter fixed for multiline string valu...ilyas2010-04-111-0/+5
| | | | | ScalaSigPrinter fixed for multiline string values in annotations
* Some tweaks to classpath handling I had left ov...Paul Phillips2010-04-061-0/+1
| | | | | | Some tweaks to classpath handling I had left over from trying to figure out the continuations plugin issue. No review.
* As a brief diversion from real work, implemente...Paul Phillips2010-04-063-5/+5
| | | | | | | | | As a brief diversion from real work, implemented Damerau–Levenshtein and ran it on trunk to elicit obvious misspellings. Unfortunately they're mostly in places like compiler comments which real people never see, but I fixed them anyway. All those English Lit majors who peruse our sources are sure to be pleased. No review.
* Rearranging IndexedSeq/LinearSeq and related workMartin Odersky2010-04-051-1/+1
|
* Fix to the way Scalap decodes ScalaSignature an...Gilles Dubochet2010-03-293-8/+23
| | | | | | Fix to the way Scalap decodes ScalaSignature annotations. Contributed by ilyas. Already reviewed by dubochet, no review.
* some output polishingilyas2010-03-261-3/+7
|
* missing quotes for annotation values addedilyas2010-03-261-2/+2
|
* Renamed partialMap to collect.Paul Phillips2010-03-241-2/+2
| | | | | | | | | method on Iterator called collect which I had to remove, because if the method is overloaded it puts a bullet in the type inference, an intolerable result for a function which takes a partial function as its argument. I don't think there's much chance of confusion, but I put a migration warning on collect just in case. No review.
* Scala signature is generated as an annotation (...Gilles Dubochet2010-03-233-10/+62
| | | | | | | | | | | | | Scala signature is generated as an annotation (that is accessible through Java reflection). - compiler generates all pickled Scala signatures as annotations to class files. - compiler can read class files with signature as annotations or old-style signatures as attributes. - Scalap has also been updated to new signatures (contributed by Ilya Sergey: thanks a lot). - FJBG updated to allow entering constant pool strings as byte arrays. - ByteCodecs decode method returns the length of the decoded array. Review by ilyas. Already mostly reviewed by odersky.
* Some support code related to partest changes.Paul Phillips2010-03-212-9/+11
|
* Fixed build problem by eliminiating a redundant...Martin Odersky2010-03-161-1/+1
| | | | | | Fixed build problem by eliminiating a redundant implicit in scalap. Review by extempore.
* Leveraged -Xmigration to burn off some warts wh...Paul Phillips2010-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Leveraged -Xmigration to burn off some warts which arose in the new collections. Warnings put in place for behavioral changes, allowing the following. 1) Buffers: create new collections on ++ and -- like all the other collections. 2) Maps: eliminated never-shipped redundant method valuesIterable and supplied these return types: def keys: Iterable[A] def keysIterator: Iterator[A] def values: Iterable[B] def valuesIterator: Iterator[B] def keySet: Set[A] I concluded that keys should return Iterable because keySet also exists on Map, and is not solely in the province of Maps even if we wanted to change it: it's defined on Sorted and also appears in some Sets. So it seems sensible to have keySet return a Set and keys return the more general type. Closes #3089, #3145. Review by odersky.
* #3128 fixedilyas2010-03-021-4/+19
|
* trailing spaces in decompiled annotations are t...ilyas2010-03-011-3/+5
| | | | | trailing spaces in decompiled annotations are trimmed
* scalap tests fixedilyas2010-03-011-2/+2
|
* #2885 fixedilyas2010-03-011-0/+1
|
* #3060 fixedilyas2010-03-012-80/+106
|
* Minor printer fix for singleton typesilyas2010-03-011-4/+5
|
* More return type annotation to work around my o...Paul Phillips2010-02-252-6/+6
| | | | | | More return type annotation to work around my other frequent guest in the world of #3082-connected pickler bugs. No review.
* Some much needed housecleaning regarding system...Paul Phillips2010-02-231-1/+0
| | | | | | | | | Some much needed housecleaning regarding system properties. If you can possibly resist the temptation, it'd be great if people could try to go through the properties classes to get and set them, and also to set property values somewhere fixed rather than using strings directly. Review by community.
* The first reasonably satisfying classpath commit.Paul Phillips2010-02-181-1/+1
| | | | | there with this one. Documentation to come. Review by community.
* Some new tools for the tools directory.Paul Phillips2010-02-152-1/+12
| | | | | | | | | | | | | | | | | | | | | amounts to a yak shaving expedition to enable this, which now works: tools/diffPickled scala.Either and since stability is presently broken you will see the following. (When it's not broken you will see nothing.) 541,544c541,544 < 538,4090: EXTref 3: 539(Left) 2 < 539,4095: TYPEname 4: Left < 540,4101: EXTref 3: 541(Right) 2 < 541,4106: TYPEname 5: Right --- > 538,4090: EXTref 3: 539(Right) 2 > 539,4095: TYPEname 5: Right > 540,4102: EXTref 3: 541(Left) 2 > 541,4107: TYPEname 4: Left
* More work on classpaths.Paul Phillips2010-02-111-0/+1
| | | | | | | | | which we must have no test cases at all. In the short term there will probably be a few more minor disruptions since with classpaths constructed a half dozen different ways, achieving consistency requires flushing out the undocumented accidents upon which any given island might depend. Review by community.
* More work on classpaths.Paul Phillips2010-02-101-7/+3
| | | | | | | | to have command line options following source files, at the price of temporarily breaking tools/pathResolver. Working my way through all the usages of classpath in trunk zeroing in on fully consistent handling. Review by community.
* A more MSIL-aware attempt at isolating the plat...Paul Phillips2010-02-061-4/+5
| | | | | | | | A more MSIL-aware attempt at isolating the platform dependent pieces of Global and ClassPath so we don't introduce unwanted dependencies. Introduces a small interface backend.Platform which encapsulates that data. Review by rytz, odersky.
* scalap output bug fixedilyas2010-02-051-1/+1
|
* some scalap tweaksilyas2010-02-052-22/+31
|
* Raised the level of abstraction (slightly, not ...Paul Phillips2010-02-041-3/+3
| | | | | | | | | Raised the level of abstraction (slightly, not enough) on ClassPath by defining the difference between optimized and regular classpaths in terms of an arbitrary name filter instead of in terms of settings.XO. Altered the decision logic to look at the value of -Yinline instead of -optimise. Closes #2950. Review by rytz.
* The remainder of isolating MSIL from the rest o...Paul Phillips2010-02-041-2/+1
| | | | | | | | | The remainder of isolating MSIL from the rest of the classpath code. To accomplish this I made ClassRep an inner class of ClassPath (which given the broad definition of ClassPath already in place, it conceptually is already) and as a bonus this allowed dropping its type parameter. Review by rytz.
* Noticed that all the system properties were bei...Paul Phillips2010-02-041-1/+1
| | | | | | | Noticed that all the system properties were being read into vals so they didn't notice changes. Determined this was not correct, and changed them into defs. No review.
* Refinements to the recent repl patches.Paul Phillips2010-01-261-1/+28
| | | | | | | | | | | | | | | | few more things, like literals (1.<tab>, "abc".<tab>). A completion aware case class walker which leverages the names of the case fields for completion. For instance: :power val x = new ProductCompletion(mkTree("def f(x: Int, y: Int) = f(5, 10) + f(10, 20)") x.<tab> mods name rhs tparams tpt vparamss x.rhs.fun.<tab> name qualifier scala> x.rhs.fun.qualifier res3: scala.tools.nsc.ast.Trees$Apply = f(5, 10)
* Removed static state from global object ClassPa...Paul Phillips2010-01-201-2/+3
| | | | | | | | Removed static state from global object ClassPath object, and some minor repositioning while in there. Closes #2928, but the intentions behind -optimise being intertwined with ClassPath could really use some source comments. Review by rytz.
* Reverted over-zealous replacement of 'PartialFu...Antonio Cunei2010-01-151-3/+3
| | | | | Reverted over-zealous replacement of 'PartialFunction' with '=>?'.
* speed up ClassPath.findClass. review by communityLukas Rytz2010-01-111-3/+3
|
* Took full advantage of the new =>? alias for th...Paul Phillips2009-12-221-3/+3
| | | | | | | Took full advantage of the new =>? alias for the superverbosely named PartialFunction by renaming every usage of the latter except when in comments.
* REPL completion now understands type aliases de...Paul Phillips2009-12-162-2/+40
| | | | | | REPL completion now understands type aliases defined in package objects. For instance try scala.List.<tab>. review by community.
* Warning suppression.Paul Phillips2009-12-091-1/+1
|
* Updated copyright notices to 2010Antonio Cunei2009-12-0713-13/+13
|
* #2747 fixedilyas2009-12-041-1/+1
|
* Removing redundant scalap code.Paul Phillips2009-11-255-137/+92
|
* More deprecation soothing.Paul Phillips2009-11-182-2/+2
| | | | | warning count.
* More deprecation work.Paul Phillips2009-11-181-2/+2
| | | | | | since 2.7.2 (still except for lower case primitive type aliases) and removes every deprecated method which has never shipped in a release.
* The preferred way to convert between primitives...Paul Phillips2009-11-112-8/+8
| | | | | | | The preferred way to convert between primitives is to call .toInt etc, but there were lots of casts for historical reasons. This patch remedies that.
* new classpaths.Lukas Rytz2009-10-261-12/+24
|
* reverted 'doArg' change made in r18738, removed...michelou2009-09-2511-50/+63
| | | | | reverted 'doArg' change made in r18738, removed a few warnings
* [no content change] Fixed all SVN properties: m...Gilles Dubochet2009-09-2410-10/+10
| | | | | | | | [no content change] Fixed all SVN properties: mimes, EOL, executable. Id expansion is consistently enabled for Scala/Java/C# sources in 'src/' and consistently disabled and removed from everywhere else: there should not be any dead Id tags anymore.
* Attempting to widen the field of possibilities ...Paul Phillips2009-09-222-2/+2
| | | | | | | Attempting to widen the field of possibilities for equality, a proof by construction that a large codebase doesn't need to perform equality checks between different primitives types if it is not so inclined.
* new arrays are done.Martin Odersky2009-09-211-1/+1
|