Commit Graph

5527 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 393a8a6742 Committed forgotten file for KT-2001 fix.
#KT-2001 fixed
2012-05-23 16:27:31 +04:00
Evgeny Gerashchenko e2d4578c3e Fixed KT-2001 Create warning when Kotlin runtime is outdated relative to plugin
#KT-2001 fixed
2012-05-23 16:25:39 +04:00
Evgeny Gerashchenko ba435d3777 Extracted constants. 2012-05-23 16:25:39 +04:00
Evgeny Gerashchenko c0f36d57f7 Removed unused parameter. 2012-05-23 16:25:39 +04:00
Alexander.Podkhalyuzin b9267dc7cf Fixed KT-2071: Cannot Introduce Variable from function literal. 2012-05-23 15:58:55 +04:00
Alexander.Podkhalyuzin b5b9f7ba98 Fixed broken testdata. 2012-05-23 15:58:12 +04:00
Andrey Breslav 59b533ccd3 Method name fixed 2012-05-23 14:33:34 +04:00
Alexander.Podkhalyuzin ca902799b6 Fixed wrong default setting: no space before type colon. 2012-05-23 14:24:52 +04:00
Svetlana Isakova f58d0193eb test for KT-1878 Support 'invoke' functions short way invocation 2012-05-23 12:50:19 +04:00
James Strachan fc4340f0f7 #KT-2067 Fixed 2012-05-23 09:46:15 +01:00
James Strachan 939f0e9085 added drop(n) and dropWhile(predicates) for KT-2067 - also tail() now returns the usual idea of tail() - namely everything but the head - rather than just the last element. Finally added more test sample code to the kdoc 2012-05-23 09:35:16 +01:00
James Strachan 53a9fff0bc attempt to fix compile error introduced by Stepan's refactoring 2012-05-23 09:30:03 +01:00
James Strachan a4991534b4 added capitalize/decapitalize of strings and isUpper/LowerCase helpers to Char 2012-05-23 08:28:02 +01:00
Stepan Koltsov 6f921a63d7 fix compilation 2012-05-23 03:17:16 +04:00
Stepan Koltsov 8800e4587a fix compilation 2012-05-23 03:01:46 +04:00
Stepan Koltsov 33a59ff5fe Name class
In the most places in frontend identifier is stored in Name class, was in String.
Name has two advantages over String:
* validation: you cannot accidentally create identifier with dot, for example
* readability: if you see String, you don't now whether it is
  identifier, fq name, jvm class name or something else

Name's disadvantage is (small) performance overhead. We have no value types in JVM.
2012-05-23 02:52:32 +04:00
Stepan Koltsov c15ff2dee0 make parser test debugging friendly 2012-05-23 02:52:32 +04:00
Stepan Koltsov 13a9108f05 sort members in Read*BinaryClassTest
test should not fail if hash code or hash set is implemented diffently
2012-05-23 02:52:31 +04:00
Stepan Koltsov 3c64fbb2a0 LabelName stores label name
TODO: uncomment assertions in LabelName constructor
2012-05-23 02:52:31 +04:00
Stepan Koltsov 65a6b7f726 mute Idea inspection false positives 2012-05-23 02:52:31 +04:00
Stepan Koltsov ac1bf66251 remove obsolete code 2012-05-23 02:52:30 +04:00
Stepan Koltsov ecc4c484a6 move NameUtils, FqName into name subpackage 2012-05-23 02:52:30 +04:00
Stepan Koltsov 6063c01a1c command line script launcher
% ./bin/kotlin -script hello.ktscript
hello world

% cat hello.ktscript
fun hello(what: String) = println("hello $what")
hello("world")

Note it currently takes 8 seconds to evaluate hello world script.
2012-05-23 02:52:30 +04:00
Stepan Koltsov f4051f45ab generate bytecode for script
It is just prototype

