summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | Merge pull request #1638 from adriaanm/ticket-6624Josh Suereth2012-11-191-1/+11
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | SI-6624 better lookup of case field accessors for case class pattern with complicated type
| | | * | | | | SI-6624 set info of case pattern binder to help find case field accessorsAdriaan Moors2012-11-161-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sometimes the type checker infers a weird type for a sub-pattern of a case class/extractor pattern this confuses the pattern matcher and it can't find the case field accessors for the sub-pattern use the expected argument type of the extractor corresponding to the case class that we're matching as the info for the sub-pattern binder -- this type more readily admits querying its caseFieldAccessors
| | * | | | | | Merge pull request #1636 from paulp/issue/6628Adriaan Moors2012-11-168-36/+20
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fixes SI-6628, Revert "Fix for view isEmpty."
| | | * | | | | | Fixes SI-6628, Revert "Fix for view isEmpty."Paul Phillips2012-11-158-36/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit caf7eb6b56817fd1e1fbc1cf017f30e6f94c6bea. I don't have a better idea right now than wholesale reversion.
| | * | | | | | | Merge pull request #1616 from retronym/backport/6559Adriaan Moors2012-11-161-1/+1
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | SI-6559 Fix raw string interpolator: string parts which were after the first argument were still escaped
| | | * | | | | | | Fix raw string interpolator: string parts which were after the first ↵Julien Richard-Foy2012-11-131-1/+1
| | | | |_|/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | argument were still escaped
| | * | | | | | | Merge pull request #1615 from retronym/ticket/6648Adriaan Moors2012-11-161-0/+13
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | SI-6648 copyAttrs must preserve TypeTree#wasEmpty
| | | * | | | | | | SI-6648 copyAttrs must preserve TypeTree#wasEmptyJason Zaugg2012-11-141-0/+13
| | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This field tracks whether the type is an inferred on, subject to removal in `resetAttrs`, or an explicit type, which must remain. In ae5ff662, `ResetAttrs` was modified to duplicate trees, rather than mutate trees in place. But the tree copier didn't pass `wasEmpty` on to the new tree, which in turn meant that the subsequent typing run on the tree would not re-infer the types. If the type refers to a local class, e.g. the anonymous function in the enclosed test case, the reference to the old symbol would persist. This commit overrides `copyAttrs` in TypeTree to copy `wasEmpty`. We might consider representing this as a tree attachment, but this would need to be validated for the performance impact.
| | * | | | | | | Merge pull request #1614 from phaller/issue/correct-promise-signatureAdriaan Moors2012-11-161-3/+2
| | |\ \ \ \ \ \ \ | | | |_|/ / / / / | | |/| | | | | | SI-6661 - Remove obsolete implicit parameter of scala.concurrent.promise method
| | | * | | | | | SI-6661 - Remove obsolete implicit parameter of scala.concurrent.promise methodphaller2012-11-151-3/+2
| | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarification of @heathermiller: This is an inconsistency introduced after refactoring implicit ExecutionContexts. In commit 1dfce90246f7d334 the implicit ExecutionContexts were removed from everything else in Promise.scala, but it appears that method promise was missed in the scala.concurrent package object, which would've made sense to remove back then.
| * | | | | | | SI-6023 reify abstract valsYour Name2012-11-232-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Type trees created by MethodSynthesis for abstract val getters carry symless originals, which are unusable for reification purposes (or the result of reification will be unhygienic). To combat this, type trees for such getters are now created empty, i.e. without any `tpe` set, just having an original assigned. Subsequent `typedTypeTree` invocations fill in the `tpe` and update the original to be symful.
| * | | | | | | Merge pull request #1645 from scalamacros/ticket/6673Josh Suereth2012-11-212-4/+22
| |\ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | SI-6673 fixes macro problems with eta expansions
| | * | | | | | adds comments to standard attachmentsEugene Burmako2012-11-181-0/+15
| | | | | | | |
| | * | | | | | SI-6673 fixes macro problems with eta expansionsEugene Burmako2012-11-182-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eta expansions previously caused the typer to disable macros. That was done in order to detect eta expansion of macro defs and show the user an appropriate error message. Macros were disabled because to find out whether we're expanding a macro def, we need to get its symbol, and to get a symbol of something we need to typecheck that something. However typechecking automatically expands macros, so, unless we disable macros, after a typecheck we won't be able to analyze macro occurrences anymore. Unfortunately this solution has a fatal flaw. By disabling macros we not only prevent the eta-expandee from macro expanding, but also all the subtrees of that eta-expandee (see SI-6673). This commit adds a mechanism for fine-grained control over macro expansion. Now it's possible to prohibit only the node, but not its children from macro expanding.
| * | | | | | | Merge pull request #1596 from soc/SI-6632+SI-6633Josh Suereth2012-11-201-49/+44
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | SI-6632 SI-6633 Fixes issues and data corruption in ListBuffer
| | * | | | | | | SI-6632 SI-6633 Fixes issues and data corruption in ListBufferSimon Ochsenreither2012-11-091-49/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Disallow negative positions for ListBuffer#insert/insertAll/update - Fix data corruption issue in ListBuffer#insert
| * | | | | | | | Merge pull request #1597 from soc/SI-6634Josh Suereth2012-11-201-0/+5
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | SI-6634 Fixes data corruption issue in ListBuffer#remove
| | * | | | | | | | SI-6634 Fixes data corruption issue in ListBuffer#removeSimon Ochsenreither2012-11-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the cut-down version with minimally invasive changes, e. g. keeping the "auto-correcting" bounds algorithm.
| * | | | | | | | | Merge pull request #1620 from namin/si-6551Josh Suereth2012-11-201-4/+5
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Fixes SI-6551.
| | * | | | | | | | | SI-6551: don't insert apply call in polymorphic expression.Nada Amin2012-11-161-4/+5
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't rewrite an explicit apply method to dynamic polytypes.
| * | | | | | | | | Merge pull request #1621 from jannic/SI-6663-2.10.xJosh Suereth2012-11-201-1/+6
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Si 6663 2.10.x fix type parameter on selectDynamic
| | * | | | | | | | | SI-6663: don't ignore type parameter on selectDynamic invocationJan Niehusmann2012-11-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix mkInvoke to handle selectDynamic calls of the form new C.foo[T].xyz or new C.foo[T].xyz :U (where C extends Dynamic) Without this patch, the type parameter was silently ignored, and possibly inferred to a different. This patch fixes mkInvoke to handle these cases, where ctxTree has the form Select(TypeApply(fun, targs), nme) or Typed(...)
| * | | | | | | | | | Merge pull request #1641 from sschaef/doc-update/multimapJosh Suereth2012-11-201-3/+32
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Scaladoc update for collection.mutable.MultiMap
| | * | | | | | | | | | Scaladoc update for collection.mutable.MultiMapSimon Schaefer2012-11-171-3/+32
| | | |_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Addition of source code example on how to use a MultiMap and its defined methods. Minor correction in documentation for method `removeBinding`.
| * | | | | | | | | | Merge pull request #1644 from vigdorchik/group_searchJosh Suereth2012-11-201-19/+7
| |\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | Restore the opimization apparently lost after merge.
| | * | | | | | | | | Restore the opimization apparently lost after merge.Eugene Vigdorchik2012-11-181-19/+7
| | |/ / / / / / / /
| * | | | | | | | | Merge pull request #1628 from axel22/issue/6150-backportJosh Suereth2012-11-195-31/+47
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | Fixes SI-6150 - backport to 2.10.x branch.
| | * | | | | | | | Fixes SI-6150 - backport to 2.10.x branch.Aleksandar Prokopec2012-11-145-31/+47
| | |/ / / / / / /
| * | | | | | | | Merge pull request #1624 from adriaanm/paulp-issue/5330-2.10.xAdriaan Moors2012-11-161-3/+15
| |\ \ \ \ \ \ \ \ | | |_|/ / / / / / | |/| | | | | | | SI-5330, SI-6014 deal with existential self-type
| | * | | | | | | SI-5330, SI-6014 deal with existential self-typeAdriaan Moors2012-11-141-3/+15
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been broken since https://github.com/scala/scala/commit/b7b81ca2#L0L567. The existential rash is treated in a similar manner as in fc24db4c. Conceptually, the fix would be `def selfTypeSkolemized = widen.skolemizeExistential.narrow`, but simply widening before narrowing achieves the same thing. Since we're in existential voodoo territory, let's go for the minimal fix: replacing `this.narrow` by `widen.narrow`. -- Original patch by @retronym in #1074, refined by @paulp to only perform widen.narrow incantation if there are existentials present in the widened type, as narrowing is expensive when the type is not a singleton. The result is that compiling the entirety of quick, that code path is hit only 143 times. All the other calls hit .narrow directly as before. It looks like the definition of negligible in the diff of -Ystatistics when compiling src/library/scala/collection: < #symbols : 306315 --- > #symbols : 306320 12c13 < #unique types : 293859 --- > #unique types : 293865 I'm assuming based on the 2/1000ths of a percent increase in symbol and type creation that wall clock is manageable, but I didn't measure it.
| * | | | | | | Merge pull request #1612 from scalamacros/topic/showrawEugene Burmako2012-11-151-2/+5
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | sane printing of renamed imports
| | * | | | | | sane printing of renamed importsEugene Burmako2012-11-131-2/+5
| | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Having a select named "foo" with an underlying symbol named "bar" and trying to make sense of all that by prettyprinting is very confusing
* | | | | | | Merge pull request #1570 from retronym/ticket/6448Adriaan Moors2012-11-216-12/+17
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | SI-6448 Collecting the spoils of PartialFun#runWith
| * | | | | | | SI-6448 Collecting the spoils of PartialFun#runWithJason Zaugg2012-11-046-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids calling both `isDefinedAt` and `apply`. This pathological case that would benefit the most looks like: xs collect { case x if {expensive(); true} => x } The typical change looks like: - for (x <- this) if (pf.isDefinedAt(x)) b += pf(x) + foreach(pf.runWith(b += _)) Incorporates feedback provided by Pavel Pavlov: https://github.com/retronym/scala/commit/ef5430 A few more opportunities for optimization are noted in the `Pending` section of the enclosed test. `Iterator.collect` would be nice, but a solution eludes me. Calling the guard less frequently does change the behaviour of these functions in an obervable way, but not contravene the documented semantics. That said, there is an alternative opinion on the comment of the ticket: https://issues.scala-lang.org/browse/SI-6448
* | | | | | | | Merge pull request #1648 from paulp/unused-bonanza-2Adriaan Moors2012-11-21303-4427/+338
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Removing unused code, take 2.
| * | | | | | | | Remove code from compiler central.Paul Phillips2012-11-2052-1146/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All those old-timey methods whose melodies have become unfashionable.
| * | | | | | | | Remove code from misc bits of the compiler.Paul Phillips2012-11-209-47/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are everywhere. They defy categorization. They are... M I S C
| * | | | | | | | Removed code from scaladoc.Paul Phillips2012-11-209-131/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nobody is immune!
| * | | | | | | | Removed code from the typechecker.Paul Phillips2012-11-2012-251/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing code from this neighborhood is more difficult than elsewhere, making it all the more important that it be done.
| * | | | | | | | Members removed in scala.reflect.Paul Phillips2012-11-2038-947/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not a bad showing for a newcomer. Of course most of this code predates scala.reflect by a lot.
| * | | | | | | | Members removed in the backend.Paul Phillips2012-11-1917-247/+4
| | | | | | | | |
| * | | | | | | | Members removed from partest.Paul Phillips2012-11-1911-67/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has accreted its share through the bumpy years.
| * | | | | | | | Members removed from scala.reflect.io.Paul Phillips2012-11-199-189/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly hailing from a long-ago day when I imagined I was writing a general purpose library. We dodged that bullet.
| * | | | | | | | Members removed from the repl.Paul Phillips2012-11-1932-512/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a whole lot of these.
| * | | | | | | | Some files removed in their entirety.Paul Phillips2012-11-199-274/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And small associated changes.
| * | | | | | | | Removing ancient comments and pointless comments.Paul Phillips2012-11-1933-356/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Translating <code></code> into backticks. Removed the "@param tree ..." blocks which have been taunting me for half a decade now. Removed commented-out blocks of code which had been sitting there for two years or more.
| * | | | | | | | Revert "Commenting out unused members."Paul Phillips2012-11-19193-2579/+2660
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 951fc3a486.
| * | | | | | | | Commenting out unused members.Paul Phillips2012-11-19193-2662/+2581
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I want to get this commit into the history because the tests pass here, which demonstrates that every commented out method is not only unnecessary internally but has zero test coverage. Since I know (based on the occasional source code comment, or more often based on knowing something about other source bases) that some of these can't be removed without breaking other things, I want to at least record a snapshot of the identities of all these unused and untested methods. This commit will be reverted; then there will be another commit which removes the subset of these methods which I believe to be removable. The remainder are in great need of tests which exercise the interfaces upon which other repositories depend.
| * | | | | | | | applyOrElse is a synthetic method.Paul Phillips2012-11-191-1/+1
| | | | | | | | |
| * | | | | | | | Deal with possibly spurious warning in Macros.Paul Phillips2012-11-191-4/+4
| | | | | | | | |