Commit Graph

1092 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 4c64ea58d5 Rendering primary constructor in decompiler.
#KT-3168 in progress
2012-12-20 18:48:47 +04:00
Svetlana Isakova 58de1cabbc update tests according to package properties check 2012-12-18 19:47:54 +04:00
Evgeny Gerashchenko 9d0a4155bb Got rid of unnecessary 'div' elements in table. 2012-12-17 16:36:01 +04:00
Evgeny Gerashchenko 0f38e3f1fc Added test to settle format of HtmlTabledDescriptorRenderer. 2012-12-17 16:35:57 +04:00
Andrey Breslav 947ab99f53 Tests fixed after default nullability for type arguments changed to NotNull 2012-12-14 15:28:22 +04:00
Nikolay Krasko 689cff6196 KT-3157 Java void method are inserted with ; after completion
#KT-3157 Fixed
2012-12-13 21:14:53 +04:00
Nikolay Krasko 1f12658ce7 Check errors and are all actions are expected in quick fixes tests 2012-12-13 21:14:52 +04:00
Nikolay Krasko 1978d3522d Add ability to filter import usages 2012-12-13 21:14:51 +04:00
Nikolay Krasko c224b6441d KT-3133 Editor suggest to specify the package when it already has specified
Do not suggest imports in imports and in qualified names
 #KT-3133 Fixed
2012-12-07 14:50:22 +04:00
Andrey Breslav 2948875cad QuickFix: adding <*> for 'raw' type inside javaClass() call 2012-12-05 21:15:30 +04:00
Nikolay Krasko 5368e8cef3 Process imports for functioncs and properties in creating scope for file
during lazy resolve

Fix for "KT-3096 No completion in function literal" and "KT-3102 No
completion/auto-import for an extension method"

 #KT-3102 Fixed
 #KT-3096 Fixed
2012-12-03 15:17:24 +04:00
Evgeny Gerashchenko a773b8426e Removed copyrights from Java test data. 2012-11-28 15:23:55 +04:00
Andrey Breslav 304926005f Proper errors for cases like 'is Map' supported in 'when' 2012-11-27 21:15:37 +04:00
Andrey Breslav 6f4afd675f A quick fix for 'Raw type in is-expression' 2012-11-27 16:47:39 +04:00
Andrey Breslav bc7f2fd09b KT-2818 Show Parameters should show short type names instead of long
#KT-2818 Fixed
2012-11-26 15:25:19 +04:00
Andrey Breslav c849a0c4e3 Redundant/conflicting projections 2012-11-24 15:59:16 +04:00
Svetlana Isakova d0a6f6252d fixed: DEBUG_INFO_ERROR_ELEMENT should be visible in tests 2012-11-20 19:53:03 +04:00
Andrey Breslav 636deb6a09 KT-3016 Exception during analyze when some function has no name
#KT-3016 Fixed
2012-11-19 13:44:55 +04:00
Andrey Breslav a71ea5c6db EA-39003 - ISE: ResolveSession.resolveToDescriptor
Lokking up classes and objects by PSI element, rather than by name
2012-11-16 17:48:49 +04:00
Evgeny Gerashchenko 799a986812 Renamed *.jet to *.kt in test data of JetPsiCheckerTest. 2012-11-12 19:54:22 +04:00
Nikolay Krasko 0b33bf5ff6 Merge pull request #140 from crazyproger/KT-1985
KT-1985 Creating class body in time of override/implement, if necessary
2012-11-09 08:52:44 -08:00
Nikolay Krasko aca747390b KT-2849 Object that are not imported do not show up in completion
#KT-2849 Fixed
2012-11-09 14:49:28 +04:00
Nikolay Krasko 5cf708d056 Don't insert fqn even if current element is resolved into constructor 2012-11-09 14:49:26 +04:00
Nikolay Krasko dc5402337a KT-2796 Variable name is not completed in the receiver position of a chained call
#KT-2796 Fixed
2012-11-09 14:49:26 +04:00
Nikolay Krasko 91f7a094fe KT-1931 Duplicate class from Kotlin runtime in completion
#KT-1931 Fixed
2012-11-09 14:49:25 +04:00
Nikolay Krasko c081ced616 KT-2499 If Java class is imported, it is visible in completion three times: as Java class, Kotlin class and package
- Add java trace into delegation for lazy resolve session
 #KT-2499 Fixed
