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
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
Michael Nedzelsky
d0616ed8bd
fix KT-7512 JS: project with external library lead to deadlock and IDEA freeze due to wrong storage manager configured
...
#KT-7512 Fixed
2015-04-20 21:02:01 +03:00
Alexander Udalov
3d928a0842
Refactor deserialization initialization in built-ins and JS
...
BuiltinsPackageFragment was only designed to work with a single instance alive.
Because of this, it was creating deserialization subsystem upon initialization.
This was not working perfectly in JS where it was used, because multiple
storage managers, class caches and other components were created for each
package, leading to different concurrency errors and performance hits. Also in
the near future another package fragment will be needed to represent the
built-in package "kotlin.reflect"
2015-04-20 19:09:35 +03:00
Denis Zharkov
cc9322fbdd
Add quickfix for usages of javaClass<T>() in annotations loaded from Java
2015-04-17 18:52:17 +03:00
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
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
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
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
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
1b0a78077f
Use assert with lazy message in project instead of eager one
2015-04-16 13:55:06 +03:00
Dmitry Jemerov
2aba59cbec
KDocCompletionContributor code review: use resolution facade instead of KotlinCodeAnalyzer; inherit CompletionSessionBase
2015-04-15 19:48:45 +02:00
Alexander Udalov
4ad603ba12
Fix AssertionError in JsLibraryStdDetectionUtil
...
#KT-7462 Fixed
2015-04-15 15:23:08 +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
1afbb961ee
KT-7135 Java to Kotlin converter should update usages in Java and Koltin code in the rest of the project
...
#KT-7135 Fixed
2015-04-09 19:09:06 +03:00
Andrey Breslav
b810ebbb0e
Report exceptions from analyzer in the editor
...
They are rendered as errors and positioned on those expressions that cause them
2015-04-09 18:15:08 +03:00
Evgeny Gerashchenko
a2bc9cd7de
Added optimization for isReferenceTo. It quickly says false for
...
references from non-source code to anywhere except same file.
2015-04-08 14:38:04 +03:00
Natalia Ukhorskaya
649654999f
Debugger: add an option for computing delegated properties values in Variables View
2015-04-07 18:53:08 +03:00