Commit Graph

58658 Commits

Author SHA1 Message Date
Mikhail Glukhikh 1e4f07ebc7 FIR: expect getClassLikeSymbolByFqName to return null for local classes 2019-10-29 16:27:40 +03:00
Mikhail Glukhikh a13ae08b52 FIR: add classifiers to local scopes, process local class symbols correctly 2019-10-29 16:27:40 +03:00
Vyacheslav Gerasimov aa2765bab8 Build: Setup pom for KotlinPlugin maven publication 2019-10-29 15:32:32 +03:00
Nikolay Krasko f5cdaafeb0 Fix compilation errors in QuickFixMultiModuleTestGenerated 2019-10-29 15:04:13 +03:00
Alexander Udalov df4ab4ed81 Add JVM bytecode target version 13
#KT-34119 Fixed
2019-10-29 12:54:24 +01:00
Georgy Bronnikov 1354de1780 JVM_IR: stylistic, use transform instead of add/remove
In InterfaceDeclarationLowering, functions are being replaced by
redirections to default implementations. Use `transform`, as suggested
by @pyos.
2019-10-29 14:42:35 +03:00
Toshiaki Kameyama 68ea677cc4 Import quick fix: support extension iterator function
#KT-34303 Fixed
2019-10-29 18:35:14 +07:00
Dmitry Savvinov 3abfe59d75 Deduplicate incompatible actual descriptors
Otherwise, we might get false positive AMBIGUOUS_ACTUALS due to one and
the same descriptor appearing multiple times in a list
2019-10-29 14:28:41 +03:00
Dmitry Savvinov 9198b7a039 Add test on weakly incompatible actual in intermediate source-set 2019-10-29 14:28:41 +03:00
Dmitry Savvinov 2c6fbb6ece Fix dependsOn module names
Use Gradle Project IDs instead of names, because for composite Gradle
builds module names are appended with some additional prefixes, which
causes mismatch
2019-10-29 14:27:38 +03:00
LepilkinaElena b37dc32e03 Kotlin/Native performance gradle plugin (#2713) 2019-10-29 14:23:50 +03:00
Nikolay Krasko 7160653546 Fix KotlinConfidenceTest in 193 2019-10-29 13:47:14 +03:00
Nikolay Krasko 8d50aea471 Allow to use mutations from several files 2019-10-29 13:45:04 +03:00
Nikolay Krasko 620898c73e Use local single-thread cached value instead of thread locals (KT-28940)
It looks like thread locals are not needed here as their global state
is not utilized but creates troubles with memory management.
2019-10-29 13:40:34 +03:00
Nikolay Krasko 02f9b255e6 Clean using thread local in all threads (KT-28940) 2019-10-29 13:40:34 +03:00
Dmitry Gridin 587b0de2b8 RemoveExplicitTypeIntention: fix false positive for type aliases
#KT-33902 Fixed
2019-10-29 17:26:59 +07:00
Dmitry Gridin 6ea82a0c7d MoveMember: cleanup code 2019-10-29 17:26:34 +07:00
Dmitry Gridin 18aa9ffce8 expectActualUtil: introduce runCommandOnAllExpectAndActualDeclaration function 2019-10-29 17:26:34 +07:00
Dmitry Gridin 9aa49e61fe expectActualUtil: add parameter useOnSelf to runOnExpectAndAllActuals 2019-10-29 17:26:34 +07:00
Dmitry Gridin 4285f63bcc ChangeVisibilityFix: cleanup code 2019-10-29 17:26:34 +07:00
Dmitry Gridin 9c61f42121 ChangeVisibilityModifierIntention: should affect all actual/expect declarations
#KT-29737 Fixed
2019-10-29 17:26:34 +07:00
Dmitry Gridin 13e98e712e RedundantLetInspection: fix false negative for references
#KT-34603 Fixed
2019-10-29 17:25:50 +07:00
Dmitry Gridin 5fc70f6cfd RedundantLetInspection: fix false positive for inner lambda expression
#KT-25271 Fixed
2019-10-29 17:25:50 +07:00
Dmitry Gridin 5d16753285 ImportFix: add support for WRONG_NUMBER_OF_TYPE_ARGUMENTS
#KT-23834 Fixed
2019-10-29 17:25:17 +07:00
Dmitry Gridin e14d589279 KotlinInternalInJavaInspection: fix false positive for java test module
#KT-17659 Fixed
2019-10-29 17:24:46 +07:00
Dmitry Gridin 865e1bf631 KotlinInternalInJavaInspection: cleanup code 2019-10-29 17:24:46 +07:00
Dmitry Gridin 81f3a98f49 Convert ConvertTwoComparisonsToRangeCheck intention to inspection
Relates to #KT-17310
2019-10-29 17:24:21 +07:00
Alexander Udalov 8e4c7ad65d Merge pull request #2727 from pyos/fix-synthetic-accessors-v101
JVM_IR: add accessors for protected members in divergent hierarchies
2019-10-29 11:10:58 +01:00
Dmitriy Novozhilov 3658bee253 [FIR] Fix testdata related to callable references 2019-10-29 13:03:13 +03:00
Dmitriy Novozhilov 0d15ff1ddd [FIR] Introduce FirSourceElement instead of FirElement as source in fir nodes 2019-10-29 13:03:13 +03:00
Dmitriy Novozhilov b93357be48 [FIR] Support assignment operators 2019-10-29 13:03:13 +03:00
Dmitriy Novozhilov 6298889358 [FIR] Add forgotten exhaustiveness checking for erroneously resolved when 2019-10-29 13:03:13 +03:00
Dmitriy Novozhilov 7e55960943 [FIR] Support Conditional effects 2019-10-29 13:03:13 +03:00
Dmitriy Novozhilov 57f1eac9a8 [FIR] Support CallsInPlace effects 2019-10-29 13:03:12 +03:00
Dmitriy Novozhilov fd852ec07d [FIR] Add deserialization of contracts 2019-10-29 13:03:12 +03:00
Dmitriy Novozhilov 18c3d1c140 [FIR] Add contract description classes to fir 2019-10-29 13:03:12 +03:00
Roman Golyshev 3661dedacf KT-31762: Fix completion in enum entries constructors
- The issue was caused by incorrect parsing of enum entry because of `$` in the `KotlinCompletionContributor::DEFAULT_DUMMY_IDENTIFIER`
  - Incorrect parsing caused arguments next to completed one to be recognized as another enum entries
- Change `KotlinCompletionContributor::isInClassHeader` to accept classes without bodies, so identifier without `$` is used inside enum entries constructors
- ^KT-31762 Fixed
2019-10-29 12:35:13 +03:00
Ilya Goncharov 042100ea77 [Gradle, JS] Disable puppeteer downloading Chrome 2019-10-29 12:03:49 +03:00
Mikhael Bogdanov 63b115abb6 Workaround for KT-34656: temporary disable assertion 2019-10-29 09:48:49 +01:00
Mark Punzalan de333c18fc JVM_IR: Enable loopVarInterval and forInReversedCollectionIndices
bytecode text tests.
2019-10-29 07:43:37 +01:00
Natalia Selezneva 934cbcbbec Use more abstract class for gradleModuleBuilder
In IDEA 201.* another class is in super class list
^KT-34463 Fixed
2019-10-29 09:11:12 +03:00
Vladimir Dolzhenko 46d843643d Fixed BoxJsTestGenerated.Main due to nullable arguments in main method 2019-10-28 16:42:14 +01:00
Steven Schäfer 2043dd8a10 JVM IR: Respect extension receiver parameter type in AddContinuationLowering 2019-10-28 18:34:06 +03:00
Steven Schäfer 184c83bcb0 JVM IR: Fix type of IrReturn in AddContinuationLowering 2019-10-28 18:34:06 +03:00
Mark Punzalan b4d2eae12d Add test data generator for stepped progression box tests. 2019-10-28 15:26:38 +01:00
Mark Punzalan 1738c2d4f6 Invoke GenerateInRangeExpressionTestData and
GeneratePrimitiveVsObjectEqualityTestData during
:compiler:generateTests.
2019-10-28 15:26:38 +01:00
Mark Punzalan 3c775c598c Extract utility function to create temporary variables if necessary. 2019-10-28 15:26:38 +01:00
Mark Punzalan 9bb9ab67a7 Add bytecode text tests for ForLoopsLowering. 2019-10-28 15:26:38 +01:00
Mark Punzalan 277cb39e3b Add new tests for step progressions and fix existing tests. 2019-10-28 15:26:38 +01:00
Mark Punzalan 27642514b1 Move ForLoopsLowering before JvmStringConcatenationLowering.
ForLoopsLowering may produce IrStringConcatenations which should be
eliminated before codegen.
2019-10-28 15:26:38 +01:00