Valentin Kipyatkov
53e751be1f
Caching of partial body resolve
2015-07-16 13:49:19 +03:00
Valentin Kipyatkov
077c8a82c7
Converted ResolveElementCache to Kotlin (step 2)
2015-07-16 13:49:19 +03:00
Valentin Kipyatkov
bf7afae805
Converted ResolveElementCache to Kotlin (step 1)
2015-07-16 13:49:19 +03:00
Valentin Kipyatkov
5735248be8
Fixed highlight usages
2015-07-16 13:49:19 +03:00
Valentin Kipyatkov
d1db0ce30a
Fixed tests
2015-07-16 13:49:18 +03:00
Valentin Kipyatkov
27a23e8e07
Fixed package directive completion
2015-07-16 13:49:18 +03:00
Valentin Kipyatkov
e52b524d9a
Fixed rename of operator functions
2015-07-16 13:49:18 +03:00
Valentin Kipyatkov
28e9fbf9b8
Correct synthetic extensions for methods like "getURL"
2015-07-16 13:49:18 +03:00
Valentin Kipyatkov
22e631dda3
Naming with "is" supported for synthetic extensions
2015-07-16 13:49:18 +03:00
Valentin Kipyatkov
27b4960001
Fixed crash on searching constructor usages
2015-07-16 13:49:18 +03:00
Valentin Kipyatkov
283c8668f5
Don't use PsiElement.getReference() on JetElement
2015-07-16 13:49:17 +03:00
Valentin Kipyatkov
d8d00a83bb
Separated references to get/set methods on synthetic extension usage into separate PsiReference's to avoid putting usages like "x++" into "Dynamic usages" group
2015-07-16 13:49:17 +03:00
Valentin Kipyatkov
f53a0b0536
Converted JetNameReferenceExpression to Kotlin
2015-07-16 13:49:17 +03:00
Valentin Kipyatkov
fac15d2933
Minor simplification in CompletionSession
2015-07-16 13:49:17 +03:00
Valentin Kipyatkov
42678bc79a
Minor optimization
2015-07-16 13:49:17 +03:00
Valentin Kipyatkov
962bef6584
Moved methods
2015-07-16 13:49:17 +03:00
Valentin Kipyatkov
a08fe96a8b
Renamed methods
2015-07-16 13:49:16 +03:00
Valentin Kipyatkov
b33202d32d
Hiding getters and setters from completion
2015-07-16 13:49:16 +03:00
Valentin Kipyatkov
3faa0a193d
Removed obsolete comment
2015-07-16 13:49:16 +03:00
Valentin Kipyatkov
92349e41ec
Reordered parameters
2015-07-16 13:49:16 +03:00
Valentin Kipyatkov
63614c5892
Initial implementation of renaming extension property usages on getter or setter rename
2015-07-16 13:49:16 +03:00
Valentin Kipyatkov
13f0d3ca23
Initial implementation of usage search for get/set methods in form of synthetic extension
2015-07-16 13:49:16 +03:00
Valentin Kipyatkov
73dd4a214e
Reference resolve from synthetic extension usages to get/set-methods
2015-07-16 13:49:15 +03:00
Valentin Kipyatkov
2ec6f50402
Set method should not accept vararg
2015-07-16 13:49:15 +03:00
Valentin Kipyatkov
82f1eafa0b
No synthetic properties of type Unit
2015-07-16 13:49:15 +03:00
Valentin Kipyatkov
bfdc74ce74
Intention&inspection to use synthetic property instead of get/set method call
2015-07-16 13:49:15 +03:00
Valentin Kipyatkov
a014f5c8db
No synthetic properties with incorrect names
2015-07-16 13:49:15 +03:00
Valentin Kipyatkov
fa02a15212
One more test for completion
2015-07-16 13:49:14 +03:00
Valentin Kipyatkov
9b3cbc6f25
Fixed completion for safe call
2015-07-16 13:49:14 +03:00
Valentin Kipyatkov
48b163758f
Fixed caching
2015-07-16 13:49:14 +03:00
Valentin Kipyatkov
46a512215e
Used utility
2015-07-16 13:49:14 +03:00
Valentin Kipyatkov
434e3ab38b
Moved utility functions for JetType from IDE to core
2015-07-16 13:49:14 +03:00
Valentin Kipyatkov
16c4f5bedd
Renamed a class
2015-07-16 13:49:14 +03:00
Valentin Kipyatkov
8bde9b098a
Code refactoring
2015-07-16 13:49:13 +03:00
Valentin Kipyatkov
17442617bb
Synthetic extensions suggested in completion
2015-07-16 13:49:13 +03:00
Valentin Kipyatkov
08754b9fc0
Support for synthetic extensions in codegen
2015-07-16 13:49:13 +03:00
Valentin Kipyatkov
2e351f3e4d
Initial implementation of synthetic extensions resolve
2015-07-16 13:49:13 +03:00
Valentin Kipyatkov
c92b43c94b
Added JetScope.getSyntheticExtensionProperties()
2015-07-16 13:49:13 +03:00
Natalia Ukhorskaya
e2fa9397c8
Debugger: fix context element in SourcePositionProvider
2015-07-16 13:09:45 +03:00
Natalia Ukhorskaya
98da75c768
Debugger: check that file isn't shorter than breakpoint line (ex. after deleting some lines in file during debug)
2015-07-16 13:09:43 +03:00
Natalia Ukhorskaya
03de31f1b6
Debugger: do not throw assert when context for codeFragment is null (ex. when file was changed and psi isn't valid any more)
2015-07-16 13:09:41 +03:00
Natalia Ukhorskaya
ec3c667f38
Debugger: allow Evaluate Expression in context of File (for some synthetic methods or when file was changed during debug and breakpoint line no longer match the actual line)
2015-07-16 13:09:26 +03:00
Natalia Ukhorskaya
75edfa6527
Debugger: do not resolve symbols on breakpoint line in Evaluate Expression
2015-07-16 13:08:31 +03:00
Natalia Ukhorskaya
9a53142b26
Refactoring: move similar part for obtaining scope for codeFragment to JetCodeFragment
2015-07-16 13:04:04 +03:00
Natalia Ukhorskaya
fdfabebcce
Fix debugger test on Java7
2015-07-16 10:24:33 +03:00
Pavel V. Talanov
c313887641
Split CompileTimeConstant into two entities
...
1. ConstantValue
* just holds some value and its type
* implementations for concrete constants
2. CompileTimeConstant
* is only produced by ConstantExpressionEvaluator
* has additional flags (canBeUsedInAnnotation etc)
* has two implementations TypedCompileTimeConstant containing a constant value
and IntegerValueConstant which does not have exact type
* can be converted to ConstantValue
Adjustt usages to use ConstantValue if flags are not needed
Add tests for some uncovered cases
2015-07-16 02:28:05 +03:00
Pavel V. Talanov
155f00578d
Builtins are passed into builtins module
...
Fixes circular dependency
2015-07-15 21:09:59 +03:00
Pavel V. Talanov
5dc5d77e60
Inject builtins in constants
2015-07-15 21:09:52 +03:00
Pavel V. Talanov
ea1a85e78c
Introduce CompileTimeConstantFactory
2015-07-15 21:09:40 +03:00
Pavel V. Talanov
b0a4520710
Refactor compile constants to reduce boolean parameter hell
2015-07-15 20:57:02 +03:00