| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Change scaladoc links in collection classes to point at re-formatted
Collections Overview on docs.scala-lang.org. Fix minor typo:
s/Ummutable/Immutable
|
|\ \
| | |
| | |
| | |
| | |
| | | |
'joshmarcus/collections_docs' into develop
Closes SI-5280.
|
| | |
| | |
| | |
| | | |
"The Scala 2.8 Collections API" overview.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
-Ydump-classes option is intended to dump the compiler
generated bytecode to the .class files in given directory.
It can be pretty useful for reflective compilation that utilizes
in-memory classloaders, for example to check the files if compiler
produces invalid bytecode. In this case the dump helps to understand what
exactly is wrong with the emitted class.
The option format is -Ydump-classes <dir>.
|
| | | | |
| \ \ | |
|\ \ \ \
| |_|_|/
|/| | |
| | | | |
'kepler/topic/reifytests' into develop
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Empty modifiers are now correctly printed out as "Modifiers()" instead of
annoyingly verbose "Modifiers(Set(), newTermName(""), List())".
No review.
|
| | |
| | |
| | |
| | |
| | | |
Dropped redundant parents during bytecode generation to ease
trouble on android. Closes SI-5278.
|
|/ / |
|
| |
| |
| |
| |
| |
| | |
We're not buying anything with it off by default. Added a
-P:continuations:disable option to disable. -P:continuations:enable
lives on as a no-op. Review by @odersky.
|
| | | |
| \ | |
|\ \ \
| | | |
| | | |
| | | | |
'ijuma/feature/signum' into develop
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The Java implementation is faster as it doesn't have branches.
java.lang.Math includes implementations of signum for Double and Float,
but I didn't change the ones in scala.math because there is a difference
on how negative zero is handled.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Multiple minor fixes to Martin's implementation of reflection infrastructure.
Dominating theme is allowing for the fact that compilation via reflection
involves numerous exports/imports between various reflection universes.
Fixes SI-5230. Review by @odersky.
|
| | | |
| | | |
| | | |
| | | | |
and :+, plus one for ++:.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
Rolled damaru-levenshtein algorithm back to my original "pure"
version. Cut max distance to 1. Turned on by default because
now it offers nothing unexpected, and removed short-lived
-Ysuggest-idents option.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Suggest possible alternatives when an identifier is not in scope.
% scala -Ysuggest-idents
scala> import scala.collection.mutable._
import scala.collection.mutable._
scala> new MistBuffer
<console>:11: error: not found: type MistBuffer (similar: ListBuffer, Buffer)
new MistBuffer
^
Too bad, no MistBuffer. We'll settle for ListBuffer.
|
|/ /
| |
| |
| |
| | |
No secondary "reassignment to val" for unknown identifiers
in assignment position.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
ScalaDoc."
This reverts commit 086b558f2d025323c86226b2560578c50ee48b84.
It causes two scaladoc tests to fail; the scaladoc tests are almost
completely opaque and I have no time to reverse engineer them.
|
| | | |
| \ | |
| \ | |
| \ | |
| \ | |
| \ | |
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
'dcsobral/parserFilter', 'soc/library-range-sum', 'szeiger/feature/enumeration-valueset', 'szeiger/issue/5117' and 'jsuereth/pull-binary-error-message' into develop
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Closes SI-5117.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Make Enumeration.ValueSet a SortedSet and back it by a BitSet
- Add toBitMask and fromBitMask methods for value sets
- Add an Ordering for the values
- Deprecate names seq in the Enumeration constructor
- Add + method to Value for easy ValueSet creation
|
| | |/ / /
| | | | |
| | | | |
| | | | | |
Partially fixes SI-4658. NumericRange stays slow, thanks to the brilliant idea that Numeric doesn't need a division operation.
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
Complement map and flatMap when used in for comprehensions. This is
required when pattern matching is used on the result of the generators.
It is implemented through a new filterWithError method on ParseResult.
|
|/ / /
| | |
| | |
| | | |
Can be used to reliably override the default no success messages.
|
| | | | |
| \ \ | |
|\ \ \ \
| | |/ /
| |/| |
| | | | |
'soc/scaladoc-spacing' into develop
|
| |/ / |
|
|/ /
| |
| |
| |
| | |
Using java.lang.Long.bitCount for the size computation is a lot faster
than the previous Scala implementation. Closes SI-2196.
|
| | | |
| \ | |
| \ | |
| \ | |
|\ \ \ \
| | | | |
| | | | |
| | | | | |
into develop
|
| | |/ / |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
the requirement of a !# line when using it. This is how some other
languages, such as ruby, are run.
Typical usage:
#!/usr/bin/env scala
println("Hello, "+args(0)+"!")
Contributed by: Daniel C. Sobral
|
|/ / |
|
| | | |
| \ | |
| \ | |
| \ | |
|\ \ \ \
| | | |/
| | |/|
| | | | |
'remotes/odersky/topic/reify', 'remotes/robinst/master' and 'remotes/szeiger/bitset' into pending
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Mutable and immutable BitSets now extend SortedSet, using a fixed
Ordering.Int and an efficient bit mask based rangeImpl()
- fromArray methods in both implementations are deprecated in favor of
new fromBitMask and fromBitMaskNoCopy methods
- New toBitMask method for converting bit sets back to Array[Long] bit
masks
- immutable.BitSet uses a more efficient Builder, based on
mutable.BitSet (closes SI-4647)
- Delete scala.tools.nsc.util.BitSet (not used anywhere)
Review by @odersky
|
| |/
| |
| |
| | |
emptyValDef has special meaning in the compiler, so reify needs to preserve it by identity and not just by structure.
|
| |
| |
| |
| | |
Turns out that forcing AnnotationInfo on .pos is too eager. Protected by if (forced) now.
|
|/
|
|
| |
Lazy annotation now return positions and one can also set them. Fixes a problem reported by Greg (no ticket created).
|
| |
|
|
|
|
|
|
|
|
| |
I messed up my trip to the future the first time around; now in the
future 5.f is not an error but an attempt to call method "f" on 5 like
nature intended. (Thank you simon for catching this.) And deprecated
leading 0 for octal. Closes SI-5205.
|
|
|
|
|
|
| |
Added the check against UnitClass in freeLocalsTraverser. Closes
SI-5245. Review by odersky.
|
| |
|
|
|
|
|
|
|
|
|
| |
Small change to get rid of naming awkwardness for macros. Class based
macros now have a parameter section (_this: Tree), module based macrod
have an empty pararameter section () instead. So we can let them have
the same name, because overloading resolution will distinguish them
anyway. Review by burmako.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Yreify-copypaste: the copy/pasteable mode for reification
When experimenting with macros, I've found out that it's helpful to
use the reifier to find out what Scala idioms map to what Tree shapes.
However, stuff emitted by -Yreify-debug is too verbose, that's why I
decided to put up a human-readable dumper.
To use the dumps, you need to first import the following things:
import scala.reflect.api._ import scala.reflect.mirror._ import
scala.reflect.api.Modifier._ import scala.reflect.internal.Flags._
The stuff is really experimental, e.g. the tension between flags and
modifiers needs to be thought out and addressed. Review by odersky.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Reflection toolboxes now respect settings that are provided to them.
Before the fix CompilerCommand lacked the (args, settings, errorFn)
ctor. I added it and provided means to augment passed settings with
custom errorFn.
Closes SI-5239. Review by odersky.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A remedy for an IllegalAccessError where generated bytecode referred to
an inaccessible type. Closes SI-1430.
Bonus materials:
- tore out all the invokedynamic support. The shipped jdk7
implementation shows limited resemblance to the one this was written
against; the code mostly serves to distract. (I think I could get
invokedynamic working pretty quickly, except that it would
mean having a codebase for java7 and one for 5-6, which is not a yak
I wish to shave today.)
- gave NullClass and NothingClass objects of their own, which
allowed a nice polymorphic simplification of isSubClass, plus a
couple other streamlinings.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Had AnnotationInfo extend Product3 since it's no longer a case class.
Tried to make reflection a little more robust. Closes SI-5223, review by
vogt.
|