Commit Graph

2142 Commits

Author SHA1 Message Date
Stepan Koltsov 25f71bcd3a skip shebang in the first line
Something like this works now:

===
% PATH="./bin:$PATH" ./sum.ktscript 31 21
31 + 21 = 52

% cat sum.ktscript
#!/usr/bin/env kotlin -script

val a = Integer.parseInt(args[0])
val b = Integer.parseInt(args[1])
println("$a + $b = ${a + b}")
===
2012-05-28 22:59:03 +04:00
Nikolay Krasko 252ba5672e KT-2122 Code completion after val with space should not add local variable's name (set priority in completion for local variables and parameters)
#KT-2122 fixed
2012-05-28 21:19:45 +04:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Andrey Breslav e4007992c6 Extract interface: TypeParameterDescriptor
A lot of code relied on these descriptors being mutable. In most cases I managed to work around this,
 but there're still are casts to raw List necessary in one or two places
2012-05-28 20:02:36 +04:00
Svetlana Isakova dfbd9922d9 fixes after merge
get rid of JetControlFlowDataTraceFactory
2012-05-28 12:32:45 +04:00
Svetlana Isakova 0bf65bfe1e get rid of JetPseudocodeTrace
and JetControlFlowDataTraceFactory
2012-05-28 12:09:44 +04:00
Svetlana Isakova b6b1ce52e1 tests changed:
added check for unused/uninitialized variables inside local and anonymous functions
2012-05-28 12:06:13 +04:00
Nikolay Krasko e946a0f908 - Out of block modification strategy for Kotlin block expression
- Separate project analysis for IDEA needs: headers + bodies
2012-05-27 17:39:56 +04:00
Dmitry Jemerov 0876bc6bfd read action 2012-05-25 17:53:48 +02:00
Dmitry Jemerov 05054bfa49 Ctrl-Alt-B works for Kotlin 2012-05-24 16:20:37 +02:00
Dmitry Jemerov 9015f21a29 down arrows for Kotlin classes 2012-05-24 16:20:36 +02:00
Dmitry Jemerov 39fe59d40a inheritor navigation works from Java to Kotlin 2012-05-24 16:20:35 +02:00
Dmitry Jemerov 783dbdd605 index occurrences of superclass names for Kotlin classes 2012-05-24 16:20:34 +02:00
Dmitry Jemerov cc0a5326c3 simpler implementation of java/kotlin mirror processing in rename and find usages (KT-2078)
#KT-2078 fixed
2012-05-24 16:20:34 +02:00
Svetlana Isakova 0fd882741b function invocation with only type parameters prohibited 2012-05-23 22:04:22 +04:00
Svetlana Isakova 327b471eaf "Change to function invocation" fix added 2012-05-23 21:53:17 +04:00
Nikolay Krasko deb13344c0 Fix test and add special option for spacing around colon in type definitions 2012-05-23 19:29:18 +04:00
Alexander.Podkhalyuzin 48533ca8d2 Fixed KT-2072: do not suggest to use type inference in Introduce Variable in case if expression type depends on expected type. 2012-05-23 18:58:39 +04:00
Nikolay Krasko ccb8c08684 Fix test and add special option for spacing around colon in type definitions 2012-05-23 18:44:23 +04:00
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
Alexander.Podkhalyuzin ca902799b6 Fixed wrong default setting: no space before type colon. 2012-05-23 14:24:52 +04:00
Stepan Koltsov 6f921a63d7 fix compilation 2012-05-23 03:17:16 +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 ecc4c484a6 move NameUtils, FqName into name subpackage 2012-05-23 02:52:30 +04: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
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 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
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
Alexander.Podkhalyuzin 8db0546052 Do not check function names in scope to suggest name for introduce variable refactoring (local values can overload function names from upper scopes). 2012-05-21 18:29:01 +04:00
Alexander.Podkhalyuzin 37fa4a1bb8 cleanup 2012-05-21 17:40:26 +04:00
Evgeny Gerashchenko 640fca42a4 Fixed navigation to library sources when function has vararg parameter. 2012-05-21 16:42:00 +04:00
Evgeny Gerashchenko c57dbb3895 Reformatted JetSourceNavigationHelper 2012-05-21 16:42:00 +04:00
Maxim Manuylov 8793dee390 JetRunConfiguration should store its settings in the same format as Java's ApplicationConfiguration to be able to reuse code in JPS #KT-2041 Fixed 2012-05-20 01:54:00 +02:00
Evgeny Gerashchenko 108dd156af Creating library under project directory in library tests. Hope this prevents them from blinking. 2012-05-16 21:07:44 +04:00