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
Zalim Bashorov
79739b7090
Fix build.
2015-04-06 18:20:00 +03:00
Valentin Kipyatkov
412ab8f8b8
Split module idea into idea, idea-core and idea-completion
2015-04-06 14:28:40 +03:00