Valentin Kipyatkov
0ca492464b
Refactored SimplifyBooleanWithConstantsIntention
2015-05-14 01:00:26 +03:00
Valentin Kipyatkov
0c7a366ddf
No i18n
2015-05-14 01:00:26 +03:00
Valentin Kipyatkov
7499c4bc19
Refactored SplitIfIntention + JetPsiFactory.createIf uses createExpressionByPattern and does not reformat its arguments
2015-05-14 01:00:25 +03:00
Valentin Kipyatkov
de8601bb5d
Got rid of JetPsiFactory.createBinaryExpression
2015-05-14 01:00:24 +03:00
Valentin Kipyatkov
8fc799322b
Refactored ReplaceWithTraditionalAssignmentIntention
2015-05-14 01:00:24 +03:00
Valentin Kipyatkov
bab4ae3879
Refactored ReplaceWithOperatorAssignIntention
2015-05-14 01:00:23 +03:00
Dmitry Jemerov
b1c4a5670a
provide element type name for multi-declaration entries; enable in-place rename for those; show local properties as "variable"
...
#KT-7627 Fixed
2015-05-12 16:18:03 +02:00
Dmitry Jemerov
9975bb8935
replace 'trait' keyword with 'interface' in user-visible messages and code generation tools
2015-05-12 11:49:37 +02:00
Alexey Sedunov
f13eb038e1
Introduce Parameter: Java -> Kotlin Interoperability
2015-05-08 11:43:00 +03:00
Denis Zharkov
e59a0dd0c6
Adjust KotlinSuppressIntentionAction to syntax with '@'
2015-05-07 22:36:16 +03:00
Denis Zharkov
1d77f50903
Refine highlighting of '@'
...
- Do not highlight '@' as separate token.
- Highlight '@' the same way as element where it's located: annotation, label or modifier.
- Extend text range when positioning unresolved reference in annotation with '@'.
Note that currently '@' is collapsed with modifiers tokens
2015-05-07 22:36:16 +03:00
Valentin Kipyatkov
2de466970d
ReplaceWithInfixFunctionCallIntention - refactored
2015-05-02 14:03:25 +03:00
Valentin Kipyatkov
1b7ac6bb02
Renamed intention to more clear name
2015-05-02 14:03:25 +03:00
Valentin Kipyatkov
186dd5454d
Added inspection based on IfNullToElvisIntention + moved intention based inspections into one file
2015-05-02 14:03:24 +03:00
Valentin Kipyatkov
01a8ff0860
Refactored ReplaceItWithExplicitFunctionLiteralParamIntention
2015-05-02 14:03:24 +03:00
Valentin Kipyatkov
c7937f181b
Refactored ReplaceExplicitFunctionLiteralParamWithItIntention
2015-05-02 14:03:24 +03:00
Valentin Kipyatkov
175806a902
"Make types implicit in lambda" intention - adapted to new lambda syntax + do not work on closing brace
2015-05-02 14:03:23 +03:00
Valentin Kipyatkov
c6b18efb15
"Remove unnecessary parentheses" intention - smaller range & refactoring
2015-05-02 14:03:23 +03:00
Valentin Kipyatkov
6467b07245
RemoveCurlyBracesFromTemplateIntention - minor refactoring
2015-05-02 14:03:23 +03:00
Valentin Kipyatkov
3b87869bf7
ReconstructTypeInCastOrIsIntention - refactored
2015-05-02 14:03:22 +03:00
Valentin Kipyatkov
b959c7f2c0
"Move lambda argument out of parentheses" intention - smaller range
2015-05-02 14:03:22 +03:00
Valentin Kipyatkov
5ace57bc5f
"Move lambda function into parentheses" intention - smaller availability range
2015-05-02 14:03:21 +03:00
Valentin Kipyatkov
f9d690db21
"Make types explicit in lambda" intention: not available on right brace + adapted to new lambda syntax + refactored
2015-05-02 14:03:21 +03:00
Valentin Kipyatkov
252399b9a9
"Invert if condition" intention - smaller availability range + refactored
2015-05-02 14:03:21 +03:00
Alexey Sedunov
d096e74c10
Move: Implement inspection which reports mismatch between package directive and containing directory
2015-05-01 18:58:09 +03:00
Alexey Sedunov
8879166f53
Move: Add intention to change file package without moving it physically
2015-05-01 17:16:57 +03:00
Dmitry Jemerov
093878bd06
correctly implement JetSimpleNameReference.getTextRange() so that it doesn't include the @ character for references in labels
...
#KT-7560 Fixed
2015-04-30 16:12:03 +03:00
Denis Zharkov
02659ca22d
Adjust project code to new labels syntax
2015-04-30 10:16:42 +03:00
Dmitry Jemerov
8cc9ea1c8a
fix compilation
2015-04-29 18:06:29 +02:00
Dmitry Jemerov
f0b7830521
use new API for indexing identifiers and TODO items in Kotlin files that allows reusing the lexer for building both indices; index TODO items in KDoc comments
...
#KT-5677 Fixed
2015-04-29 18:38:10 +03:00
Dmitry Jemerov
09a7e87102
fix text navigation offset for secondary constructors; add some missing element types to FindUsagesProvider
...
#KT-7607 Fixed
2015-04-29 18:34:53 +03:00
Dmitry Jemerov
cce1be3892
rename JetClass.isTrait() to isInterface(); rename ClassKind.TRAIT to INTERACE
2015-04-29 16:50:19 +02:00
Dmitry Jemerov
f374eec8f1
deprecating types after colon
2015-04-29 16:33:24 +02:00
Denis Zharkov
1fc742ffeb
Add quickfix for java.lang.Class as annotation parameter
2015-04-29 14:03:11 +03:00
Denis Zharkov
ffa9b0aa7c
Remove whitespaces before labels in project code
...
Whitespaces are not allowed after lates syntax changes
2015-04-29 14:03:11 +03:00
Denis Zharkov
89c72d9400
Adjust PSI usages to new labels syntax
2015-04-29 14:03:11 +03:00
Alexander Udalov
fe602d34ce
Support type annotations in cls stub builder
...
Also add test on decompiler
2015-04-29 01:03:56 +03:00
Alexander Udalov
0732b78853
Serialize/deserialize annotations on types
2015-04-29 01:03:55 +03:00
Pavel V. Talanov
ac2cb9af74
Remove some usages of KotlinBuiltIns.getInstance()
...
Introduce DeclarationDescriptor.builtIns extension to get builtins where descriptors are available
Introduce various utilities in KotlinBuiltIns to check for primitive types and get fq names of builtins
2015-04-28 12:49:34 +03:00
Alexander Udalov
167942f4bb
Add constant "invoke" to OperatorConventions
2015-04-28 00:51:50 +03:00
Dmitry Jemerov
683d727c72
drop deprecated syntax for class objects
2015-04-27 15:14:33 +02:00
Pavel V. Talanov
1a5efacbf3
Refactor frontend components
...
Make dependencies more explicit
Move components out of ExpressionTypingServices
Make ExpressionTypingUtils a true utility class, refactor stuff out
Extract new components: FakeCallResolver, MultiDeclarationResolver, ValueParameterResolver
2015-04-27 15:56:59 +03:00
asedunov
c39dd59703
Merge pull request #649 from JetBrains/rr/yole/override-varargas
...
Override/Implement: J2K; correctly generate call to super method with varargs
2015-04-27 15:48:53 +03:00
Ilya Ryzhenkov
288e1baa87
Tests, messages and infra for deprecated symbol reporting
2015-04-24 15:44:32 +03:00
Dmitry Jemerov
e9c669c841
OverrideImplementMethodsHandler: J2K
2015-04-24 14:05:58 +02:00
Alexander Udalov
a59fa5015e
Merge KotlinToJavaTypesMap into JavaToKotlinClassMap
...
Also use this new Kotlin->Java mapping in RuntimeTypeMapper instead of
inheriting directly from JavaToKotlinClassMapBuilder
2015-04-24 02:09:05 +03:00
Alexander Udalov
deff3968db
Simplify KotlinToJavaTypesMap, use only one map
2015-04-24 02:09:03 +03:00
Alexander Udalov
34fa61675d
Replace more eager asserts in project with lazy
2015-04-24 02:08:22 +03:00
Evgeny Gerashchenko
f5677d8424
Converted JetPsiUtil.getElementTextWithContext() to Kotlin extension function.
2015-04-22 14:10:00 +03:00
Natalia Ukhorskaya
907f0db7be
Do not include files that contains only top level classes or objects to LightClassForPackage
2015-04-22 10:35:18 +03:00