Commit Graph

5685 Commits

Author SHA1 Message Date
Dmitry Jemerov b03966e8d0 coerce condition value to Type.BOOLEAN (KT-2147) 2012-05-31 13:59:42 +02:00
Andrey Breslav 33f0a3cee0 JetClassOrObject now has a type-safe Name 2012-05-31 15:29:58 +04:00
Andrey Breslav d3a624b071 Fix compilation yet again
(Not my day, apparently)
2012-05-31 15:22:59 +04:00
Andrey Breslav 7d550980c6 Lazy resolve: Generate fake overrides for functions 2012-05-31 14:29:25 +04:00
Andrey Breslav 5471738dfa Update names to match the generic meaning of the code 2012-05-31 14:29:25 +04:00
Svetlana Isakova 7dab62ec97 KT-2125 Inconsistent error message on UNSAFE_CALL
#KT-2125 fixed
2012-05-31 14:17:48 +04:00
Andrey Breslav 423ed30e91 Fix compilation again 2012-05-31 14:17:26 +04:00
Andrey Breslav 1ab693be09 Fix compilation 2012-05-31 14:10:32 +04:00
Andrey Breslav f2dab93090 Extract method + remove unused parameter 2012-05-31 14:03:45 +04:00
Andrey Breslav 83eaa4deb7 Got rid of a global map for invisible overridden descriptors 2012-05-31 13:50:15 +04:00
Andrey Breslav 9e1c218af2 More precise checks 2012-05-31 13:39:32 +04:00
James Strachan 8ebd632be9 rollback change that broke the build - sorry! :) 2012-05-31 10:30:54 +01:00
James Strachan 57ffb91514 fix possible NPE 2012-05-31 09:38:26 +01:00
Alexander.Podkhalyuzin f7b9dab9f7 Added -XX:+HeapDumpOnOutOfMemoryError to IDEA run configurations. 2012-05-31 12:37:51 +04:00
James Strachan 2d4354af6c fixed possible NPE 2012-05-31 09:32:03 +01:00
James Strachan c4439f33f0 avoided JS compile barf in JS generation and fix compile error of Node vals in generated DOM API 2012-05-31 09:26:55 +01:00
James Strachan fe68aeaa78 generate the Node.ELEMENT_NODE fields on the JS DOM API and refactored the kotlin.dom API so that it uses the Node.getNodeType() API rather than using "is" which is troublesome to implement on a browser/JS 2012-05-31 09:08:12 +01:00
Andrey Breslav 00cf06e4f3 DI: Don't call getters on non-public fields 2012-05-31 11:55:00 +04:00
Stepan Koltsov c62193d272 add HashSet to mock rt.jar
it might fix tests
2012-05-30 23:04:56 +04:00
Andrey Breslav 173904d606 Introduced JetNamed to unify named functions and properties 2012-05-30 21:58:46 +04:00
Stepan Koltsov 22be8ad49a do not include error types in hierarchy 2012-05-30 21:47:19 +04:00
Andrey Breslav 5504015025 Preliminary version of lazy resolve
The implementation is incomplete and thus not used anywhere other than the test
2012-05-30 21:09:22 +04:00
Stepan Koltsov 7c0b8876ca fix more errors of incomplete classpath
after this commit project without JDK configured is not all red
2012-05-30 21:04:47 +04:00
Stepan Koltsov a7aeba4e48 JDR: do not crash if signature references nonexistent class 2012-05-30 21:04:47 +04:00
Stepan Koltsov 3a3cbd53d8 JavaDescriptorResolver should not crash if there is no original for alt-header
(before this commit it crashed because package was not searched in alt-headers)

This commit makes JDR ignore alt-header if original is not found
2012-05-30 21:04:47 +04:00
Andrey Breslav 570789512f Even more detailed error messages 2012-05-30 21:02:20 +04:00
Andrey Breslav 37bc10689e Fix instanceof checks after introducing the TypeParameterDescriptor interface 2012-05-30 21:01:33 +04:00
Andrey Breslav ebb0d25b17 Fix compilation 2012-05-30 20:59:25 +04:00
Andrey Breslav ce96502f72 Make APIs available to lazy resolve 2012-05-30 20:57:03 +04:00
Andrey Breslav d95f315e24 getName() always returns null for REFERENCE_EXPRESSIONs 2012-05-30 20:53:04 +04:00
Andrey Breslav 40894196bf Proper rendering for modules 2012-05-30 20:52:00 +04:00
Stepan Koltsov 8611ce5773 KT-2047 Assertion from override resolver
#KT-2047 Fixed
2012-05-30 20:26:08 +04:00
James Strachan 3ebcb399c7 fixed up sample 2012-05-30 16:55:44 +01:00
Stepan Koltsov 1f5666e0e8 more tests in ScriptGenTest 2012-05-30 19:47:42 +04:00
James Strachan 872f08303e allow the JS maven plugin to copy the kotlin JS library file - or append it 2012-05-30 16:43:33 +01:00
James Strachan e41f59779e avoid mandatory properties for optional things on the plugin 2012-05-30 16:43:04 +01:00
James Strachan c639d598f6 fixed the build - whoops :) 2012-05-30 16:42:35 +01:00
James Strachan 4cff5f9759 modified the JS compiler so that it can have definitions and library sources specified or discovered on the classpath; so for example we can then discover the kotlin standard library kotlin that needs to be compiled; plus the JS library definitions (which map to the kotlin-lib.js file) 2012-05-30 15:51:08 +01:00
Stepan Koltsov ae12b4e5fc fix compilation 2012-05-30 18:49:36 +04:00
Stepan Koltsov e157853468 test for scala-library jar resolve
scala-library descriptors does not fit in memory, so resolve it in chunks

BTW scala-library it is resolved fine
2012-05-30 18:47:00 +04:00
Evgeny Gerashchenko b3e211a3ba KT-2139 java.sql.Array inserted by completion is inserted by short name, and import is not added
#KT-2139 fixed
2012-05-30 18:05:49 +04:00
Nikolay Krasko b767e1a8a6 Failure after typing empty import 2012-05-30 17:09:46 +04:00
Nikolay Krasko 251cc560aa Merge pull request #60 from maxmanuylov/KT-2041
Converter for KT-2041: JetRunConfiguration should store its settings in ...
2012-05-30 04:05:15 -07:00
Andrey Breslav 69e74cb147 Confluence docs. Initial version 2012-05-30 14:41:40 +04:00
James Strachan d7573b49a6 allow the JS compiler to take a list of files, verbose flag and a flag to indicate if a main call is required; plus added a test case to ensure we can compile some of the kotlin standard library using the K2JSCompiler directly 2012-05-30 11:31:35 +01:00
James Strachan 782773fca9 fixed compile errors 2012-05-30 11:30:36 +01:00
Nikolay Krasko 75277b0721 Add until-build attribute to generated plugin.xml 2012-05-30 14:20:04 +04:00
Evgeny Gerashchenko e7ed224845 KT-2110 Some flaws in Colors & Fonts dialog
#KT-2110 fixed
2012-05-30 13:56:19 +04:00
James Strachan e6f2f7043b added more descriptive assertions if we get nulls when compiling 2012-05-30 10:27:10 +01:00
Maxim Manuylov 5bb489befb Converter for KT-2041: JetRunConfiguration should store its settings in the same format as Java's ApplicationConfiguration to be able to reuse code in JPS 2012-05-30 00:12:02 +02:00