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
Alexander Udalov
1706bd4a00
Render the descriptor in "cannot infer visibility" message
...
Otherwise it's unclear what member is problematic if it's a fake override
(because the diagnostic in that case is reported on the whole class)
2014-05-22 19:32:10 +04:00
Alexander Udalov
9760f30c99
Don't allow fake override to inherit implementation with wrong return type
...
#KT-4763 Fixed
2014-05-22 19:32:10 +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
b4b24262a0
Build stubs for insides of local objects and classes
2014-05-21 16:50:59 +04:00
Pavel V. Talanov
e33144f89a
Define toString() for stub impl classes via reflection
...
Update outdated test data for stub builder test
2014-05-21 16:50:55 +04:00
Pavel V. Talanov
ef4c15a2c8
Implement getDebugText() which should be used instead of getText() for debug purposes
2014-05-21 15:40:36 +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
c9eb313ec4
Add MultiFileHighlightingTest which checks that other files are not parsed during highlighting
2014-05-21 15:40:30 +04:00
Pavel V. Talanov
b3898cfb0d
Force the user of AstAccessControl to write at least one test violating restriction, implement such tests for existing tests
...
This is needed because the slightest change in the test setup can make the check useless without the client knowing
The solution is ugly but gives at least some protection against this
2014-05-21 15:40:29 +04:00
Pavel V. Talanov
8354233f85
Add multi file test for completion of enum entry
2014-05-21 15:40:14 +04:00
Pavel V. Talanov
4c39886edc
Minor: fix test data
2014-05-21 15:40:13 +04:00
Pavel V. Talanov
fbf2cded0d
Refactor AbstractMultiFileJvmBasicCompletionTest to extend CompletionTestCase
...
Extract common code from JetFixtureCompletionBaseTestCase to CompletionTestUtil.kt
Reason for this change is that I couldn't get the check that prohibits tree loading to work with fixture test case
2014-05-21 15:40:12 +04:00
Pavel V. Talanov
0d4feb3bf3
JetInitializerList#getInitializers() by stub
2014-05-21 15:40:09 +04:00
Pavel V. Talanov
fd3d322300
Add LazyResolveByStubTest
...
Tests that lazy resolve uses stubs instead of AST
2014-05-21 15:40:05 +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
eb27020340
Stubs: reduce the amount of boilerplate code
...
Extract a common type for placeholder stub elements
2014-05-21 15:37:59 +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
3bd1329846
Fix file name case
2014-05-21 13:38:08 +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
c56b5bfd61
Added 2 tests
2014-05-20 18:56:48 +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
c7a7f31e82
Introduce module 'reflection', move KFunctionN to it
...
Metadata for KFunction classes is now longer serialized along with built-in
classes. This effectively means that it's no longer possible to find KFunction
classes via dependency on built-ins. There should be a kotlin-runtime library
in the specified classpath for reflection types to be resolvable.
A lot of tests were moved and changed, because tests on callable references
require stdlib in classpath from now on
2014-05-19 19:50:57 +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