Alexander Udalov
35a4aeeeba
CLI tests: add LauncherScriptTest instead of generated 'kotlinc' script tests
...
The compiler behavior on test data in compiler/testData/cli is already tested
with CliTestGenerated, which is 4x faster and does not require to rebuild the
compiler jar with 'ant dist'. Leave only several simple tests to check that
'kotlinc', 'kotlinc-jvm' and 'kotlinc-js' scripts work
2016-02-17 20:52:00 +03:00
Alexander Udalov
04ccca8adc
CLI tests: convert to generated
2016-02-17 20:52:00 +03:00
Alexander Udalov
a53166b732
CLI tests: rename CliBaseTest to AbstractCliTest
2016-02-17 20:51:59 +03:00
Alexander Udalov
762504d5e4
CLI tests: convert to JUnit 3
2016-02-17 20:51:58 +03:00
Alexander Udalov
f74988cbec
CLI tests: get rid of CliCommonTest
2016-02-17 20:51:58 +03:00
Alexander Udalov
3b22483fb2
CLI tests: move file existance checks to config files
2016-02-17 20:51:57 +03:00
Alexander Udalov
7a6cc71454
CLI: disable colors on platforms unsupported by jansi
...
#KT-10605 Fixed
2016-02-17 20:51:48 +03:00
Alexander Udalov
2e13377d4a
J2K ReplInterpreter: prettify
2016-02-17 20:51:11 +03:00
Alexander Udalov
5670e7f750
J2K ReplInterpreter: convert
2016-02-17 20:51:11 +03:00
Alexander Udalov
2b2c4b3610
J2K ReplInterpreter: move .java -> .kt
2016-02-17 20:51:11 +03:00
Michael Bogdanov
0283fea835
Optimize recursive string concatenation
2016-02-17 16:53:19 +03:00
Michael Bogdanov
8835b0599a
Inline preevaluated string and primitive only constants in compilation time, don't inline const references in non-annotation context, fix for KT-11025: Don't inline const val in compare instuctions
...
#KT-11025 Fixed
2016-02-17 16:53:18 +03:00
Michael Bogdanov
7c2920febe
Don't allow use standalone constants in complexExpressions, fix for KT-11043: Inconsisten result for class literal and string concatenation
...
#KT-11043 Fixed
2016-02-17 16:53:18 +03:00
Michael Bogdanov
af3437626b
Properly calculate isConst for java properties
2016-02-17 16:53:17 +03:00
Natalia Ukhorskaya
42927bb078
Make function delegated to sam adapter synthetic
2016-02-17 15:08:53 +03:00
Mikhail Glukhikh
657459ef22
Source of KNPE removed #EA-79002 Fixed
2016-02-17 11:52:49 +03:00
Alexey Sedunov
651b00c323
Pull Members Up: Always insert spaces between keywords
...
#KT-10971 Fixed
2016-02-17 11:31:46 +03:00
Alexey Sedunov
d587bb2ea6
Change Signature: Support Change Signature quick-fix for Java -> Kotlin case
...
#KT-9401 Fixed
2016-02-17 11:31:40 +03:00
Stanislav Erokhin
9781578af2
Update copyright in generated classes.
2016-02-16 20:31:15 +03:00
Stanislav Erokhin
341b251e4d
Update copyright in generated tests.
2016-02-16 18:59:10 +03:00
Mikhail Glukhikh
5def6eae5b
Correct handling of erroneous code during code extraction
2016-02-16 18:50:24 +03:00
Mikhail Glukhikh
eed4aa71db
No assertion error in getContainingPseudocode #KT-10983 Fixed
...
Also #EA-72954 Fixed
2016-02-16 18:50:20 +03:00
Mikhail Glukhikh
1bbc46729c
Effective visibility: concise diagnostic messages #KT-10761 Fixed
...
Also #KT-9760 Fixed
2016-02-16 15:58:50 +03:00
Denis Zharkov
36606fd944
Run slow flexible type assertions only in test mode
2016-02-16 12:01:13 +03:00
Denis Zharkov
961b72682a
Drop unnecessary call to substituted 'overriddenDescriptors'
2016-02-16 12:01:13 +03:00
Denis Zharkov
44148107ae
Optimize SamAdapterOverridabilityCondition
...
Do not calculate it for non-static members,
because SAM adapters only exist in static scope now
2016-02-16 12:01:13 +03:00
Denis Zharkov
9f22b17918
Optimize external overridability conditions
...
- Skip ones that can lead only to success after first success
- And vice versa
2016-02-16 12:01:13 +03:00
Denis Zharkov
1b4b8ab5db
Memoize 'JavaTypeClassifierImpl.isRaw' result
2016-02-16 12:01:12 +03:00
Denis Zharkov
d4d289c881
Optimize ResolvedCallImpl for case of empty pararameter set
2016-02-16 12:01:12 +03:00
Zalim Bashorov
c28b701ccf
JS: ignore annotation on expression when its retention is SOURCE
...
#KT-8258
2016-02-15 21:35:30 +03:00
Mikhail Glukhikh
90927cfd19
CallExpressionResolver.getQualifiedExpressionTypeInfo refactoring
2016-02-15 16:46:24 +03:00
Pavel V. Talanov
1800e5a7db
Remove some usages of Name.guess (and rename this utility to discourage new usages)
2016-02-15 13:32:42 +03:00
Pavel V. Talanov
47ceb106c7
Fix "<" or ">" in member name leading to exception
2016-02-15 13:32:41 +03:00
Jake Wharton
f713adc96e
Add support for AOSP's nullability annotations.
...
These are different than 'android.support.annotation' in that they are used on the JVM for projects within AOSP.
2016-02-15 11:32:09 +03:00
Mikhail Glukhikh
84a072b9f0
getQualifiedExpressionTypeInfo refactoring
2016-02-15 10:42:56 +03:00
Mikhail Glukhikh
88e7b728df
CallExpressionResolver: converted to Kotlin, cleanup
2016-02-15 10:42:52 +03:00
Mikhail Glukhikh
bd40d59a17
CallExpressionResolver.java --> CallExpressionResolver.kt
2016-02-15 10:42:48 +03:00
Mikhail Glukhikh
0f7284f83a
More accurate safe call handling in GenericCandidateResolver / CallExpressionResolver
...
(real receiver nullability is taken into account)
2016-02-13 10:48:12 +03:00
Mikhail Glukhikh
17593e4ef6
Call completer: safe call with nullable receiver has nullable return type #KT-11007 Fixed
2016-02-13 10:48:07 +03:00
Valentin Kipyatkov
4cd7193047
KT-11018 Ctrl + Mouse Hover shows a var as val
...
#KT-11018 Fixed
2016-02-13 10:20:20 +03:00
Valentin Kipyatkov
17ac168b33
KT-10621 Non-top level packages shown after "@" in completion
...
#KT-10621 Fixed
2016-02-13 10:20:18 +03:00
Michael Bogdanov
4f0f81155a
Weaken PRIVATE_CLASS_MEMBER_FROM_INLINE diagnostic
2016-02-12 17:24:30 +03:00
Michael Bogdanov
384d2ea0d1
Use bipush, sipush for byte and short constants
2016-02-12 11:55:21 +03:00
Anton Sukhonosenko
0073257841
Fix for KT-10313: ClassCastException with Generics
...
#KT-10313 Fixed
2016-02-12 10:53:28 +03:00
Dmitry Petrov
edf6a2142b
Check local function declarations for overload conflicts.
...
In PSI unifier tests, disable errors for tests on local functions (as irrelevant).
2016-02-12 09:54:21 +03:00
Nikolay Krasko
faba229b11
Use single constant for doNotAnalyze message
2016-02-11 17:39:51 +03:00
Pavel V. Talanov
7d98103c0c
overriddenDescriptors is empty for java static property and function declarations
...
Fake overrides are still created for java static with non-empty overriddenDescriptors
Add tests for inheriting visibility for java static members
Add test: check that java static declarations that shadow deprecated declarations should not be deprecated
Add test for corner case where "overriding" java static constant led to incorrect type in inheritor
Fix test data for existing tests
2016-02-11 14:08:14 +03:00
Pavel V. Talanov
7e78e8d8ab
Refactor: Move and rename OverridingUtil.DescriptorSink -> OverridingStrategy
2016-02-11 14:08:13 +03:00
Valentin Kipyatkov
8da01e7952
Minor
2016-02-11 12:26:22 +03:00
Dmitry Petrov
aed2f2b993
Property vs classifier conflict.
...
TODO get rid of duplicate diagnostics
(looks like OverloadResolver and DeclarationResolver are partially redundant; refactor them).
2016-02-11 10:32:46 +03:00