2012-11-09 14:49:23 +04:00
Vladimir Rudev 2dd47d6339 KT-1985 Add test case and fix minor bug
Reference compacting must be done before adding body to class.
2012-11-08 23:23:49 +04:00
Nikolay Krasko 9d65cb482d KT-2866 Names from multi-declarations do not show up in completion
Test added
 #KT-2866 Fixed
2012-11-06 18:54:35 +04:00
Andrey Breslav 14e5b777c4 EA-39104 - IAE: DescriptorResolver.getPropertyDeclarationInnerScope
Fixed
2012-11-06 12:59:37 +04:00
Evgeny Gerashchenko 5c88e40772 KT-2859 Inconsistency before reparse upon completing by Tab key
#KT-2859 fixed
2012-10-30 18:41:01 +04:00
Evgeny Gerashchenko c84cd7f961 Renamed ClassObject$ to object in JVM backend. 2012-10-30 18:41:00 +04:00
Evgeny Gerashchenko c4bda6a260 KT-3000 "Specify Type Explicitly" action works wrong for Enum
#KT-3000 fixed
2012-10-29 21:51:02 +04:00
Evgeny Gerashchenko 4e05bee22a Fixed case for intention actions texts. 2012-10-29 21:51:02 +04:00
Alexander Udalov 6e2e724b99 Implement JetPositionManager.getSourcePosition() properly
JetPositionManager now finds a PsiFile to create a SourcePosition correctly.
This fixes problems with breakpoints and navigation between frames when there's
more than one file with the given name (not necessarily in the same package)
2012-10-25 21:41:26 +04:00
Alexander Udalov 1469c1fe5e Fix numbering in debugger tests
Line number in SourcePosition is actually 0-based
2012-10-25 21:33:30 +04:00
Alexander Udalov f42478f82f JetExceptionFilter handles correctly the case of several files with the same name
Extract the logic to DebuggerUtils.findSourceFileForClass()

This fixes navigation from stack trace to a file, when there's more than one
file with this name in this package in the project
2012-10-25 21:32:32 +04:00
Alexander Udalov dd6d7d90bc Fix navigation from stack trace
JetExceptionFilter now correctly assigns hyperlinks to items of form
"namespace$...", found in exception stack traces

 #KT-2489 Fixed
 #KT-2941 Fixed
2012-10-25 21:28:41 +04:00
Alexander Udalov eb6da4bb8b Test for JetExceptionFilter 2012-10-25 21:28:40 +04:00
Nikolay Krasko b62fe5f5fb Move caret into generated else branch 2012-10-25 18:55:53 +04:00
Nikolay Krasko 33240f167d Add else entry for when quick fix 2012-10-25 18:55:52 +04:00
Andrey Breslav b5385788a3 Don't generate UNNECESSARY_SAFE_CALL on variables of generic type <T: Any?> 2012-10-25 17:05:28 +04:00
Natalia.Ukhorskaya cacb2a6761 Change tooltip message for deprecated items 2012-10-24 11:56:43 +04:00
Natalia.Ukhorskaya 37288a337b #KT-2981 Fixed Show deprecated items after not deprecated in completion list 2012-10-23 13:21:59 +04:00
Nikolay Krasko a3b86f5f8b Special behaviour for space completion char on function literal insertion 2012-10-23 12:14:53 +04:00
Andrey Breslav 80039d8533 A warning for redundant '?' in types 2012-10-19 19:24:14 +04:00
Andrey Breslav a7b6b34e29 Properly determine what classes to show in Kotlin completion:
Classes like Int and jet.Iterable should are not visible from Java
since they are erased at runtime. We call such classes non-physical,
they have to be added to completion manually.`
2012-10-18 19:57:18 +04:00
Natalia.Ukhorskaya 62d8153ada Map java.land.Deprecated to jet.deprecated
Change testData for deprecated annotation
 #KT-2947 Fixed
2012-10-18 19:14:04 +04:00
Nikolay Krasko 11da503c62 KT-2962 auto completion support for extension functions
#KT-2962 Fixed
2012-10-18 14:52:37 +04:00
Andrey Breslav 9387c974bd Resolving references to builtins: first loading Unit.jet, and then the rest of the library
Test data fixed to get rid of jet.src directory
2012-10-17 14:38:22 +04:00
Andrey Breslav ee5b50cb1b Incorrect comparison to default bound fixed 2012-10-17 13:48:07 +04:00