Valentin Kipyatkov
6421f48c07
Further code improvements during review
2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
1aa123dadb
InsertExplicitTypeArguments - minor code improvements
2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
2466aa64fe
InsertCurlyBracesToTemplateIntention - no i18n
2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
7ccb20977d
ConvertToStringTemplateIntention - minor code improvements
2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
a8d629f609
ConvertToForEachLoopIntention - renamed
2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
a155b0c860
ConvertToForEachLoopIntention - smaller range + refactored
2015-04-16 22:00:54 +03:00
Valentin Kipyatkov
fc8b046694
ConvertToForEachFunctionCallIntention - smaller availability range + code refactoring
2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
c2335790b5
ConvertToExpressionBodyIntention - refactoring
2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
94480e3d5c
Renamed in test data
2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
0334ad1152
ConvertToConcatenatedStringIntention - minor code improvements + fixed bug
2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
b980d98af6
ConvertToBlockBodyAction - refactoring
2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
b201e60081
ConvertReceiverToParameterIntention - no i18n
2015-04-16 22:00:53 +03:00
Valentin Kipyatkov
24203a8a31
ConvertPropertyToFunctionIntention - no i18n + a bit better range
2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
0698bb3866
ConvertParameterToReceiverIntention - made available on parameter name only + minor
2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
960a45e4cc
Code simplifications
2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
ff44f1fa32
ConvertFunctionToPropertyIntention minor code improvements + to work in the end of name
2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
636f80ee48
ConvertAssertToIfWithThrowIntention: smaller availability range + minor code refactorings
2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
1268684ced
Smaller availability range for RemoveBracesIntention + refactored it and AddBracesIntention
2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
dc6c6f13d5
OperatorToFunctionIntention and SwapBinaryExpressionIntention: more narrow availability range + no i18n
2015-04-16 22:00:52 +03:00
Valentin Kipyatkov
00a4beae1d
Refactoring of JetSelfTargetingInspection
2015-04-16 22:00:51 +03:00
Valentin Kipyatkov
894bf000e1
JetSelfTargetingInspection - deprecated i18n usage
2015-04-16 22:00:51 +03:00
Mikhail Glukhikh
a37ae6ba6d
Test fixed accordingly with KT-3175
2015-04-16 20:48:48 +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
Pavel V. Talanov
3329136c9c
Fix test data for quickfix tests
...
Depending on Module and ModuleBuilder from runtime
2015-04-16 16:40:44 +03:00
Pavel V. Talanov
818a6b5c2e
Fix various tests and test data
...
Since we now distinguish between binaries and java source roots
2015-04-16 16:40:37 +03:00
Pavel V. Talanov
d76f293dc9
Speed up finding kotlin binaries and java files in CLI
...
Change VirtualFileFinder api to accept ClassId and adjust usages
Introduce KotlinCoreProjectEnvironment to create special KotlinCliJavaFileManager which shares cache with CliVirtualFileFinder
Truly distinguish between java source roots and binary roots: don't search for source files in classpath and vica versa
Implement JvmDependenciesIndex
2015-04-16 16:40:28 +03:00
Pavel V. Talanov
94cc847c48
Drop module "ktm" scripts and support java source roots in "xml" modules
...
Drop kotlin.modules package from runtime
Move adapted classes into compiler
Unsupport files with "ktm" extension
Delete code for loading module scripts
Drop tests for module scripts
Separate section for java source roots in xml script generator/parser
2015-04-16 16:40:19 +03:00
Pavel V. Talanov
09947d8f58
Move dangerous ClassId.fromString() to test
2015-04-16 16:40:12 +03:00
Natalia Ukhorskaya
336886f115
Fix KotlinBytecodeToolWindow: show bytecode correctly when there is inline function from another module
...
#KT-7409 Fixed
2015-04-16 14:55:29 +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
7cbbc5f98d
Minor, rename InlineUtil.getInlineType -> getInlineStrategy
2015-04-16 13:55:07 +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
Alexander Udalov
1b0a78077f
Use assert with lazy message in project instead of eager one
2015-04-16 13:55:06 +03:00
Alexander Udalov
44e35cad29
Make 'sure' an inline function with a lazy parameter
...
Also replace some other non-lazy stdlib function usages with the new lazy
'sure'
2015-04-16 13:55:06 +03:00
Denis Zharkov
f942f6ac8e
Move ReflectionTypes to builtins
2015-04-16 10:40:19 +03:00
Alexey Sedunov
d036edb5c6
Extraction Engine: Respect smart casts applied to "this" references
...
#KT-7447
2015-04-15 23:20:54 +03:00
Alexey Sedunov
aa0930ea60
Change Signature: Skip secondary constructor calls when looking for primary constructor usages
...
#KT-7445 Fixed
2015-04-15 23:20:52 +03:00
Alexey Sedunov
02b0c4c7eb
Name Suggester: Do not strip "get"/"is"/"set" prefixes if remaining sequence is not upper-cased
...
#KT-7399 Fixed
2015-04-15 23:20:51 +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
7f5b1d489e
KDoc typed handler: autoinsert pair brackets and parentheses
...
#KT-7347 fixed
2015-04-15 19:53:14 +02:00
Dmitry Jemerov
2aba59cbec
KDocCompletionContributor code review: use resolution facade instead of KotlinCodeAnalyzer; inherit CompletionSessionBase
2015-04-15 19:48:45 +02:00
Evgeny Gerashchenko
4f412f77d1
Updated some test data so it won't be affected by automatic renamers.
2015-04-15 20:13:51 +03:00
Evgeny Gerashchenko
260b8ae431
Automatic renaming subclasses.
...
#KT-4642 in progress
2015-04-15 19:15:18 +03:00
Evgeny Gerashchenko
e6e5e28e1d
Automatic renaming properties, variables, parameters when renaming class.
...
#KT-4642 in progress
2015-04-15 19:14:20 +03:00
Dmitry Jemerov
d32ff50579
escape identifiers in generated super method call in Override/Implement
...
#KT-6669 Fixed
2015-04-15 15:44:11 +02:00
Dmitry Jemerov
66aa15f470
pull up "New Kotlin File" action next to "New Java class"
2015-04-15 15:29:26 +02:00
Alexander Udalov
4ad603ba12
Fix AssertionError in JsLibraryStdDetectionUtil
...
#KT-7462 Fixed
2015-04-15 15:23:08 +03:00
Mikhail Glukhikh
8184bccda1
Extended loop data flow analysis was implemented. #KT-6283 Fixed. #KT-6284 Fixed.
...
A local descendant of JetTypeInfo added to save separately current data flow info and jump point data flow info together with jump opportunity.
Now data flow analysis know about loop bodies that must be executed at least once (do...while, while(true) until the first break/continue).
A set of tests for smart casts in and after loops.
Existing DoWhile and WhileTrue resolve tests corrected in accordance.
2015-04-14 19:11:22 +03:00