Denis Zharkov
741c9febe2
Modify various usages of old PSI structure of primary ctor
2015-03-31 20:20:22 +03:00
Denis Zharkov
cafa018066
Parsing: Drop redundant parameter as it always has the same value
2015-03-31 20:20:22 +03:00
Denis Zharkov
af2bcfb524
Parse primary constructor into separate PSI element
2015-03-31 20:20:22 +03:00
Evgeny Gerashchenko
59f939d9ef
Do check isCheapEnoughToSearch for companion objects, but just ignore ZERO_OCCURENCES outcome.
2015-03-31 20:08:05 +03:00
Evgeny Gerashchenko
83f2a08708
Added test with moving file used in Java to other package.
2015-03-31 18:14:00 +03:00
Evgeny Gerashchenko
a4d2d6506c
Removing import of removed package facade.
2015-03-31 18:13:21 +03:00
Evgeny Gerashchenko
f789933683
Fixed updating Java references on moved Kotlin top-level callables.
2015-03-31 18:13:20 +03:00
Evgeny Gerashchenko
5b05c60858
Minor. Code cleanup.
2015-03-31 18:13:20 +03:00
Mikhail Glukhikh
620b7954ac
Tests for already working KT-3993 and KT-5427. These test cases pass at least since M11
2015-03-31 17:15:46 +03:00
Mikhail Glukhikh
9c1551bca9
Implementation of smart casts for public / protected immutable properties that are not open and used in the same module.
...
DataFlowValueFactory and its environment refactoring: containing declaration is added into factory functions
as an argument and used to determine identifier stability. A few minor fixes. #KT-5907 Fixed. #KT-4450 Fixed. #KT-4409 Fixed.
New tests for KT-4409, KT-4450, KT-5907 (public and protected value properties used from the same module or not,
open properties, variable properties, delegated properties, properties with non-default getter).
Public val test and KT-362 test changed accordingly.
2015-03-31 16:19:03 +03:00
Valentin Kipyatkov
0b27d9181a
Minor code corrections after review
2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
d5326031c4
J2k: for through range with != comparison is also recognized
2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
11b4e66fd0
Better tests
2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
c66b20b204
KT-6795 J2K: When converting to type with projections, omit redundant use-site projections
...
#KT-6795 Fixed
2015-03-31 16:10:24 +03:00
Valentin Kipyatkov
7e50f72d5b
J2K: no call to super constructor in the header of class when there is no primary constructor
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
c57f2b10d6
J2K: use of emptyList, emptySet and emptyMap
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
1465418c2b
KT-7151 Convert 'System.out.println()' to just 'println()'
...
#KT-7151 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
39f94d7d45
KT-6044 J2K: Convert numeric float literals to 0.2f instead of 0.2.toFloat() + more fixes related to literals and type transformations
...
#KT-6044 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
5454f7053f
KT-6349 J2K: Static members of enums should be converted to class object members
...
#KT-6349 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
f19eb20803
KT-5287 J2K: Convert class with private constructor and static functions to "object" instead of class with "class object"
...
#KT-5287 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
6dbb13c32d
KT-6798 J2K: Needless use of run {} function after converting for-loop
...
#KT-6798 Fixed
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
46193f3ef7
KT-5692 Java to Kotlin conversion: convert int range loops in reverse order + a few more improvements
...
#KT-5692 Fixed
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
16295b875b
Removed methods not need anymore
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
fb4075cc2f
J2K: inlining intermediate variable after removing type cast
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
e31648a4b6
KT-6476 Kotlin J2K converter fails with for-loops with continues
...
#KT-6476 Fixed
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
2d4055e921
J2K: generating of elvis operators instead of if's
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
0932cb4606
J2K: auto-replacing of if's with safe access
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
555ae1ebd3
J2K: no redundant type casts
...
#KT-6794 Fixed
2015-03-31 16:10:21 +03:00
Valentin Kipyatkov
7d92559d13
J2K: generating "!is" instead of !(.. is ..)
2015-03-31 16:10:21 +03:00
Valentin Kipyatkov
108a1f872c
J2K: use of new syntax for class intialization blocks
2015-03-31 16:10:21 +03:00
Stanislav Erokhin
4bfdcae972
Fixed ideaSDK download logic.
2015-03-31 15:43:01 +03:00
Ilya Gorbunov
536a977f5c
indexOfAny, lastIndexOfAny return an index value only (similar to indexOf, lastIndexOf).
...
findAnyOf, findLastAnyOf introduced to cover the case when an index and a matched string value is required.
2015-03-31 02:25:19 +03:00
Ilya Gorbunov
bb8df6be4b
Restore startsWith and endsWith overloads taking single char to keep binary compatibility with markdown parser.
2015-03-31 02:25:04 +03:00
Ilya Gorbunov
b3165ac771
Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path.
2015-03-31 02:24:50 +03:00
Ilya Gorbunov
b10d869cd7
indexOf*, split, startsWith, endsWith: JS implementation
2015-03-31 02:24:35 +03:00
Ilya Gorbunov
d724ce3f7e
Add code generation for asList methods in js.libraries.
2015-03-31 02:24:20 +03:00
Ilya Gorbunov
abdac27b61
Modify split(String) usages within stdlib.
2015-03-31 02:24:06 +03:00
Ilya Gorbunov
6f7a4d8429
Add methods for String: indexOfAny, lastIndexOfAny, indexOf, lastIndexOf, rangesDelimitedBy, splitToSequence, split, lineSequence, lines.
...
Add methods for Char: toUpperCase, toLowerCase.
Add an optional boolean parameter ignoreCase to the methods Char.equals, String.equals, String.startsWith, String.endsWith, String.contains.
2015-03-31 02:23:52 +03:00
Alexey Sedunov
e9e8be5b4e
Create from Usage: Generate secondary constructors by delegator to super-calls
2015-03-30 21:10:29 +03:00
Alexey Sedunov
e8b4c43011
Create from Usage: Generate secondary constructors by delegation calls
2015-03-30 21:10:28 +03:00
Alexey Sedunov
9c0bcee9a3
Create from Usage: Generate secondary constructors by call expressions
2015-03-30 21:10:27 +03:00
Alexey Sedunov
15dddf362e
Create from Usage: Secondary constructor support
2015-03-30 21:10:25 +03:00
Alexey Sedunov
11675322ee
Find Usages: Fix exception in the search of class with default parameters in primary constructor
2015-03-30 21:10:24 +03:00
Alexander Udalov
0a93cfc9c0
build.xml: drop 'generate.assertions' option
...
It was error-prone, not very useful (only a couple seconds saved on a 3min
build), and in fact did not work since 5194310d , because <skip> element was
failing inside the default javac
2015-03-30 20:20:46 +03:00
Alexander Udalov
52292fc360
Fix build, add dependencies idea-analysis, idea -> deserialization
2015-03-30 20:15:12 +03:00
Alexander Udalov
7742fb52e6
Minor, move builtins-serializer sources to correct package
2015-03-30 19:44:21 +03:00
Alexander Udalov
d2ef040bcb
Fix occasional reflection test failure
...
The cache in moduleByClassLoader.kt contains weak references to instances of
RuntimeModuleData. However, prior to this change no one else had any _strong_
reference to the corresponding RuntimeModuleData: KClassImpl depends on the
ModuleDescriptor almost directly. Therefore the weak references were sometimes
garbage collected and a new module was constructed for a new reflection object,
which resulted in broken equality between two reflection objects.
No test added because it was rather hard to come up with (and, more
importantly, to support) a test case.
2015-03-30 19:44:19 +03:00
Alexander Udalov
d59e1ad7ac
Minor, add toString() to WeakClassLoaderBox for debug
2015-03-30 19:44:18 +03:00
Alexander Udalov
32c3bb8c7f
Extract module 'deserialization' out of 'serialization'
...
'deserialization' stays in core because it's needed both in compiler and
reflection, but 'serialization' is used only in the compiler
2015-03-30 19:44:17 +03:00
Alexander Udalov
d09e0e73fa
Rename NameSerializationUtil, move serialization-related code there
2015-03-30 17:22:07 +03:00