Nikolay Krasko
dfa0ca1192
Some better colours for unmatched elements (KT-18089)
...
Platform requires a single color for both selected/not-selected item and
so colour selection isn't easy (see https://youtrack.jetbrains.com/issue/IDEA-191959
for details)
#IDEA-191959 Fixed
2018-11-22 13:07:57 +03:00
Mikhail Glukhikh
d50c4d7211
Fix failing IR tests because of CCE in WrappedValueParameterDescriptor
...
In previous commits, renderValueParameter began to calculate its
containing declaration. However, WrappedValueParameterDescriptor
assumes that parent of IrParameter is IrFunction, which is not true
for dispatch receiver parameters. The correct fix would be not to create
WrappedValueParameterDescriptor for dispatch receivers at all and use
WrappedReceiverParameterDescriptor instead. In this fix, I just moved
parameter' containing declaration calculation inside specific option
which is usually false, thus hiding the found problem.
2018-11-22 13:03:05 +03:00
Andrey Uskov
22830ebbf8
Disable irrelevant importing tests in AS 3.3 and 3.4
2018-11-22 12:52:04 +03:00
Andrey Uskov
ef6aae0f4a
Migrate importing tests to new configuration management
2018-11-22 12:51:47 +03:00
Andrey Uskov
903a048fcd
Enabled tests for gradle 4.9
2018-11-22 12:51:33 +03:00
Andrey Uskov
0fd9e06f8a
Fix import tests after KT-27832
2018-11-22 12:51:20 +03:00
Nikolay Krasko
9a79f43a50
Restore support for 173 branch
2018-11-22 11:25:56 +03:00
Nikolay Krasko
3e11fc1824
Extract common pattern in KotlinShortNamesCache and more arrays reuse
2018-11-22 11:25:55 +03:00
Nikolay Krasko
175ed533ee
Implement another method in KotlinShortNamesCache with processor
2018-11-22 11:25:53 +03:00
Nikolay Krasko
98c6b6837a
Rewrite fetching methods in KotlinShortNamesCache with processor
2018-11-22 11:25:50 +03:00
Nikolay Krasko
25fff006ef
Minor: rearrange and add regions in KotlinShortNamesCache
2018-11-22 11:25:48 +03:00
Nikolay Krasko
001d4875c8
Rewrite fetching fields in KotlinShortNamesCache with processor
2018-11-22 11:25:47 +03:00
Nikolay Krasko
21ea17b398
Rewrite processClassesWithName with processors
2018-11-22 11:25:45 +03:00
Nikolay Krasko
0ffec69d12
Use processors in KotlinShortNamesCache and remove deprecated methods
2018-11-22 11:07:05 +03:00
Dmitry Petrov
7dd906db44
KT-28324 More exact startOffset for function/constructor declarations
...
Function/constructor declaration start offset is the start offset of the
corresponding declaration token, if available.
2018-11-22 10:09:31 +03:00
Sergey Rostov
dfe662364d
JPS, minor: remove unused parameter
2018-11-22 08:40:32 +03:00
Sergey Rostov
f70d01f657
Fix updating complementary files map in case of compilation errors
...
#KT-27868 Fixed
Previously given dirtyFiles was removed from complementaryFilesMap
exactly on call of clearComplementaryFilesMapping. This causes fail
of next build in case of compilation error of previous build on JPS
(since complementary files not known on second build). The right way
to do it is removing (replacing) them only after successful
build.
This was working on Gradle since Gradle rebuilds whole module (project)
in case of build error.
2018-11-22 08:40:32 +03:00
Sergey Rostov
cc9892a27d
JPS: Add tests for mpp complementary files tracking after build error (KT-27868)
2018-11-22 08:40:32 +03:00
Sergey Rostov
84d6c1df5a
Add assertion for overwriting common sources flag
...
Wrong flag state causes compilation errors for optional expectation
(this flag is used to pass -Xcommon-sources)
2018-11-22 08:40:32 +03:00
Sergey Rostov
5a25d3ef58
Workaround for KT-28099 Duplicated dependency to common module
...
Duplicated dependencies causes duplicated source roots which in turns
causes duplicated files dirty state tracking.
2018-11-22 08:40:31 +03:00
Nicolay Mitropolsky
daef6f09b9
183: IdeaKotlinUastResolveProviderService.kt.183 compilation fix
2018-11-21 18:55:07 +03:00
Nicolay Mitropolsky
ebefcd476f
183: CliKotlinUastResolveProviderService.kt.183 compilation fix
2018-11-21 18:12:44 +03:00
Mikhail Glukhikh
914620fd1f
FIR: introduce status & status transformer (no override resolve)
...
So #KT-24021 Fixed
2018-11-21 18:04:15 +03:00
Mikhail Glukhikh
65d89a61bf
FIR: constructor refactoring, now there are callable members
2018-11-21 18:04:14 +03:00
Mikhail Glukhikh
a07b9a70f7
FIR builder: do not generate implicit types for getters
2018-11-21 18:04:14 +03:00
Mikhail Glukhikh
dadc028884
FIR: support delegated types in secondary constructors
...
So #KT-24088 Fixed
2018-11-21 18:04:14 +03:00
Mikhail Glukhikh
c06b0efdfa
FIR: add implicit primary constructors, add delegated types to them
...
So #KT-24088 In Progress
2018-11-21 18:04:14 +03:00
Simon Ogorodnik
1c6490a1be
FIR: Fix resolution of type parameter in ext property receiver
...
Also cleanup FirTypeResolveTransformer
2018-11-21 18:04:14 +03:00
Simon Ogorodnik
6bca2d1045
FIR: Get rid of delegation in resolved imports
...
This prevents strange visitors behaviour
2018-11-21 18:04:14 +03:00
Simon Ogorodnik
e010a96055
FIR: Fix super-type nested qualifier resolution
2018-11-21 18:04:13 +03:00
Mikhail Glukhikh
06cb24db7c
FIR builder: do various stub-based optimizations #KT-24090 Fixed
2018-11-21 18:04:13 +03:00
Mikhail Glukhikh
73235885e7
FIR: get rid of FirUnitType in default setters
2018-11-21 18:04:13 +03:00
Mikhail Glukhikh
c2686872ae
FIR: use implicit Unit type in setters
2018-11-21 18:04:13 +03:00
Mikhail Glukhikh
bcb27f212c
FIR: support resolve of implicit Unit types
2018-11-21 18:04:13 +03:00
Mikhail Glukhikh
65f1a6c041
FIR: introduce FictitiousFunctionSymbol making it not FIR-based
2018-11-21 18:04:13 +03:00
Mikhail Glukhikh
5cdf938902
FIR: temporary implementation of kotlin.FunctionX resolve
2018-11-21 18:04:12 +03:00
Mikhail Glukhikh
82ae3f8f10
FIR resolve: add nested companion scope #KT-24095 Fixed
2018-11-21 18:04:12 +03:00
Mikhail Glukhikh
98abe08056
Add Java symbol resolve in default star importing scope
...
Related to KT-24098
2018-11-21 18:04:12 +03:00
Mikhail Glukhikh
5c572aa56e
Add java.lang & kotlin.jvm to default star importing scope
2018-11-21 18:04:12 +03:00
Mikhail Glukhikh
b58e372db3
FIR: include properties from primary constructors in tree
2018-11-21 18:04:12 +03:00
Mikhail Glukhikh
e2cec9125d
FIR: resolve annotations on value & type parameters
2018-11-21 18:04:12 +03:00
Mikhail Glukhikh
78d45f3f90
FIR: resolve constructor delegated calls (types are all error yet)
2018-11-21 18:04:11 +03:00
Mikhail Glukhikh
ea86c3d2b3
FIR: resolve bounds of function type arguments
2018-11-21 18:04:11 +03:00
Simon Ogorodnik
6c3fe5dc98
FIR: refactor cone types (arguments, projections)
2018-11-21 18:04:11 +03:00
Simon Ogorodnik
02bedeca05
FIR: introduce Java type resolve and JavaSymbolProvider #KT-24098 Fixed
2018-11-21 18:04:11 +03:00
Mikhail Glukhikh
5c53bdb142
FIR: support inline classes + render class attributes nicer
2018-11-21 18:04:11 +03:00
Mikhail Glukhikh
124c11df08
FIR: support lateinit properties
2018-11-21 18:04:11 +03:00
Mikhail Glukhikh
7279d696d2
FIR: support annotation resolve & rendering
2018-11-21 18:04:10 +03:00
Mikhail Glukhikh
c31513837b
FIR: fix resolve of function type & its parameters in supertype position
2018-11-21 18:04:10 +03:00
Simon Ogorodnik
6cfe935c2a
FIR: Switch to | in fir resolved type renderer
...
Otherwise it clashed with qualified names
2018-11-21 18:04:10 +03:00