Commit Graph

21287 Commits

Author SHA1 Message Date
Denis Zharkov b1de2066c7 Add quickfixes inserting explicit delegation calls
#KT-6963 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov d0c72c2c3d Mark value arguments in case of empty delegation call
It's useful for quickfixes for these diagnostics
2015-03-27 16:09:41 +03:00
Denis Zharkov 1a2167e062 Minor, always report diagnostics on callee expression
As these kinds of diagnostic always have non-empty callee expression
2015-03-27 16:09:41 +03:00
Denis Zharkov 555f9e7c06 Minor, move isEmpty, isCallToThis to JetConstructorDelegationCall 2015-03-27 16:09:41 +03:00
Denis Zharkov 023e1a13a9 Do not try to detect cycles if delegation call resolution is unsuccessful 2015-03-27 16:09:41 +03:00
Denis Zharkov 9da88bbd0f Check if element is valid before checking it's writable
Otherwise it may lead to exception
2015-03-27 16:09:41 +03:00
Denis Zharkov 7aa2642a2b Unify reporting resolution errors for empty delegation calls
- Always report "There is no applicable constructor for call without arguments in superclass"
  under `constructor` keyword by replacing default TracingStrategy
- Remove positioning strategy used for reporting non-applicable
  for empty delegation calls

 #KT-6971 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov 683bc4709f Add test case: 'platformStatic' on constructors 2015-03-27 16:09:41 +03:00
Denis Zharkov ce3bf423ad Prohibit 'native' annotation on constructors
Currently doesn't work for primary ones

 #KT-7000 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov 29b03e8175 Report illegal modifiers on secondary constructors 2015-03-27 16:09:41 +03:00
