Andrey Breslav
3a9f577d1d
All bounds may be specified in 'where' clause
...
Exception fixed in AlternativeMethodSignatureData
2014-05-13 20:19:43 +04:00
Andrey Breslav
788994283e
KT-5007 "Specify Kotlin signature" action doesn't work
...
Globally cached BindingContext used
(cherry picked from commit 5a641fc)
2014-05-13 19:39:32 +04:00
Andrey Breslav
64f0a8d420
Provide access to package fragments generated for static members of Java classes
2014-05-13 19:39:32 +04:00
Andrey Breslav
87750d633c
JavaDescriptorResolver supports resolving classes by PSI elements, not by FqNames
2014-05-13 19:39:31 +04:00
Valentin Kipyatkov
6c5d974284
Completion: added a test
2014-05-13 16:40:48 +04:00
Valentin Kipyatkov
c9bde2de0e
Smart completion: added a test
2014-05-13 16:40:48 +04:00
Valentin Kipyatkov
2d850f41f1
Smart completion: fixed addition of tail chars after true, false and null
2014-05-13 16:40:47 +04:00
Valentin Kipyatkov
0e86e628a3
KT-5012 Autocompletion is completing to FQN and not the value
...
#KT-5012 Fixed
#KT-5006 Fixed
2014-05-13 16:40:47 +04:00
Jeremy Kaplan
b3842285e8
Implemented Operator To Function intention action.
...
Converts +a, --a, a * b, a..b, a %= b, a in b, etc. to their function call counterparts.
2014-05-12 21:04:51 +04:00
Pradyoth Kukkapalli
5550924dc5
New Intention Action: Invert If Condition
...
Inverts the conditional expression in an if expression.
2014-05-12 19:48:43 +04:00
Andrey Breslav
aa20af3cf3
Minor. Unused code removed
...
Follow-up for https://github.com/JetBrains/kotlin/commit/db00500404e4862548ed5eb49f7289e1e8eba99c#commitcomment-6242775
2014-05-12 19:02:17 +04:00
Alexander Udalov
7c44938151
Drop unused AnalyzerFacadeForEverything
2014-05-12 18:03:02 +04:00
Alexander Udalov
5a0055cbeb
Fix message case in JetBundle.properties
...
Intention names should be lowercase, family names should have each word
except prepositions capitalized
2014-05-12 16:47:00 +04:00
Alexey Sedunov
31a1ec0f05
Improve JetNameValidatorImpl performance
2014-05-12 13:03:03 +04:00
Alexey Sedunov
5cfb8bbf99
Extract Function: Allow the user to proceed with extraction when non-critical errors are found
...
#KT-4941 Fixed
2014-05-12 13:03:01 +04:00
Alexey Sedunov
1e49dcda27
Extract Function: Make member/top-level function private by default
2014-05-12 12:55:09 +04:00
Alexey Sedunov
3ac3edd1bd
Extract Function: Allow to select fragments which start with comment
2014-05-12 12:55:08 +04:00
Alexey Sedunov
243ba62b65
Extract Function: Allow to combine throws with other exit points
2014-05-12 12:55:07 +04:00
Alexey Sedunov
2cfd7de8d9
Fix containment check
2014-05-12 12:55:06 +04:00
Alexey Sedunov
1f36ad0bfc
Fix warnings
2014-05-12 12:55:04 +04:00
Alexey Sedunov
1e964551f3
Extract Function: Enable visibility selection when target container is class/object
2014-05-12 12:55:03 +04:00
Alexey Sedunov
5fc1725b33
Extract Function: Type parameters inference
2014-05-12 12:55:02 +04:00
Zalim Bashorov
399c9c1175
JS backend: fixed compiler crash when use compareTo in infix call.
...
#EA-54661 fixed
2014-05-08 19:57:28 +04:00
Zalim Bashorov
a578fc6762
JS backend: fixed infix calls.
...
#KT-3998 fixed
#EA-56241 fixed
2014-05-08 19:57:28 +04:00
Zalim Bashorov
898275e658
JS backend: added tests for infix calls.
...
#KT-3998 in progress
#EA-56241 in progress
2014-05-08 19:57:28 +04:00
Zalim Bashorov
235b03c407
Minor in JS backend: added useful message to assert(for EA-48931) and drop unnecessary code.
2014-05-08 19:57:27 +04:00
Tal Man
814b558bcf
Inspection to report negated binary expressions that can be simplified
2014-05-08 19:02:58 +04:00
Alexander Udalov
22e21b4db0
Unextend InlineCodegen from ParentCodegenAware
2014-05-08 18:42:35 +04:00
Alexander Udalov
13728e1598
Minor, pull non-null getParentContext() to MethodContext
2014-05-08 17:48:40 +04:00
Alexander Udalov
5fe7bfdd83
Move 'earlierScripts' from ScriptCodegen to ScriptContext
...
To get rid of a questionable usage of getParentCodegen() in ExpressionCodegen
2014-05-08 17:48:40 +04:00
Alexander Udalov
6bd46d38f5
Add missing copyrights
2014-05-08 17:38:51 +04:00
Alexander Udalov
271f2f562c
Delete unused parameter in SamWrapperCodegen
2014-05-08 17:21:11 +04:00
Alexander Udalov
8041cac9dd
Remove GenerationStateAware
2014-05-08 16:45:16 +04:00
Alexander Udalov
985e9a5f31
Make JvmFunctionImplTypes lazy
...
It shouldn't compute all FunctionImpls at least until first asked
2014-05-08 16:45:16 +04:00
Alexander Udalov
3a0aac4857
Simplify type mapping logic in CodegenBinding
...
- inline asmType to calling getAsmType, which does something more
- refactor getJvmInternalName to use getAsmType as well
- simplify getAsmType and fix a probable bug in mapping singletons nested in
enums (which wasn't reproduced, though a test is added)
- delete unnnecessary ASM_TYPE recording for enum entries in
CodegenAnnotatingVisitor
2014-05-08 16:45:15 +04:00
Alexander Udalov
372bf17982
Remove BindingTraceAware, TypeMapperAware, BindingContextAware
...
- delete suspicious caching logic from CodegenBinding.getAsmType(), which makes
JetTypeMapper now depend only on BindingContext
- inline all of these classes into GenerationStateAware and the latter into
JetTypeMapper
2014-05-08 16:45:15 +04:00
Alexander Udalov
fb54ecf443
Rename FunctionTypesUtil -> JvmFunctionImplTypes
...
It's not an util class anymore
2014-05-08 16:45:15 +04:00
Alexander Udalov
c7277250d9
Use ReflectionTypes instead of KotlinBuiltIns in type checker
2014-05-08 16:45:15 +04:00
Alexander Udalov
6004c6cefe
Introduce ReflectionTypes, use it in JVM back-end
...
Make FunctionTypesUtil a component
2014-05-08 16:45:14 +04:00
Alexander Udalov
3ac89030c7
Make CodegenBinding.ASM_TYPE a collective slice
...
Change Type->JetFile mapping logic in PsiCodegenPredictor to be less hackish,
but probably the compiler will start requiring a little more memory due to a
collective slice multimap
2014-05-08 16:45:14 +04:00
Alexander Udalov
d737932bc7
Remove usages of CodegenBinding.initTrace
...
This is a low level JVM back-end detail; clients should be using
GenerationState instead
2014-05-08 16:45:14 +04:00
Alexander Udalov
d42598a935
Move default inline flag to JVM back-end
...
- other back-ends are likely to have its own value of this flag
- get rid of DEFAULT_INLINE_FLAG_FOR_TEST
- the main goal was to simplify the default GenerationState constructor, which
now always uses default inline flag value
2014-05-08 16:45:14 +04:00
Tal Man
9679e3ce4a
insert type intention now only applicable in function names (KT-4950)
...
#KT-4950 Fixed
2014-05-08 14:11:21 +04:00
Tal Man
0032fb3575
Bug fix in intention to move lambda outside parentheses, handles commas better
2014-05-07 19:33:40 -04:00
Pradyoth Kukkapalli
65e670ef15
Bug Fix: KT-4613
...
Fix replace with infix function intention to be inapplicable in the
case of package function calls, such as “kotlin.io.println(“”).”
2014-05-07 15:25:39 -04:00
Valentin Kipyatkov
442f47bbe5
Removed unused constructor
2014-05-07 22:50:23 +04:00
Valentin Kipyatkov
dab6045f6a
Fixed Code completion does not work inside function variable invocation
...
#KT-4978 Fixed
2014-05-07 22:50:23 +04:00
Valentin Kipyatkov
7bb84c139d
Smart completion: fixed logic in elvis operator
2014-05-07 22:50:23 +04:00
Valentin Kipyatkov
ab563bd891
Added utility extension methods to not use TypeUtils
2014-05-07 22:50:22 +04:00
Valentin Kipyatkov
a65bd1a74d
Added test data for future use
2014-05-07 22:50:22 +04:00