Commit Graph

11313 Commits

Author SHA1 Message Date
Natalia Ukhorskaya 992ccccde0 Merge pull request #295 from nskvortsov/master
Fix to handle empty kotlin compilation output
2013-08-14 03:57:46 -07:00
Nikita Skvortsov f99f4bcf22 fix to handle empty kotlin compilation output 2013-08-14 14:01:24 +04:00
Nikita Skvortsov 4302cbd816 minor fix improvements and integration test 2013-08-13 17:28:17 +04:00
Natalia.Ukhorskaya 04e397b850 Small syntax improvement 2013-08-13 16:30:40 +04:00
Nikita Skvortsov 7cb8e76ed7 fix duplicates in classpath 2013-08-13 16:30:39 +04:00
Alexey Sedunov 497d3c6706 Simplify "Find Usages" test data, Move configuration options to test files 2013-08-13 15:26:24 +04:00
Alexey Sedunov 76c81aa3f0 Add support of extension search 2013-08-13 15:26:08 +04:00
Alexey Sedunov 1881d17b67 Add Kotlin delegate for Java safe delete 2013-08-13 15:25:23 +04:00
Alexey Sedunov ced288452c Implement "Find usages with options" for kotlin functions 2013-08-13 15:25:04 +04:00
Alexey Sedunov 64a7e93900 Allow user to find usages of overriden methods 2013-08-13 14:53:53 +04:00
Alexey Sedunov 76d8e8b95d Introduce parent class for "find usage" handlers 2013-08-13 14:53:53 +04:00
Alexey Sedunov 4ee9783101 Extract search action name 2013-08-13 14:53:52 +04:00
Alexey Sedunov eb1d458807 Move checkSuperMethods and format methods to RefactoringUtil 2013-08-13 14:53:51 +04:00
Alexey Sedunov ea7a377bea Find usages test: Move test data out of code 2013-08-13 14:53:50 +04:00
Natalia Ukhorskaya 341174534a Merge pull request #293 from nskvortsov/master
code polishing
2013-08-13 03:25:33 -07:00
Erokhin Stanislav adcb359c38 JS backend: added enum class support. 2013-08-12 21:48:18 +04:00
Erokhin Stanislav 3b5d5a4a95 JS backend: added identityEquals support. 2013-08-12 21:48:18 +04:00
Erokhin Stanislav 48cd8f4df4 JS backend: Fix override val property in ecma5. 2013-08-12 21:48:18 +04:00
Mikhael Bogdanov c9215ed8a5 KT-2784 VerifyError when passing a value to a class object's super type constructor
#KT-2784 Fixed
2013-08-12 18:58:09 +04:00
Zalim Bashorov b46e0361c5 Use the system path separator character in compiler messages.
Fix for CliTest.
2013-08-12 13:37:44 +04:00
Andrey Breslav be8045a392 Adding info to an exception 2013-08-12 13:24:20 +04:00
Andrey Breslav 3617e418c2 Fixing guava 14 library and sources 2013-08-09 17:32:24 +04:00
Nikolay Krasko a18875aba4 Fix local file uri for windows 2013-08-09 15:43:52 +04:00
Erokhin Stanislav 9d1ae5e3d9 JS backend: Add class object support. 2013-08-09 14:59:09 +04:00
Nikita Skvortsov 6ce92f6d0d code polishing 2013-08-09 14:36:07 +04:00
develar e786e62fd7 JS backend: fixed variable capturing in extension functions.
Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.

(cherry picked from commit f8f1895)
2013-08-09 14:29:55 +04:00
develar 786652940d JS backend: use javascript Object as base class for object by default (when there are not any parents).
It's workaround for compatibility with Google Chrome Extension API because sometimes they calls Object.prototype methods.

(cherry picked from commit 9959a1e)
2013-08-09 14:29:55 +04:00
develar bc4e0e212a JS backend: added generation @lends JsDoc annotation.
For more information about @lends see https://code.google.com/p/jsdoc-toolkit/wiki/TagLends