Denis Zharkov 66023e6f31 Prohibit platformName on secondary constructor
#KT-6999 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov 8aa4e9bd94 Report error for inappropriate modifiers usages 2015-03-27 16:09:40 +03:00
Denis Zharkov 01e5ee718f Allow secondary constructors without body
#KT-6967 Fixed
2015-03-27 16:09:40 +03:00
Alexander Udalov 3f0541924f Revert "Fix byte array memory leak from MemoryBasedClassLoader"
This reverts commit 58b033d9fb.
2015-03-27 15:28:52 +03:00
Alexey Sedunov dcfefb0847 Extract Function: Do not extract extension function reference as parameter 2015-03-26 23:11:51 +03:00
Alexey Sedunov 4ec1b9971f Parser: Do not produce JetQualifiedExpression without receiver
#KT-7122 Fixed
2015-03-26 23:11:50 +03:00
Stanislav Erokhin cbcd2c3cce Fixed formatter for function expression 2015-03-26 22:08:46 +03:00
Stanislav Erokhin daa437b535 Fix JetTreeVisitor for file case 2015-03-26 22:08:46 +03:00
Stanislav Erokhin faf7922884 Migrate AddInitKeywordFix & ClassObjectToDefaultObjectFix to JetWholeProjectModalAction 2015-03-26 22:08:46 +03:00
Stanislav Erokhin f40b503454 Create DeprecatedLambdaSyntaxFix for whole project 2015-03-26 22:08:45 +03:00
Stanislav Erokhin 3fd8c5e980 Minor. Divide method moveInsideParenthesesAndReplaceWith 2015-03-26 22:08:45 +03:00
Alexander Udalov 58b033d9fb Fix byte array memory leak from MemoryBasedClassLoader
40 Mb of bytes of preloaded compiler classes during the compilation become 16
Mb after this change
2015-03-26 21:42:05 +03:00
Alexander Udalov 30916e37ce Move bootstrap runtime copying to 'prepare-dist' to fix dist-quick 2015-03-26 21:38:05 +03:00
Alexander Udalov fd48b4dd04 Minor, drop unneeded code in findClassInJava
JavaClassFinderImpl already checks that it never finds light classes and
ReflectJavaClassFinder can't ever find them
2015-03-26 21:34:53 +03:00
Pavel V. Talanov f3191a39a5 Do not store instances of Application in strong static references
Introduce ExtensionProvider which takes care of caching application using weak reference
Fixes a memory leak for scenarios with application being substituted (Jps build does that when compiling multiple modules)
2015-03-26 21:09:11 +03:00
Dmitry Jemerov 827d9d48c1 Correctly apply SAM conversions in superclass constructor calls
#KT-5452 Fixed
2015-03-26 19:03:42 +01:00
Evgeny Gerashchenko da9fe7d9a9 Updated URL pattern for IDEA EAP page 2015-03-26 18:28:08 +03:00
Yan Zhulanow 1338e0cd0a Replicate IDEA plugin versions only on TeamCity build 2015-03-26 16:12:10 +03:00
Michael Nedzelsky 7b15f9c7c9 JS: add message to assert in JsLibraryStdDetectionUtil 2015-03-26 15:50:27 +03:00
Michael Nedzelsky 2f7ebf677f JS: allow js-file in library-files for cli compiler 2015-03-26 00:22:19 +03:00
Pavel V. Talanov b2d0b2ebc9 Fix erroneous squash: isOnTeamcity check actually does something 2015-03-25 21:39:31 +03:00
Pavel V. Talanov 929d4644b5 Output compilation time as teamcity statistics in jps plugin 2015-03-25 20:01:23 +03:00
Dmitry Jemerov bb1410b20a generate more correct bytecode for casting Unit to other types 2015-03-25 17:51:04 +01:00
Pavel V. Talanov 9d618ca767 Replace OBJECT$ usages in code and test data 2015-03-25 18:28:01 +03:00
Pavel V. Talanov ed218c473a Get rid of 'class object' usages in code and builtins
Replace some comments and library usages as well
2015-03-25 18:28:00 +03:00
Natalia Ukhorskaya 67f84c0f76 Update to IDEA 14.1 (141.177.4) 2015-03-25 17:44:35 +03:00
Natalia Ukhorskaya a92022edcd Minor: replace deprecated function calls 2015-03-25 17:44:05 +03:00
Dmitry Jemerov a33162ba46 add build-docs.xml to ant.xml 2015-03-25 15:32:43 +01:00
Dmitry Jemerov a19fadf454 add Module.md to docs build script 2015-03-25 15:32:42 +01:00
Dmitry Jemerov 389498eb91 Merge pull request #621 from JetBrains/rr/yole/kt4142
Regression tests for some more obsolete issues in the JVM backend
2015-03-25 13:28:38 +01:00
max-kammerer c35dbb2746 Merge pull request #617 from JetBrains/rr/yole/number-toint
when generating coercion, take into account the original type of the exp...
2015-03-25 15:19:05 +03:00
Ilya Gorbunov a34e15e157 Rename methods: trimLeft/Right -> trimStart/End, padLeft/Right -> padStart/End 2015-03-25 03:26:31 +03:00
Ilya Gorbunov 25cfd36e7c drop, take: combine implementations for Collections, Lists and Iterables.
slice: predict length of resulting list.
2015-03-25 03:26:18 +03:00
Ilya Gorbunov 4a7918b0a1 Add takeLast method for String, lists and arrays.
Check the parameter n in drop, take and takeLast methods.
2015-03-25 03:26:06 +03:00
Ilya Gorbunov 05b5afcb94 Add removePrefix, removeSuffix, removeEnclosing methods.
Deprecate trimLeading/trimTrailing/trim(String) methods in favor of new ones.
2015-03-25 03:25:53 +03:00
Ilya Gorbunov 0484d3bf2f Imperative trim implementation to prevent double lambda expansion in inline function. 2015-03-25 03:25:40 +03:00
Ilya Gorbunov 5b2a5c78ca Fix js-stdlib compilation and tests. 2015-03-25 03:25:27 +03:00
Ilya Gorbunov 4c58f4ec20 Add removeRange method.
Breaking change in replaceRange(IntRange, String) method: the end index of the range now is included in the part being replaced.
2015-03-25 03:25:14 +03:00
Ilya Gorbunov ba15e5b295 Trimming and padding methods.
Kinda breaking change: Char.isWhitespace treats non-breaking spaces as whitespace too to match the Unicode definition of whitespace.
2015-03-25 03:25:01 +03:00
Ilya Gorbunov 0580039ded Provide additional string conversion methods to match missing java.lang.String constructors.
Fixes KT-5019
2015-03-25 03:24:48 +03:00