Valentin Kipyatkov
5807d03a52
Keyword completion: "reified" keyword is now supported
2015-05-16 17:15:09 +03:00
Valentin Kipyatkov
5ecf33c88e
KT-6330 When completion for boolean method/property is finished by typing '!' symbol it should insert selected item with negation
...
#KT-6330 Fixed
2015-05-16 17:15:09 +03:00
Valentin Kipyatkov
892b2b0f83
KT-7195 Smart completion after "return ": the function itself should get smaller priority + declarations in the same file to have higher priority than default-imported
...
#KT-7195 Fixed
2015-05-16 17:15:08 +03:00
Valentin Kipyatkov
09f478fc0f
Fixed duplication of some generic functions in code completion
2015-05-16 17:15:08 +03:00
Valentin Kipyatkov
ce3492f270
KT-6393 Smart completion of anonymous object inserts type with "!" for type parameter
...
#KT-6393 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
833d474876
Smart completion when only named argument possible
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
67cfd9d516
KT-4909 Smart completion does not work for named arguments
...
KT-7668 Named argument completion does not work after vararg
#KT-4909 Fixed
#KT-7668 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
58ac497bd7
KT-5041 Smart completion for last argument lambda outside parenthesis
...
#KT-5041 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
023c5eabf4
KT-6780 Completion inserts incorrect comma in end of parameter list when lambda parameter exists
...
#KT-6780 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
a036a6435b
Fixed not working item in completion list for infix call
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
2adf0a3e9a
KT-4908 Smart completion does not work for arguments of function with vararg
...
#KT-4908 Fixed
2015-05-16 17:09:50 +03:00
Valentin Kipyatkov
4c315b6219
KT-7452 Code completion does not honor smart casts for 'this'
...
#KT-7452 Fixed
2015-05-16 17:09:50 +03:00
Valentin Kipyatkov
a3bd6ca017
Introduced shortcut properties + getArrowNode -> getArrow
2015-05-14 01:10:00 +03:00
Valentin Kipyatkov
00dcbd4d93
Initial implementation of KT-4046 Support 'Create constructor matching superclass'
...
#KT-4046 Fixed
2015-05-14 01:09:21 +03:00
Nikolay Krasko
9d986d077c
Move kotlin runtime library to end of classpath and remove duplicates with 'util' package
2015-05-06 14:18:24 +03:00
Denis Zharkov
02659ca22d
Adjust project code to new labels syntax
2015-04-30 10:16:42 +03:00
Dmitry Jemerov
b7b5333cb9
keyword completion test: trait -> interface
2015-04-29 16:50:21 +02:00
Dmitry Jemerov
cce1be3892
rename JetClass.isTrait() to isInterface(); rename ClassKind.TRAIT to INTERACE
2015-04-29 16:50:19 +02:00
Dmitry Jemerov
b98e2513f2
fix Common.testInSecondaryConstructorDelegationCall completion test: don't insert $ which breaks parsing of argument list and causes the block to be detached from the constructor itself
2015-04-29 14:07:06 +02:00
Dmitry Jemerov
f93eeeb563
fix tests by adding missing 'init' keywords to testdata
2015-04-29 14:07:05 +02:00
Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +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
94eac98500
Reformat some code, optimize imports, remove unused
...
Mostly in JVM codegen intrinsics
2015-04-28 00:35:53 +03:00
Alexey Sedunov
8918ddbb0a
Refactoring: Move jetRefactoringUtil.kt to idea module. Move compareDescriptors() and comparePossiblyOverridingDescriptors() to descriptorUtils.kt
2015-04-27 23:02:32 +03:00
Dmitry Jemerov
fd5c3e3b9d
remove obsolete test for completing 'object' after 'class'
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
Ilya Ryzhenkov
c2b3bcc95f
SymbolUsageValidator infrastructure
2015-04-24 15:44:28 +03: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
73de54f557
Get rid of unneeded additional map in JavaToKotlinClassMap
2015-04-24 02:09:03 +03:00
Alexander Udalov
deff3968db
Simplify KotlinToJavaTypesMap, use only one map
2015-04-24 02:09:03 +03:00
Dmitry Jemerov
3e8f163f1e
don't complete KDoc tag names if we have a non-empty prefix which is not a tag name
...
#KT-7476 Fixed
2015-04-21 15:37:32 +02:00
Dmitry Jemerov
efa41bfb2a
support quick doc for completion items
...
#KT-4346 Fixed
2015-04-21 15:36:38 +02:00
Mikhail Glukhikh
e64dab0ae9
Review fixes after automatic code analysis
2015-04-21 15:29:34 +03:00
Mikhail Glukhikh
27625b04e1
Refactoring of JetTypeInfo / BindingContext. Loop data flow analysis corrected.
...
Now BindingContext includes expression type info instead of jump out possible, data flow info and expression type.
getType() was added into BindingContext, getType() and recordType() were added into BindingTrace.
JetTypeInfo now includes also jump possible flag and jump point data flow info.
Old TypeInfoWithJumpInfo deleted.
TypeInfoFactory introduced to create JetTypeInfo instances.
A pack of extra tests for break / continue in loops added.
2015-04-21 15:29:07 +03:00
Denis Zharkov
5b9aff12d0
Drop throws usages that looks redundant
...
Probably appeared after j2k-conversion
2015-04-21 08:08:31 +03:00
Mikhail Glukhikh
109e0abb6d
Review fixes for mutable variable smart casting (mostly refactoring).
...
DataFlowValue.isPredictable() introduced instead of isStableIdentifier().
Parenthesized assignments are treated correctly.
2015-04-16 20:11:03 +03:00
Mikhail Glukhikh
d5aed62410
Smart casts for local variables not captured in a closure and not changed in a loop, see #KT-3175.
...
isLocalVariable added. Assignment / initialization analysis.
Control whether a variable is changed in a loop at the beginning and at the end of the loop.
Control whether a variable is captured in a closure. #KT-3175 Fixed. #KT-2266 Fixed.
Tests for variable null safety and for variables is/as operations.
Loop / closure / variable property tests are included.
Old tests changed in accordance with KT-3175. In particular, all three of testSmartcastImpossible were fixed.
2015-04-16 20:10:58 +03:00
Alexander Udalov
16e6bc347f
Move inline-related stuff from 'descriptors' to 'frontend'
...
Move to package org.jetbrains.kotlin.resolve.inline
2015-04-16 14:35:06 +03:00
Alexander Udalov
4a2fac6f40
Add utility InlineUtil.isInline instead of interface method in SimpleFunctionDescriptor
...
Also fix some warnings and reformat along the way
2015-04-16 13:55:07 +03:00
Valentin Kipyatkov
3842d71ee3
simplify code, fix test, use CompletionUtil.findIdentifierPrefix()
2015-04-15 19:59:59 +02:00
Valentin Kipyatkov
be92ad2f2d
# This is a combination of 2 commits.
...
# The first commit's message is:
use more simple API
# This is the 2nd commit message:
More simple code
2015-04-15 19:53:16 +02:00
Dmitry Jemerov
2aba59cbec
KDocCompletionContributor code review: use resolution facade instead of KotlinCodeAnalyzer; inherit CompletionSessionBase
2015-04-15 19:48:45 +02:00
Valentin Kipyatkov
bb808b5620
Created module idea-test-framework and moved classes needed for idea tests there
...
Moved tests for completion and their test data into module idea-completion
2015-04-14 18:53:01 +03:00
Valentin Kipyatkov
e3bdc18aea
KT-7344 Completion of second type argument in class instantiation does not work
...
#KT-7344 Fixed
2015-04-13 14:30:03 +03:00
Valentin Kipyatkov
3fad68ad4c
Completion: no "else" in first when entry
2015-04-13 14:30:03 +03:00
Valentin Kipyatkov
f73a41aa15
Completion should not generate deprecated lambda syntax
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
5954307147
Fixed KT-7308 Exception on completion inside anonymous object
...
#KT-7308 Fixed
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
ff4ff78307
Use of Kotlin wrapper methods instead of Application.runReadAction/runWriteAction and CommandProcessor.executeCommand
2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
00660bc59e
No explicit runReadAction needed
2015-04-09 19:09:07 +03:00
Stanislav Erokhin
b703f59e04
Migrate kotlin sources, maven projects and stdlib to new lambda syntax
2015-04-07 13:08:53 +03:00