* does not make top level symbols visible as class members yet
* does not take parameters
* Script class name is hardcoded now
2012-05-23 02:52:29 +04:00
Stepan Koltsov d6bf8876a3 analyze kotlin scripts 2012-05-23 02:52:29 +04:00
Stepan Koltsov 5fc73a4cd4 parse kotlin scripts
http://confluence.jetbrains.net/display/~stepan.koltsov/REPL
2012-05-23 02:52:29 +04:00
Stepan Koltsov a8bf3b6e10 utility to run stdlib test forever 2012-05-23 02:52:29 +04:00
Stepan Koltsov 5eb3a86c4d break CodegenTestCase : JetLiteFixture dependency
This is important because test base classes like JetLiteFixture has
a lot of unused code/state that hardens reading/debugging.
2012-05-23 02:52:28 +04:00
James Strachan a81e40fae2 added test case and bug fix for (next|previous)(Elements|Siblings) methods 2012-05-22 18:51:44 +01:00
Dmitry Jemerov 88c4778055 rename Kotlin methods used in Java code 2012-05-22 19:09:39 +02:00
Dmitry Jemerov fa1ecfaa93 find usages of Kotlin methods in Java code (KT-1819)
#KT-1819 fixed
2012-05-22 19:09:38 +02:00
Dmitry Jemerov 09cf7ac2aa find usages and rename work for Kotlin classes called from Java code (KT-1641)
#KT-1641 fixed
2012-05-22 19:09:38 +02:00
Alex Tkachman f15cb22809 patch from Natasha to fix local var table 0 for function literals 2012-05-22 19:10:59 +03:00
Svetlana Isakova b63d3905f9 KT-1256 Error highlighting in IDE should be less annoying
#KT-1256 fixed
2012-05-22 18:23:51 +04:00
pTalanov 6a24d0cf6d Package .js library file into plugin 2012-05-22 17:20:50 +04:00
pTalanov c7c4a4bd39 SetUpJsModuleAction -> JsModuleSetUp and no longer is an action.
Fix spacing in build.xml
2012-05-22 16:29:01 +04:00
pTalanov 0cdf826342 SetUpJSModuleAction puts library jar under "lib" directory. Set up kotlin runtime notification suggests setting up JS module as well as JVM. 2012-05-22 16:03:54 +04:00
pTalanov 18ce0ac722 Introduce SetUpJsModuleAction
Refactor PathUtil
2012-05-22 13:51:48 +04:00
pTalanov 67491a224d Include packaging jslib into build 2012-05-22 13:49:15 +04:00
pTalanov ab8893ac69 Make K2JSRunConfiguration extend ModuleBasedConfiguration 2012-05-22 13:19:39 +04:00
Alexander.Podkhalyuzin 95360012cf "Show members" option for Project View is now fast (Fixed KT-2061) 2012-05-22 13:09:54 +04:00
Nikolay Krasko 8208489759 KT-1810 "defined in" in completion list takes space that could be used for more useful information - replaced to "in"
#KT-1810 fixed
2012-05-22 01:49:09 +04:00
Nikolay Krasko a7b11d2b4e KT-1673 Respect formatter settings in the completion list - apply standard renderer
#KT-1673 fixed
2012-05-22 01:45:36 +04:00
Stepan Koltsov 8623fba01b cli: store unused arguments 2012-05-22 00:02:56 +04:00
Stepan Koltsov ea4a49764d fix bin/kotlin classpath again 2012-05-22 00:02:19 +04:00
Alexander.Podkhalyuzin 4886f45e0f Fixed KT-1847. 2012-05-21 19:40:57 +04:00
Evgeny Gerashchenko 87ce25d10e Added test case in LibraryNavigationRegressionTest to test references to library sources for functions with vararg parameter. 2012-05-21 19:21:04 +04:00
Evgeny Gerashchenko c23b9fc207 Extracted method in LibraryNavigationRegressionTest. 2012-05-21 19:21:04 +04:00
Stepan Koltsov fdb2b98b0c more di in jvm backend 2012-05-21 19:20:32 +04:00
Stepan Koltsov 99cc26866e jvm backend: use JvmClassName instead of String 2012-05-21 19:20:23 +04:00