(cherry picked from commit 1269911)
2013-08-09 14:29:55 +04:00
develar a53b9e99ad JS backend: removed some useless util methods. 2013-08-09 14:29:55 +04:00
Zalim Bashorov df11dbe7a5 JS backend: added tests check the closure fields when use it from nested functions in method. 2013-08-09 14:29:55 +04:00
develar b9396ff7e8 JS backend: detect outer class if used in child local fun.
Fix closure fields when use it from nested functions in method.

(cherry picked from commit 20eea36)
2013-08-09 14:29:55 +04:00
develar 632d878877 JS backend: use native function for parseInt.
Add radix parameter to parseInt.

(cherry picked from commit b6be98d)
2013-08-09 14:29:55 +04:00
develar 33d576c31f JS backend: format builder.kt according to code style.
(cherry picked from commit 7c2a2cd)
2013-08-09 14:29:54 +04:00
develar 222c05dd00 JS backend: made Json::get and Json::set intrinsic.
(cherry picked from commit b1692e1)
2013-08-09 14:29:54 +04:00
develar 8867c7a33f JS backend: fixed Map set/get -- should work with jet Map/MutableMap.
Added to PatternBuilder the ability to check that method has been overridden.
2013-08-09 14:29:54 +04:00
develar 421c896416 JS backend: removed unused extension function List::equals. 2013-08-09 14:29:54 +04:00
develar 3e2d030e5d JS backend: removed parameters from PatternBuilder#receiverExists. 2013-08-09 14:29:54 +04:00
Zalim Bashorov 185ec381e3 JS backend: added tests that checks constructing ArrayList with capacity. 2013-08-09 14:29:54 +04:00
develar 1ddf60ef0a JS backend: don't search function intrinsic twice.
Use thashmap instead of hasmap -- less memory usage.

(cherry picked from commit e617f8f)
2013-08-09 14:29:53 +04:00
develar 4e07c60541 JS backend: fixed AbstractCollection#equals.
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +04:00
develar 411caef8ce JS backend: cosmetic changes in javautil.kt:
- added some methods to AbstractList
 - fixed codestyle
 - moved up LinkedList declaration
2013-08-09 14:29:53 +04:00
develar 1435bdb7c7 JS backend: made some exceptions more JS idiomatic -- translate Exception to Error, IndexOutOfBounds and IndexOutOfBoundsException to RangeError. 2013-08-09 14:29:53 +04:00
develar f5feb5e729 JS backend: added Kotlin.toString, Kotlin.arrayToString, Kotlin.arrayEquals and shim for Array.isArray to kotlin_lib.
Now jet.String will be translated to Kotlin.toString.
2013-08-09 14:29:53 +04:00
develar 50739b465e JS backend: move common code to CompositeFIF. 2013-08-09 14:29:53 +04:00
develar 7ba0f0eb33 JS backend: refactoring
- add KotlinFunctionIntrinsic;
- remove CallStandardMethodIntrinsic
- rename TranslationUtils#generateCallArgumentList to TranslationUtils#generateInvocationArguments;
- add to PatternBuilder#pattern with root(prefix) parameter.
2013-08-09 14:29:53 +04:00
develar 2dbfbfc7fb JS backend: fixed codestyle for TopLevelFIF.java.
(cherry picked from commit 6335bc4)
2013-08-09 14:29:52 +04:00
develar bf8d5d797a JS backend: refactoring the code for using special implementation of Map/Set for primitives (Int, String etc.) -- made it intrinsic.
Properly implementation for KT-2026.

(cherry picked from commit 6335bc4)
2013-08-09 14:29:52 +04:00
develar 1fab7346cc JS backend: don't bind this if it is not need -- skip methods defined in class, for example Int::plus
(cherry picked from commit e2334f7)
2013-08-09 14:29:52 +04:00
develar 995f898116 JS backend: added String.isEmpty
(cherry picked from commit 6cf1761)
2013-08-09 14:29:52 +04:00
develar 7c18ab3ca8 JS backend: cleanup strings code.
Added String.size and String.length().
2013-08-09 14:29:52 +04:00