summaryrefslogtreecommitdiff
path: root/test/files/presentation
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/2.10.x' into merge-210Paul Phillips2013-02-104-0/+106
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/2.10.x: Fix for paramaccessor alias regression. Expanded bytecode testing code. SI-5675 Discard duplicate feature warnings at a position accommodates pull request feedback term and type reftrees are now reified uniformly SI-6591 Reify and path-dependent types SI-7096 SubstSymMap copies trees before modifying their symbols SI-6961 no structural sharing in list serialization SI-6187 Make partial functions re-typable [backport] SI-6478 Fixing JavaTokenParser ident SI-7100 Fixed infinite recursion in duplicators SI-6146 More accurate prefixes for sealed subtypes. SI-5082 Cycle avoidance between case companions SI-6113 typeOf now works for type lambdas SI-5824 Fix crashes in reify with _* SI-7026: parseTree should never return a typed one SI-7070 Turn restriction on companions in pkg objs into warning Conflicts: src/compiler/scala/reflect/reify/codegen/GenSymbols.scala src/compiler/scala/tools/nsc/typechecker/PatternMatching.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/compiler/scala/tools/reflect/ToolBoxFactory.scala src/library/scala/collection/immutable/List.scala src/reflect/scala/reflect/internal/TreeInfo.scala src/reflect/scala/reflect/internal/Types.scala src/reflect/scala/reflect/internal/settings/MutableSettings.scala src/reflect/scala/reflect/runtime/Settings.scala test/files/buildmanager/t2650_1/t2650_1.check test/files/buildmanager/t2657/t2657.check test/files/neg/t3234.check test/files/run/idempotency-this.check test/files/run/macro-typecheck-macrosdisabled2.check test/files/run/showraw_tree.check test/files/run/showraw_tree_ids.check test/files/run/showraw_tree_kinds.check test/files/run/showraw_tree_types_ids.check test/files/run/showraw_tree_types_typed.check test/files/run/showraw_tree_types_untyped.check test/files/run/showraw_tree_ultimate.check test/files/run/t2886.check test/files/run/t5225_2.check test/files/run/t5374.check test/files/run/t5374.scala test/files/run/t6329_repl.check test/files/run/toolbox_typecheck_macrosdisabled2.check
| * Merge pull request #1993 from mads379/SI-7026-2.10.xAdriaan Moors2013-02-073-0/+100
| |\ | | | | | | SI-7026 Asking for a parse tree will now never result in a typed tree
| | * SI-7026: parseTree should never return a typed oneMads Hartmann Jensen2013-02-073-0/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes ticket SI-7026. This makes it safe to use parseTree outside of the presentation compiler thread. Solved it with an implementation that just parses the source every time without trying to memorize anything. Added tests that checks that 1. You get a new parse tree every time you ask for one. 2. You always get a parse tree, never a typed tree. 3. A parse tree should never contain any symbols or types [1]. 4. If you ask for a parse tree and then ask for a typed tree it shouldn't change the parse tree you originally asked for, i.e. property 3 still holds. Additionally the parser is now only interruptible when running on the presentation compiler thread. [1] There is an exception to this though. Some of the nodes that the compiler generates will actually contain symbols. I've chosen to just ignore these special cases for now.
* | | Merge commit 'f784fbfbce' into merge-210Paul Phillips2013-02-102-16/+37
|\| | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f784fbfbce': Add a request to presentation compiler to fetch doc comment information. Refactor scaladoc base functionality to allow it to be mixed in with Global in the IDE. Conflicts: src/compiler/scala/tools/nsc/interactive/Doc.scala
| * | Add a request to presentation compiler to fetch doc comment information.Eugene Vigdorchik2013-02-062-16/+37
| |/ | | | | | | Refactor scaladoc base functionality to allow it to be mixed in with Global in the IDE.
* | SI-6811 Remove primitive widenings and /:\Simon Ochsenreither2013-01-178-31/+15
| |
* | Merge remote-tracking branch 'origin/2.10.x' into merge-2.10.xPaul Phillips2012-12-204-1/+124
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/2.10.x: (31 commits) Implicit vars should have non-implicit setters. Deprecate `scala.tools.nsc.Phases` because it's dead-code. scaladoc Template: remove duplicate code and several usages of Option.get. adds scala-reflect.jar to MIMA in ant Test showing the absence of a forward reference update mailmap Remove dead code from `Global`. Cleanup MemberLookup. Better explain ambiguous link targets. typedIdent no longer destroys attachments fixes incorrect handling of Annotated in lazy copier simplifies checkBounds Recurse into instantiations when stripping type vars. Extract base scaladoc functionality for the IDE. Expand pattern match position tests. SI-6288 Remedy ill-positioned extractor binding. SI-6288 Fix positioning of label jumps SI-6288 Position argument of unapply Fixes SI-6758: force LazyAnnnotationInfo for DefDef and TypeDef SI-6795 Simplify errors related to "abstract override" on type members SI-6795 Adds negative check for "abstract override" on types in traits ... Conflicts: .mailmap src/compiler/scala/tools/nsc/Global.scala src/compiler/scala/tools/nsc/ast/DocComments.scala src/compiler/scala/tools/nsc/doc/base/CommentFactoryBase.scala src/compiler/scala/tools/nsc/doc/html/page/Source.scala src/compiler/scala/tools/nsc/doc/html/page/Template.scala src/compiler/scala/tools/nsc/doc/model/LinkTo.scala src/compiler/scala/tools/nsc/doc/model/MemberLookup.scala src/compiler/scala/tools/nsc/doc/model/diagram/DiagramFactory.scala src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/reflect/scala/reflect/runtime/JavaMirrors.scala test/scaladoc/run/links.scala
| * Extract base scaladoc functionality for the IDE.Eugene Vigdorchik2012-12-124-1/+124
| |
* | Merge remote-tracking branch 'origin/2.10.x' into merge-210Paul Phillips2012-10-191-0/+33
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/2.10.x: (52 commits) JavaUniverse Moved @contentDiagram in Symbols Adds lots of new documentation for TypeTags, Mirrors, Universes and more runtime.JavaUniverse - put ungrouped members at the top Forgotten annotation in Annotations Diagram tweaking Grouping for reflection and macros fixes a typo scala.reflect.api.Symbols documentation Symbols docs cleanup, mostly moved to guide scala.reflect.api.Position documentation scala.reflect.api.StandardNames documentation scala.reflect.api.Constants documentation removed docs for internal TypeCreator and TreeCreator simplified reflection docs for trees Rearranged some reflection docs, moving things to the guide reflection docs improvements and moves to doc page docs for reflection and macros SI-6509 Correct @template owners SI-6155 Scaladoc @template diagrms ... Conflicts: src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/reflect/scala/reflect/api/Trees.scala test/scaladoc/run/links.scala
| * Fixed SI-6505. Respond to ask calls by immediate failure even after compiler ↵Iulian Dragos2012-10-101-0/+33
| | | | | | | | | | | | | | shutdown. When the compiler is asked to shutdown, it may still have items on the working queue, and more can be added by clients in other thread that don't *know* the compiler is down yet. These requests were never serviced, leading to deadlocks or timeouts. review by @odersky, @hubertp
* | SI-6467: Zero element in aggregate now by-nameAleksandar Prokopec2012-10-041-1/+1
|/
* Allow nested calls to `askForResponse` in the presentation compiler.Iulian Dragos2012-09-042-0/+24
| | | | | Fix #6312. review by @odersky,@lrytz.
* Allow attachments for symbols, just like for trees.Lukas Rytz2012-07-057-0/+56
| | | | Removes the two global hash maps in Namers, and the one in NamesDefaults. Also fixes SI-5975.
* Enhanced presentation compiler test infrastructureMirco Dotta2012-07-057-35/+6
| | | | | | | | | | * Removed unneeded .flags. * Renamed a few methods in `InteractiveTest`. * Force the presentation compiler to shut down after each test. * -sourcepath in the .flags file is now relative to the test's base directory. * Use `InteractiveReporter` in Presentation Compiler tests. By using the `InteractiveReporter`, compilation errors are collected in the compilation unit. This was necessary for testing SI-5975.
* Renaming convertTo to to on GenTraversableOnce.Josh Suereth2012-06-281-1/+1
|
* Migrate build to @odersky's suggestion of convertTo.Josh Suereth2012-06-181-1/+3
| | | | | | * Move method into TraversableOnce from Iterator and Traversable to make the build pass. * Udpate IDE tests with new collection methods. * Rewire default toXYZ methods to use convertTo.
* removes array tagsEugene Burmako2012-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before 2.10 we had a notion of ClassManifest that could be used to retain erasures of abstract types (type parameters, abstract type members) for being used at runtime. With the advent of ClassManifest (and its subtype Manifest) it became possible to write: def mkGenericArray[T: Manifest] = Array[T]() When compiling array instantiation, scalac would use a ClassManifest implicit parameter from scope (in this case, provided by a context bound) to remember Ts that have been passed to invoke mkGenericArray and use that information to instantiate arrays at runtime (via Java reflection). When redesigning manifests into what is now known as type tags, we decided to explore a notion of ArrayTags that would stand for abstract and pure array creators. Sure, ClassManifests were perfectly fine for this job, but they did too much - technically speaking, one doesn't necessarily need a java.lang.Class to create an array. Depending on a platform, e.g. within JavaScript runtime, one would want to use a different mechanism. As tempting as this idea was, it has also proven to be problematic. First, it created an extra abstraction inside the compiler. Along with class tags and type tags, we had a third flavor of tags - array tags. This has threaded the additional complexity though implicits and typers. Second, consequently, when redesigning tags multiple times over the course of Scala 2.10.0 development, we had to carry this extra abstraction with us, which exacerbated the overall feeling towards array tags. Finally, array tags didn't fit into the naming scheme we had for tags. Both class tags and type tags sound logical, because, they are descriptors for the things they are supposed to tag, according to their names. However array tags are the odd ones, because they don't actually tag any arrays. As funny as it might sound, the naming problem was the last straw that made us do away with the array tags. Hence this commit.
* Introduces scala-reflect.jarEugene Burmako2012-06-081-2/+2
|
* repairs the tests after the refactoring spreeEugene Burmako2012-06-082-21/+21
|
* A whole bunch of checkfile updates.Paul Phillips2012-05-107-45/+45
| | | | | Wasn't me this time (I don't think!) Mr. Robot can't get here too soon for me.
* Fixed SI-5708. Correctly compute accessibility for object members.Iulian Dragos2012-05-103-0/+70
|
* Fixed positions in named default applications (no hyperlinking in ↵Iulian Dragos2012-05-085-1/+27
| | | | | | conjunction with implicit arguments). Removed even more code in the presentation compiler testing infrastructure. One less level of indirection, and a top-level object gone!
* What did you bring me Santa?Paul Phillips2012-05-051-1/+2
| | | | Oh boy, a checkfile! This is the best christmas ever!
* remove -Xoldpatmat where test no longer needs itAdriaan Moors2012-05-021-1/+0
|
* Presentation Compiler tests for visibility of members.Iulian Dragos2012-04-309-415/+681
| | | | Removed some unneeded indirection in the testing framework.
*-. Merge commit 'refs/pull/437/head'; commit 'refs/pull/438/head' into developPaul Phillips2012-04-256-5/+80
|\ \
| | * updated tests now matches aren't translated if forInteractiveAdriaan Moors2012-04-252-5/+2
| |/ |/|
| * Added a Presentation Compiler test for hyperlinking.Iulian Dragos2012-04-254-0/+78
|/ | | | | | This test ensures hyperlinking works inside and around pattern matching. The new virtual pattern matcher synthesizes trees that are not properly nested, and whose positions make it impossible to retrieve the correct tree/symbol for a given position. Therefore, the current test is using the old pattern matcher. However, once the virtual pattern matcher is fixed, remove the corresponding line from patmat.flags to re-enable virtpatmat.
* migrates stdlib and compiler to tagsEugene Burmako2012-04-231-1/+1
| | | | | * all usages of ClassManifest and Manifest are replaced with tags * all manifest tests are replaced with tag tests
* virtpatmat on by default; chicken out: -XoldpatmatAdriaan Moors2012-04-142-2/+5
| | | | | | | some tests (unreachability, exhaustivity, @switch annotation checking) are still run under -Xoldpatmat, but that will change before we go into RC mode (then the test/ partest of this commit will be reverted) removed irrelevant dependency on patmat
* Disabling failing tests.Paul Phillips2012-04-123-985/+0
| | | | | | | | | | I turn them over to the responsible parties. Iulian knows about the deadlock test; for philipp I presume, 07:10:29 [partest] concurrent-future.scala:97: error: not found: type FutureTimeoutException 07:10:29 [partest] throw new FutureTimeoutException(null) 07:10:29 [partest] ^ 07:10:29 [partest] one error found
* Bumped the number of samples of the memory leaks test to 50. This should ↵Iulian Dragos2012-04-092-10/+51
| | | | make it much more resilient against spikes. Also removed usedmem file dumps.
* Added presentation memory leak test.Iulian Dragos2012-04-032-0/+139
|
* Pushed Symbol/Type creation partitioning further.Paul Phillips2012-04-011-1/+1
| | | | | Yet more funnelling of immutable creation-time known information into the identities of symbols and types.
* Increased the timeout from 5s to 60s to make the presentation compiler ↵Iulian Dragos2012-03-221-1/+1
| | | | shutdown test more resilient on slow machines.
* Fix deadlocks occurring during presentation compiler shutdown.Iulian Dragos2012-03-053-0/+985
| | | | | | | During shutdown, other threads can still post work items on the work queue. They will never be serviced, leading to clients waiting forever. The fix is to replace the implementation of the queue with a 'always fail' implementation during shutdown. Review by @odersky.
* Disambiguate some type printing.Paul Phillips2012-01-121-1/+1
| | | | Functions of functions use parens for grouping.
* Updated checkfile with IndexedSeq signature.Paul Phillips2012-01-111-1/+1
|
* Disabled another presentation compiler test.Paul Phillips2011-12-093-215/+0
| | | | | | It foiled me right on the cusp of a successful windows nightly. https://scala-webapps.epfl.ch/jenkins/job/scala-nightly-windows/1170/consoleText
* Disabled non-deterministic tests.Paul Phillips2011-12-0561-11380/+0
| | | | | | Everyone's favorite "will they or won't they" tests, akka and timeofday. They will be welcomed back into the fold once they can stick to a decision on whether to pass or fail.
* Reverted ProductN parent for case classes.Paul Phillips2011-11-161-4/+2
| | | | | Looks like we will need blood, toil, tears, and sweat. No review.
* Enabled Presentation Compiler test for IDE tick...Micro Dotta2011-11-113-0/+17
| | | | | | Enabled Presentation Compiler test for IDE ticket #1000609, which has been fixed by odersky. no review.
* Enabled Presentation Compiler test for IDE tick...Micro Dotta2011-11-113-0/+50
| | | | | | Enabled Presentation Compiler test for IDE ticket #1000349, which has been fixed by odersky in r25625. no review.
* Updates for the ten tests I broke recently.Paul Phillips2011-11-088-17/+34
| | | | | Wow, ten tests, that's unexpected. No review.
* Third collections commit from Todd Vierling.Paul Phillips2011-11-071-6/+6
| | | | | | | Misc cleanups associated with the previous commits: limiting overly expanded types, fixing externally visible types for scaladoc, utilizing abstract collection classes where possible, etc.
* Changed presentation tests to use .flags instea...Iulian Dragos2011-11-062-0/+0
| | | | | | Changed presentation tests to use .flags instead of .opts for passing options to the presentation compiler.
* Fixed askLinkPos problem in reported by failing...Martin Odersky2011-11-061-1/+1
| | | | | | Fixed askLinkPos problem in reported by failing test in presentation/akka.
* Added akka.opts file (for presentation compiler...Micro Dotta2011-11-051-0/+18
| | | | | | | Added akka.opts file (for presentation compiler test) which allows to set settings on the compiler's instance. Lines that begin with a sharp are skipped. review by odersky.
* Begone t1737...Hubert Plociniczak2011-11-029-33/+33
|
* attempt to bring trunk build to normal state.Hubert Plociniczak2011-11-252-13/+17
|