Nikolay Krasko
2d6dc5db68
Revise JetStructureViewElement
...
- remove 'my' prefix
- inline ItemPresentation
- use descriptor renderer instead of custom one
2014-05-30 00:04:04 +04:00
Nikolay Krasko
dfd66440b4
Tests for file structure
2014-05-30 00:04:03 +04:00
Nikolay Krasko
63d5897d93
Add structure view source roots
2014-05-30 00:04:03 +04:00
Nikolay Krasko
484fa3b7cd
Fix invalidating built-ins psi in consecutive test runs
2014-05-30 00:04:02 +04:00
Nikolay Krasko
82ddbb9d39
Minor: remove warnings
2014-05-30 00:04:01 +04:00
Alexander Udalov
a78b7fb31f
Don't add initializer to extension property on override/implement
2014-05-29 21:24:06 +04:00
Svetlana Isakova
beb7dc4524
Supported moving a labeled lambda outside parentheses
2014-05-29 17:18:47 +04:00
Svetlana Isakova
41df522234
Merge pull request #472 from wutalman/move_lambda
...
KT-4889: (Bug fix) Intention to move lambda outside parentheses now handles commas
2014-05-29 17:11:41 +04:00
Alexey Sedunov
ab5e0c8c9c
Move: Retain imports when moving top-level declaration
...
#KT-5049 Fixed
2014-05-28 21:06:00 +04:00
Andrey Breslav
df413c0b47
cast() method in DiagnosticFactory
2014-05-28 14:53:30 +04:00
Evgeny Gerashchenko
453fdb0dbe
Moved tool window factory into tool window class.
2014-05-27 16:37:32 +04:00
Evgeny Gerashchenko
cd3ffb6564
Removed resolve tool window since it is not used.
2014-05-27 16:37:31 +04:00
Natalia Ukhorskaya
3557977588
Evaluate expression: ClassCastException trying evaluate kotlin expression from java file
...
EA-56624 Fixed
2014-05-27 13:42:56 +04:00
Natalia Ukhorskaya
0c2120b578
Evaluate expression: add debug expression inside block for function literals
...
EA-56887 Fixed
2014-05-27 13:42:55 +04:00
Natalia Ukhorskaya
545b8ac7c3
Add information about codeFragment and sourceFile for exceptions from Evaluate Expression
2014-05-27 13:42:55 +04:00
Natalia Ukhorskaya
ec6809ccae
Evaluate expression: pass this as first parameter
2014-05-27 13:42:54 +04:00
Valentin Kipyatkov
2ddcae68e8
Fixed KT-5077 Code completion inserts FQ names inside lambda
...
#KT-5077 Fixed
2014-05-23 19:16:23 +04:00
Zack Grannan
b2858e5b82
Added ConvertToConcatenatedStringIntention
2014-05-23 16:27:46 +04:00
Nikolay Krasko
8e2878a6eb
Minor: annotate parameter
2014-05-23 15:36:31 +04:00
Nikolay Krasko
80d6b0800e
Make ResolveSessionForBodies.resolveToDescriptor() work for local declarations (EA-56877)
...
Fix (EA-56877)
2014-05-23 15:36:31 +04:00
Nikolay Krasko
89f80db98f
Refactoring: more suitable method
2014-05-23 15:36:30 +04:00
Nikolay Krasko
34a9d9e91d
Minor: remove warnings
2014-05-23 15:36:28 +04:00
Pavel V. Talanov
9ef700b081
Use HintManager instead of JBPopupFactory to notify of intention failure
2014-05-22 15:48:01 +04:00
Pavel V. Talanov
ca15d77f1d
Simplify logic in ReplaceWithInfixFunctionCallIntention
2014-05-22 15:47:59 +04:00
Pavel V. Talanov
3334857870
Merge PR#471: Bug Fix: KT-4613
2014-05-22 15:24:22 +04:00
Pavel V. Talanov
e2efae3f46
Fix copying filename raising an exception
...
#KT-4990 Fixed
2014-05-21 19:21:50 +04:00
Pavel V. Talanov
409f677559
Move getImportPath and related utils from JetPsiUtil to JetImportDirective
2014-05-21 15:40:35 +04:00
Pavel V. Talanov
a61ab440d7
Extract JetProperty#hasInitializer() and use it where appropriate
2014-05-21 15:39:45 +04:00
Pavel V. Talanov
9aa5681d80
Introduce JetParameter#hasValOrVarNode() and use it instead of getValOrVarNode()
2014-05-21 15:39:35 +04:00
Pavel V. Talanov
7046168868
Add isLocal() to JetClassOrObject, use it where appropriate
2014-05-21 15:39:14 +04:00
Pavel V. Talanov
b5374584bb
Add and use JetClassOrObject#isTopLevel()
2014-05-21 15:38:59 +04:00
Pavel V. Talanov
1661a2e4f5
Stubs for JetClassObject
2014-05-21 15:38:33 +04:00
Pavel V. Talanov
3ea5011549
Make JetSimpleNameExpression#isImportDirectiveExpression extension function and move it to util class
2014-05-21 15:38:17 +04:00
Pavel V. Talanov
faa30da399
Fix KotlinImportOptimizer after change to imports
2014-05-21 15:38:14 +04:00
Pavel V. Talanov
7e59f0d68c
Rename: AnnotationStub -> AnnotationEntryStub
2014-05-21 15:38:11 +04:00
Pavel V. Talanov
66aae37bc6
Refactor: add hasBody() to JetDeclarationWithBody interface
...
Use it where appropriate
2014-05-21 15:38:09 +04:00
Pavel V. Talanov
43e22ab5c1
Make JetSimpleNameExpression#getReceiverExpression extension function and move it to util class
2014-05-21 15:37:49 +04:00
Andrey Breslav
269e4ae828
SwapBinaryExpression: implementation cleaned up, tests renamed
...
#KT-4868 Fixed
2014-05-21 12:56:43 +04:00
Lingzhang
acf1dc1912
KT-4868 Bug Fix for Swap Binary Expression Intention
2014-05-21 12:56:39 +04:00
Natalia Ukhorskaya
7e66d67b95
EvaluateExpression: pass invokePolicy flag to eval4j
2014-05-21 12:26:58 +04:00
Valentin Kipyatkov
5ce3df4845
KT-5025 Unnecessary qualifier inserted for class
...
#KT-5025 Fixed
2014-05-20 18:56:48 +04:00
Natalia Ukhorskaya
58b82baa2b
Remove unnecessary error report from extract function
2014-05-20 16:12:55 +04:00
Natalia Ukhorskaya
d263621ef5
Evaluate expression: refactor error messages
2014-05-20 16:12:53 +04:00
Natalia Ukhorskaya
47ecfd0f8d
Evaluate expression: rethrow exceptions from evaluate expression
2014-05-20 15:38:14 +04:00
Svetlana Isakova
f109cfc303
Replaced PrefixExpression with LabeledExpression
...
where labeled expression is used
Added 'visitLabeledExpression'
2014-05-20 15:07:02 +04:00
Svetlana Isakova
07c0d87a8f
Rename
...
JetLabelQualifiedExpression -> JetExpressionWithLabel
JetLabelQualifiedInstanceExpression -> JetInstanceExpressionWithLabel
2014-05-20 15:07:00 +04:00
Svetlana Isakova
9b70ab7d16
Removed AT, ATAT tokens
...
Checks 'in LABELS token set' replaced with LABEL_IDENTIFIER equality
2014-05-20 15:07:00 +04:00
Alexander Udalov
5fdb9e6218
Change logic of loading "suppress" annotation class descriptor
...
Instead of loading the descriptor and checking equals(), we now check if the
annotation is in fact "suppress" by simply comparing its FQ name. This allows
us to suppress warnings while compiling built-ins: the problem is that
built-ins have its own "suppress" annotation class (defined in the sources)
which differs from the one loaded by the compiler (from kotlin-compiler.jar)
2014-05-19 19:50:58 +04:00
Alexander Udalov
357fe5cb17
Pass module to GenerationState
...
- get rid of a hack there which was used to obtain any module, to be used in
ReflectionTypes
- delete unused getError() in LightClassConstructionContext which was always
null
- fix some minor warnings
2014-05-19 19:50:56 +04:00
Alexander Udalov
a26ed665d9
Don't log stack trace for warning
...
These stack traces are confusing and create a feeling that an exception was
thrown
2014-05-19 19:50:56 +04:00