Commit Graph

4388 Commits

Author SHA1 Message Date
James Strachan 3a4ed6a85f for consistency, moved extension functions on iterator/iterable/collection to the kotlin package rather than being split across kotlin and kotlin.util. Once intrinsic collections are here we could consider moving the java.util extension functions into kotlin.java.util 2012-03-26 08:59:16 +01:00
Andrey Breslav dd9c36387c KT-987 Unboxing nulls
#KT-987 Fixed
2012-03-26 11:42:34 +04:00
Andrey Breslav 6ce6855a91 Rename project to Kotln 2012-03-26 10:52:11 +04:00
James Strachan a194764657 added a helper method for converting functions into iterators (which have all the various standard library APIs on them) 2012-03-25 08:10:17 +01:00
James Strachan 85bf6dc5a7 fixed up setting the text on an element 2012-03-24 21:45:55 +00:00
James Strachan b688ff4a7c thanks to the heads up from Franck, I can work around KT-1646 - refactored previous Filter code to reuse the AbstractIterator base class and implemented filter/filterNot/filterIsInstance lazily 2012-03-24 21:14:54 +00:00
James Strachan e45cb714ab added test case for KT-1646 in an attempt to implement lazy filter/flatMap for Iterator 2012-03-24 20:29:11 +00:00
Stepan Koltsov 8ad5db5bd9 Fix KT-1639: extend JFrame
#KT-1639 Fixed
2012-03-24 20:36:43 +04:00
Leonid Shalupov b51805c84d plugin-publisher: add <idea-version since="IC-XXX.XX" /> to plugin.xml 2012-03-24 11:42:31 +04:00
Leonid Shalupov 6384bcb039 ReadMe: require ant 1.8 2012-03-24 11:41:27 +04:00
Andrey Breslav a89e26b3ac Fixed test paths in JS tests 2012-03-24 08:13:57 +01:00
Andrey Breslav e463226b24 Run js.tests in All Tests, remove testlib.tests 2012-03-24 08:05:42 +01:00
Stepan Koltsov f59104e922 fix kdoc generation 2012-03-24 03:33:14 +04:00
Nikolay Krasko 4d8b2d0727 Remove unnecessary code from the test 2012-03-24 02:51:11 +04:00
Stepan Koltsov 2e288fe1a0 CompileJdkHeadersTest 2012-03-24 02:25:14 +04:00
Stepan Koltsov 7836e44e70 Temporarily revert "kill JavaNamespaceDescriptor"
This reverts commit 3c45a1d60e.

This commit breaks compilation of jdk-headers. Explanation:

