Commit Graph

2084 Commits

Author SHA1 Message Date
Svetlana Isakova 5c7b787e68 reversed traverse in depth 2012-05-28 12:06:12 +04:00
Svetlana Isakova fb08e13da9 added PseudocodeData
to store information about variables for each instruction: initialization and use statuses
2012-05-28 12:06:12 +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
Andrey Breslav 3702bdea70 getTypeConstructor() pushed back down 2012-05-25 23:02:51 +04:00
Andrey Breslav 0182b87732 hasConstructors() removed, a few members pulled up 2012-05-25 22:59:39 +04:00
Andrey Breslav af3f9250ef SafeName method added 2012-05-25 22:58:38 +04:00
Andrey Breslav 73dab58bc7 Type projection is not a declaration 2012-05-25 20:40:05 +04:00
Dmitry Jemerov 8b00bb1c52 rethrow ProcessCanceledException 2012-05-25 18:11:26 +02:00
Dmitry Jemerov e78e5f58cd rethrow ProcessCanceledException 2012-05-25 17:26:54 +02:00
Andrey Breslav 7ce4d427f0 Sort out root namespace names 2012-05-25 18:58:23 +04:00
Dmitry Jemerov ff7be5b7c3 don't increment out-of-code-block modification count for changes that are not in Kotlin files 2012-05-25 15:42:45 +02:00
Andrey Breslav ab82049287 MutableDeclarationDescriptor removed 2012-05-25 17:09:48 +04:00
Andrey Breslav 3c0c08c665 Base class for class descriptors extracted.
Will be used for lazy resolve
2012-05-25 16:58:46 +04:00
Andrey Breslav 4d0a07f772 Missing annotation added 2012-05-25 16:58:46 +04:00
Stepan Koltsov c38f19dbd9 unconditional assertion, helpful message 2012-05-25 15:07:54 +04:00
Svetlana Isakova f03ce0795e KT-2096 Abstract property with no type specified causes compiler to crash
#KT-2096 fixed
2012-05-25 14:04:32 +04:00
Dmitry Jemerov 2f32e9c60d map intersection type to its common supertype 2012-05-24 17:58:00 +02:00
Dmitry Jemerov fb5fd47591 remove try/finally which leads to masking of exceptions occurring during generation of stub class [r=max] 2012-05-24 17:34:47 +02:00
Dmitry Jemerov 4bf6a46afb it helps to write what you read 2012-05-24 16:20:35 +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
Svetlana Isakova 3fe9a8beca removed TypeUtils.FORBIDDEN constant 2012-05-24 12:34:04 +04:00
Svetlana Isakova 0fd882741b function invocation with only type parameters prohibited 2012-05-23 22:04:22 +04:00
Svetlana Isakova b22a7dbf99 KT-2014 Better diagnostic when using property syntax to call a method
#KT-2014 fixed
2012-05-23 21:53:17 +04:00
Evgeny Gerashchenko 7b8602469e Removed unused PathUtil.getAltHeadersRoots() 2012-05-23 17:35:24 +04:00
Evgeny Gerashchenko bf62877e2b Replaced Usage of PathUtil.jarFileToVirtualFile() to PathUtil.jarFileOrDirectoryToVirtualFile(), removed the former. 2012-05-23 17:35:24 +04:00
Evgeny Gerashchenko 74a63c9b9d Added PathUtil.jarFileOrDirectoryToVirtualFile() method. 2012-05-23 17:15:43 +04:00
Evgeny Gerashchenko 30ede72c32 Fixed typo 2012-05-23 17:15:27 +04:00
Evgeny Gerashchenko ea36cf9fb0 Reverted all changes related to renaming jdkHeaders to altHeaders. 2012-05-23 17:05:09 +04:00
Alexander.Podkhalyuzin b9267dc7cf Fixed KT-2071: Cannot Introduce Variable from function literal. 2012-05-23 15:58:55 +04:00
Andrey Breslav 59b533ccd3 Method name fixed 2012-05-23 14:33:34 +04:00
Svetlana Isakova f58d0193eb test for KT-1878 Support 'invoke' functions short way invocation 2012-05-23 12:50:19 +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
Dmitry Jemerov 88c4778055 rename Kotlin methods used in Java code 2012-05-22 19:09:39 +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