Vladimir Dolzhenko
29b23e79f3
Register EXPRESSION_CODE_FRAGMENT, BLOCK_CODE_FRAGMENT in KtStubElementTypes
...
Stubbed type has to be register earlier (see IStubFileElementType#checkNotInstantiatedTooLate)
Relates to ^KT-28732
2020-10-05 11:10:06 +02:00
Vladimir Ilmov
51a37bffff
Incorrect package name for multipart classes
2020-10-01 23:06:17 +03:00
Bart van Helvert
485ada7b90
Move getColon from KtClass to KtClassOrObject
...
Makes it possible to retrieve the colon from a KtObjectDeclaration.
2020-10-01 10:20:20 +03:00
Toshiaki Kameyama
b56272dc64
Add name to argument: do not remove necessary backticks
...
#KT-30894 Fixed
2020-09-29 23:58:28 +09:00
Toshiaki Kameyama
75e8849c94
Add quick fix for INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER
...
#KT-34533 Fixed
2020-09-29 23:58:26 +09:00
Victor Petukhov
8f333aef3a
Introduce warning about forbidden referencing to underscore named parameter of the catch block in a future release (KT-31567)
2020-09-29 10:23:45 +03:00
Vladimir Dolzhenko
a149d38c98
Register TYPE_CODE_FRAGMENT in KtStubElementTypes
...
Stubbed type has to be register earlier (see IStubFileElementType#checkNotInstantiatedTooLate)
^KT-28732 Fixed
2020-09-28 11:15:04 +02:00
Roman Golyshev
945edfe987
KT-41859 Place classes after typealiases in DeserializedMemberScope
...
This way, the order in stubs and in deserialized text would be the same
On the next stub version bump, this fix should be reworked: the order
in the `DeserializedMemberScope` should be restored, and the order in
the stubs should be fixed to match the order in `MemberComparator`
^KT-41859 Fixed
2020-09-25 09:03:12 +00:00
Ilya Kirillov
9a99703f24
FIR IDE: implement incremental function analysis
2020-09-23 21:41:41 +03:00
Igor Yakovlev
1d248f1a00
[ULC] Fixed invalid fqName for script inner classes
2020-09-11 12:49:00 +03:00
Roman Golyshev
909d418dd1
Improve diagnostics in KtElementImplStub::getContainingKtFile
...
- If containing file is not a `PsiFileImpl`, `getNode()` will
throw a CCE (which will prevent collecting the diagnostics)
- Relates to #EA-209630
2020-09-07 14:36:09 +00:00
Dmitriy Novozhilov
d1fd1da56f
Rename Visibility to DescriptorVisibility
2020-09-04 11:07:42 +03:00
Florian Kistner
9775a2148a
203: Fix compilation
2020-09-02 18:48:57 +02:00
Alexander Udalov
a9ddf02556
Replace deprecated usages of max/min with maxOrNull/minOrNull
2020-08-25 20:33:59 +02:00
Arsen Nagdalian
9fd104eec8
[FIR] Add contract description blocks support to RawFirBuilder
2020-08-25 12:58:38 +03:00
Arsen Nagdalian
d53f3b9ba8
[PSI] Add some useful getters to psi nodes
2020-08-25 12:58:37 +03:00
Arsen Nagdalian
a936c6331a
[Parser] Add getters' and setters' contracts parsing
2020-08-25 12:58:37 +03:00
Arsen Nagdalian
32a64b888e
[Parser] Add parsing of function's contract either before or after type constraints
2020-08-25 12:58:34 +03:00
Arsen Nagdalian
1b57889773
Clean the code
2020-08-25 12:58:34 +03:00
Arsen Nagdalian
2e9a898f45
[Parser] Move function's contracts parsing in before type constraints parsing
2020-08-25 12:58:34 +03:00
Arsen Nagdalian
0990434840
[Parser] Modify parser so that it could parse contract description blocks of functions
2020-08-25 12:58:34 +03:00
Arsen Nagdalian
e3fe9c3314
[PSI] Add new Psi nodes representing contract effects list and each individual contract effect in the list
2020-08-25 12:58:34 +03:00
Arsen Nagdalian
4b7d34b537
Add "contract" keyword
2020-08-25 12:58:34 +03:00
Dmitriy Novozhilov
a764732020
Rename KotlinBuiltInsNames to StandardNames
2020-08-25 10:41:33 +03:00
Dmitriy Novozhilov
7a7fe77b8e
Move static constants with builtin names to :core:descriptors.common module
2020-08-25 10:31:36 +03:00
Alexander Udalov
0ef4b22cf3
Remove deprecated usages of ContainerUtil
2020-08-20 20:30:34 +02:00
Toshiaki Kameyama
1188f4617a
Change file's package to match directory: add space after package keyword if needed
...
#KT-39604 Fixed
2020-08-19 14:04:18 +03:00
Alexander Udalov
a21f273570
Fix compiler warnings in compiler code
2020-08-17 21:18:20 +02:00
Vladimir Dolzhenko
6e016ce041
ktFile has to return script declaration from stub as well
2020-08-11 14:31:18 +00:00
Florian Kistner
346df07adc
203: Fix compilation for 203
2020-07-09 15:27:45 +02:00
Ivan Kylchik
54945b7fbc
Extract illegal underscore check function to ParseUtils
2020-07-03 12:06:45 +03:00
Mikhail Zarechenskiy
0f2c96c64d
Don't perform additional lookups for DeprecatedSinceKotlin annotation
...
There is no need to check it as `DeprecatedSinceKotlin` can be used
only along with `Deprecated` annotation
2020-06-29 14:23:22 +03:00
Alexander Udalov
0aaf29c045
Introduce DeprecatedSinceKotlin annotation
...
This annotation will be used in the standard library to prevent the new
compiler from reporting deprecation diagnostics in case an older API
version is used (where the declaration was not deprecated yet).
#KT-23575 Fixed
2020-06-29 14:22:29 +03:00
Ilya Muradyan
489290263f
Add info about the end of range in scripting REPL compiler messages
2020-06-05 21:58:28 +02:00
Yan Zhulanow
c8bad15ba9
Fix EA-210182, check for context validity
2020-05-27 02:38:41 +09:00
Vladimir Dolzhenko
2d0445ebaa
Add klib extension to ARCHIVE fileType
...
Fixed to #KT-38767
Relates to #KT-38571
2020-05-20 13:24:11 +00:00
Ilya Chernikov
fb6ef38370
Revert "Add info about the end of range in scripting REPL compiler messages"
...
This reverts commit af251caf , because it breaks daemon/client
compatibility, which we'd like to keep as much as possible
2020-05-15 21:15:48 +02:00
Vladimir Dolzhenko
f4b6e1bff6
Reworked deprecated fileTypeFactory EP usage
...
Relates to #KT-38571
2020-04-27 14:08:17 +00:00
Ilya Muradyan
af251cafa4
Add info about the end of range in scripting REPL compiler messages
2020-04-16 21:16:08 +02:00
Ilya Kirillov
1535873c07
Do not try to lazy parse a block without opening bracket
...
It can consume the whole file in such case
which will result PsiBuilder going crazy
#KT-36191 fixed
2020-04-16 15:40:21 +03:00
Toshiaki Kameyama
9b3c3ae4ba
"Replace 'invoke' with direct call" intention: do not add unnecessary parenthesis
...
#KT-37967 Fixed
2020-04-15 09:59:23 +02:00
Igor Yakovlev
a71fd0e6d9
Support for showing rendered doc comments in editor
...
Fixed #KT-37361
2020-04-03 12:38:51 +03:00
Mikhail Zarechenskiy
38a719cb22
[NI] Fix trace manipulations for builder inference and ::-expressions
...
For a class literal Type::class we are resolving Type as a constructor,
getting all diagnostics (about missing arguments, for example) and then
just not committing this trace with errors
#KT-37626 Fixed
2020-03-31 15:50:58 +03:00
Alexander Udalov
b6fdc96994
Reverse dependency 'psi' <-> 'frontend.common'
...
Move ParseUtils to 'psi', and ImportPath to 'frontend.common'.
Now 'psi' depends on 'frontend.common', and that allows to remove
dependency of 'fir:tree:tree-generator' on 'psi', allowing the former to
compile in parallel with the old frontend code.
2020-03-28 21:30:07 +01:00
Roman Golyshev
f656cd2889
KT-37781 Add FUN_KEYWORD to MODIFIERS_ORDER
...
- This way it is inserted before visibility modifiers
- ^KT-37781 Fixed
2020-03-26 19:37:10 +03:00
Dmitry Gridin
ae96a68bd1
i18n: createByPattern: add @NonNls to parameters
2020-03-16 18:40:48 +07:00
Dmitry Gridin
2b8373447a
i18n: KtPsiFactory: add @NonNls to parameters
2020-03-16 18:40:48 +07:00
Roman Golyshev
e1cb561398
i18n: add bundle for idea/refactoring/rename
...
- Modify `text.parameter` value to `Parameter`;
use `text.parameter.0` in previous usages
- Add @Nls and @NonNls annotations to few places
2020-03-16 18:40:47 +07:00
Roman Golyshev
37e1333fe1
i18n: add bundle for idea/refactoring/pullUp
...
- Add @NonNls to used methods from `KtPsiFactory`
2020-03-16 18:40:47 +07:00
Alexander Udalov
795d6ab407
Migrate UseExperimental->OptIn in project sources
2020-03-10 12:07:14 +01:00