1. TopDownAnalyzer creates namespace java.util from sources
2. TopDownAnalyzer creates class Map in java.util
3. TopDownAnalyzer processes import java.util.Map.Entry
4. JavaDescriptorResolver resolves namespace java.util.Map
5. java.util.Map namespace is added to java.util namespace
6. redeclaration handler of namespace java.util crashes on Map
2012-03-24 02:23:30 +04:00
Andrey Breslav 41b8706708 Run js.tests in All Tests 2012-03-23 23:12:10 +01:00
Andrey Breslav cf108765ae KT-729 Need to support arrays as varargs: front-end checks done
#KT-729 In progress
2012-03-23 22:47:44 +01:00
Stepan Koltsov 7708b2d009 Work around missing jar
Somebody please fix it properly
2012-03-24 00:43:05 +04:00
Stepan Koltsov 3c45a1d60e kill JavaNamespaceDescriptor 2012-03-23 23:44:20 +04:00
Stepan Koltsov 8517fe6878 store namespace kind in trace, kill some JavaNamespaceDescriptor usages
JavaNamespaceDescriptor will be killed soon
2012-03-23 23:44:16 +04:00
Stepan Koltsov f73b2c01b4 wire trace into JavaDescriptorResolver 2012-03-23 23:44:12 +04:00
Andrey Breslav d27138e252 An exception fixed 2012-03-23 18:11:43 +01:00
Andrey Breslav aae196839e Reverting the pull-request #29 due to the upcoming redesign of the lazy collections API 2012-03-23 18:11:08 +01:00
James Strachan a18830ef29 working filterIsInstance() helper method for filtering on a sub type 2012-03-23 15:31:43 +00:00
James Strachan dadd288c40 switch to using an enum 2012-03-23 15:31:12 +00:00
James Strachan 8ab594193f Merge branch 'master' of github.com:JetBrains/kotlin 2012-03-23 15:09:57 +00:00
Nikolay Krasko 4311bcc929 #KT-1629 fixed Don't import jet.runtime.SharedVar.Int when typing "val a : Int = ..."
Completion testing framework extended with ability to assert tail text.
2012-03-23 18:36:51 +04:00
James Strachan 23e563b826 initial spike at implementing the standard collection functions on iterators; though compiler error prevented me from implementing all the lazy functions just yet 2012-03-23 11:36:11 +00:00
James Strachan 19cdb782ac added helper methods for iterating through next/previous nodes or elements on the DOM 2012-03-23 11:04:51 +00:00
James Strachan b2dd4cd590 updated the code generator of standard library methods and regenerated it 2012-03-23 11:04:04 +00:00
James Strachan c0cac21b8a added a helper method to filter a subset of an iterator by sub type 2012-03-23 11:03:38 +00:00
Andrey Breslav 90e5510b5d Support !!foo as a double-negation 2012-03-23 10:44:52 +01:00
Andrey Breslav 77159a0d8e Fixed the /**/ case. It is now a comment 2012-03-23 10:44:52 +01:00
Andrey Breslav 73baa8b65d Eliminate unneeded temporary trace 2012-03-23 10:44:52 +01:00
Andrey Breslav 4cef4ec170 Fixed type checking in the case of
val s : String = !true
2012-03-23 10:44:52 +01:00
Andrey Breslav 7341a82b0b Support for !! (analog of sure()/npe()) 2012-03-23 10:44:51 +01:00
Nikolay Krasko 4a3d0133f6 #KT-1598 fixed Wrong completion after "as" in imports 2012-03-22 18:57:20 +04:00
Pavel V. Talanov abcf038157 Add setTimeout() with 2 parameters. 2012-03-22 18:52:26 +04:00
Pavel V. Talanov 69758669cf Refactoring function translator. 2012-03-22 18:52:25 +04:00
Pavel V. Talanov fe53d20a88 Refactoring: refactor Aliaser into aliasing context. A very rough draft but test pass. 2012-03-22 18:52:24 +04:00
Pavel V. Talanov 91f488fdf8 Slight changes to expression visitor logic. 2012-03-22 18:52:24 +04:00
Nikolay Krasko 0cd839f044 EA-34998 Check qualified name from external before creating instance of FqName 2012-03-22 17:46:18 +04:00
James Strachan b46bb17377 corrected type of OutputStream.buffered() and fail if UTF-8 default charset can't be found - thanks for the heads up Stepan! :) 2012-03-22 07:20:26 +00:00
Stepan Koltsov 4da926f311 add NamespaceFactory dependency to JavaNamespaceDescriptor
(JavaNamespaceDescriptor will be killed soon, NamespaceFactory will be used to create nss)
2012-03-22 03:47:19 +04:00
Stepan Koltsov 97549f54b3 prohibit field of certain types 2012-03-22 03:47:14 +04:00
Stepan Koltsov 3c41df8419 move BindingTrace to Injector from TopDownAnalysisContext
It is necessary to make NamespaceFactoryImpl independent from TopDownAnalysisContext
2012-03-22 03:47:10 +04:00
Stepan Koltsov 162525f794 use dependency injector for JavaDescriptorResolver
JavaDescriptorResolver now lives in the same context as TopDownAnalyzer
2012-03-22 03:47:05 +04:00
Stepan Koltsov bb7b8007c2 di: better diag for abstract classes 2012-03-22 03:46:59 +04:00
Stepan Koltsov 5da984e2cb minor enhancement in JDR 2012-03-22 03:46:53 +04:00