Commit Graph

59 Commits

Author SHA1 Message Date
Dmitry Jemerov 853fce4b71 render Markdown and support link navigation in KDoc comments 2015-03-17 19:55:49 +01:00
Pavel V. Talanov 06916d98c6 default -> companion: replace all mentions of default and default object 2015-03-17 15:47:39 +03:00
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Valentin Kipyatkov 862d391da6 KT-6834 Optimize Imports: do not modify file if import list had not change
#KT-6834 Fixed
2015-03-03 13:41:32 +03:00
Valentin Kipyatkov b0d82bef7d Tested KT-2718 Package names that match Kotlin keywords should be escaped properly 2015-03-03 13:41:32 +03:00
Pavel V. Talanov 989f07962b Write to trace in case class qualifier is a short reference to default object
This allows to fix some cases when there is a difference between explicit and short reference to default object
Fix shorten reference, optimize imports and import insert helper for default objects
ShortenReferences always transforms default object references to shorter form for now
Fix DescriptorUtils#getFqName() for default objects (affects test data mostly)
Fix DescriptorUtils#getImportableDescriptor()
2015-03-03 13:04:30 +03:00
Pavel V. Talanov cceb5738c8 Can't omit default object name in imports and types
There should be only one way to denote a type (A.Default.B can't be denoted as A.B)
2015-03-03 13:04:28 +03:00
Valentin Kipyatkov c9a05aac0f Minor changes after review 2015-02-19 14:11:16 +03:00
Valentin Kipyatkov 660ac8d63c Fixed bug 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov a137503ee9 More sophisticated import setting supported: *-import when more than N names used (default set to 5) 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov c58536f1d9 Optimize imports: fixed bug with references in class declaration header 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov d60145d3e8 Optimize imports: references via aliases are treated correctly 2015-02-19 11:07:03 +03:00
Valentin Kipyatkov 8c034d4ac7 New optimize imports algorithm supports *-imports code style 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov 2e3ed6b66f Refactored AbstractOptimizeImportsTest to inherit from AbstractImportsTest 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov 03f7c265d7 Initial implementation of new optimize imports algorithm 2015-02-19 11:07:02 +03:00
Dmitry Jemerov 7827bbf64b Standard library documentation updates. 2015-02-09 19:19:29 +01:00
Dmitry Jemerov cc5edc332d inherit documentation for properties as well as functions 2015-02-06 16:32:41 +01:00
Dmitry Jemerov dbba0b769b include TEXT_OR_LINK in the list of content tokens; fix incorrect testdata 2015-01-22 14:05:03 +01:00
Dmitry Jemerov 609914fb4a code review; add test for brackets around subject name in tag 2015-01-21 17:23:24 +01:00
Dmitry Jemerov 659c54d7e6 structured rendering of doc comments in quick documentation dialog 2015-01-21 16:20:20 +01:00
Dmitry Jemerov 0c2b230e4a allow inheriting doc comments from base classes 2015-01-20 19:20:59 +01:00
Dmitry Jemerov 100b8c2c4d Fix tests according to new PSI structure; move doc comment text calculation from JetQuickDocumentationProvider to KDocTag.getContent() 2015-01-20 18:07:18 +01:00
Andrey Breslav f41a8d2c00 Render "<" properly in HTML 2014-10-15 14:07:54 +04:00
Andrey Breslav 0cbbb6a0db Test data fixed 2014-10-13 15:37:47 +04:00
Zalim Bashorov 838c384672 "js" -> "kotlin.js" 2014-09-16 19:32:37 +04:00
Nikolay Krasko 2d72b5afc7 Render short type names in quick documentation and navigation 2014-06-05 17:47:58 +04:00
Svetlana Isakova e59fa2083e Substituted special error type for not inferred parameter
Rendered it as T (of red color) in the renderer HTML_FOR_NOT_INFERRED_TYPE_PARAMETERS
 instead of '???' without information about type parameter
2014-04-30 13:34:32 +04:00
Ilya Ryzhenkov 0267e2910d Test data fixed after stdlib updtae 2014-03-19 20:25:13 +04:00
Pavel V. Talanov d05697d3ac Optimize Imports tests: add test for qualified expression with nested enum 2014-03-06 18:45:37 +04:00
Pavel V. Talanov 809be9b069 Optimize Imports: do not keep imports of unimportable entities 2014-03-06 16:01:06 +04:00
Pavel V. Talanov c87cc0dde1 Optimize Imports tests: Switch to generated approach
Move test and rename test data
Delete unused testdata
Rewrite OptimizeImportOnFlyTest
2014-03-06 16:01:05 +04:00
Alexander Udalov f7b6457139 Replace "jet" package name with "kotlin" in testData 2014-03-02 19:55:26 +04:00
Andrey Breslav a93769b933 Test data fixed 2014-01-15 16:14:59 +04:00
Svetlana Isakova 4c41d19eb1 interpret class in class object as static nested class
removed hack in TaskPrioritizer for import class from class object
2013-12-16 16:24:21 +04:00
Mikhael Bogdanov 868f4841be Inline keyword removal 2013-11-26 12:53:06 +04:00
Nikolay Krasko 8f12db341e Remastering of documentation provider
- Remove whole file resolve
- Take already resolved element
- Get kotlin element behind the wrapper directly
- Remove outdated isKotlinDeclaration method
- More tests
2013-11-15 19:41:16 +04:00
Andrey Breslav fd73dc3dce Fix tests after stdlib rearrangement 2013-11-07 13:56:17 +04:00
Natalia Ukhorskaya 796dad5798 Do not expand imports after optimizing 2013-10-25 11:05:02 +04:00
Nikolay Krasko 141c544775 KT-3729 Quick documentation support
#KT-3729 Fixed
2013-07-04 20:48:26 +04:00
Sergey Rostov f9e8683db5 KT-1545, KT-3161 KDoc formatter 2013-05-28 13:05:28 +04:00
Sergey Rostov 2ad1bfa743 KT-3161 JetCommenter implementation stub 2013-05-28 13:05:28 +04:00
Nikolay Krasko ddb7b54eee KT-3620 Don't auto-import js.* and remove in optimize imports
KT-3620 Fixed
2013-05-20 17:56:24 +04:00
Nikolay Krasko f33792a567 Configure project descriptor with directives
Implement optimize import test with redesigned class
2013-05-20 17:56:23 +04:00
Evgeny Gerashchenko 6e43b78deb KT-3459 "import java.util.*" is removed by optimize imports if the only usage is a SAM constructor
#KT-3459 fixed
2013-04-03 17:44:01 +04:00
Natalia.Ukhorskaya 7702274633 Optimize imports when insert new import (optimize imports on the fly should be turned on)
#KT-3403 Fixed
2013-03-19 14:56:31 +04:00
Natalia.Ukhorskaya abed8b59cb Temporary disable imports sorting 2013-03-19 14:56:29 +04:00
Natalia.Ukhorskaya 0a4eaad595 Do not remove import to component functions 2013-03-15 14:23:13 +04:00
Natalia.Ukhorskaya 5bdd52c65f Do not remove import for iterator() 2013-03-15 14:23:12 +04:00
Natalia.Ukhorskaya 635f65e23d Optimize import removes reference to invoke extension function. Add test.
#KT-3398 Fixed
2013-03-15 14:23:11 +04:00
Natalia.Ukhorskaya 4039202806 Optimize imports remove reference to get extension function
#KT-3397 Fixed
2013-03-15 14:23:09 +04:00