Commit Graph

2064 Commits

Author SHA1 Message Date
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
pTalanov 6a24d0cf6d Package .js library file into plugin 2012-05-22 17:20:50 +04:00
pTalanov 18ce0ac722 Introduce SetUpJsModuleAction
Refactor PathUtil
2012-05-22 13:51:48 +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 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
Stepan Koltsov 724f69bced jvm backend: refactoring artifact 2012-05-21 19:18:22 +04:00
Svetlana Isakova c2385407e0 KT-1942 Package local members from Java are visible in subclasses
#KT-1942 fixed
2012-05-21 18:32:19 +04:00
Stepan Koltsov 527ce1ad93 bring variable into narrower scope 2012-05-19 00:37:27 +04:00
Stepan Koltsov c9ff920f8a JetDiagnosticsTest: no hardcoded paths and .jet extension 2012-05-19 00:36:27 +04:00
Stepan Koltsov 4cf2e7bd3d ClassCodegen is stateless, put it into context 2012-05-19 00:23:59 +04:00
James Strachan 1da55747ff Merge branch 'master' of github.com:JetBrains/kotlin 2012-05-18 19:50:45 +01:00
James Strachan cf6622b4fa added workaround to maven compiler bug; we may want to throw an exception though if its really a problem 2012-05-18 19:50:27 +01:00
James Strachan 06f8e27d78 added better validation to throw more meaningful error message if a file is null 2012-05-18 19:48:47 +01:00
Evgeny Gerashchenko 93b8a5ed5e Fixed KT-2019 Unit test runner: navigation by double click from a test to source code does not work
#KT-2019 fixed
2012-05-18 20:55:56 +04:00
Svetlana Isakova 9c9149d3e6 ExpressionTyping* refactoring
removed expectedReturnType
inlined unnecessary checkFunctionReturnType functions
2012-05-18 16:37:25 +04:00
Stepan Koltsov cfa2425f3d JetParsingTest: allow custom file extensions, simplify paths 2012-05-18 15:27:03 +04:00
Svetlana Isakova 2d601cf4a2 Frontend part of KT-910 Type of try/catch/finally 2012-05-18 15:20:37 +04:00
Svetlana Isakova b49fa2ab82 KT-1977 Wrong 'unused expression' in catch
#KT-1977 fixed
2012-05-18 15:19:38 +04:00
pTalanov c8fe0080c7 Fix compilation for maven build 2012-05-16 17:43:12 +04:00