Commit Graph

478 Commits

Author SHA1 Message Date
Evgeny Gerashchenko e752dd0a80 Classified usages in "is" of when entry correctly.
#KT-7047 fixed
2015-03-20 19:34:17 +03:00
Evgeny Gerashchenko 1946360a80 Introduced "Unused receiver parameter" inspection. 2015-03-20 19:34:16 +03:00
Evgeny Gerashchenko efccde2c0b Finding implicit usages of companion object in containing class. 2015-03-20 19:34:15 +03:00
Nikolay Krasko 2e657d0d34 Use lazy initialization for built-ins in tests 2015-03-20 14:11:30 +03:00
Nikolay Krasko 126f38d79c Initialize builtins with ResolveSession to avoid counting bodies in LazyTopDownAnalyzer 2015-03-20 14:11:29 +03:00
Denis Zharkov 3e0c6fc6a2 Add quickfix "Add 'init' keyword in whole project" 2015-03-18 19:59:25 +03:00
Denis Zharkov df23ff3473 Improve AddInitKeyword quickfix
- Extract quickfix method
- Delete redundant semicolon
- Do not replace initializer PSI element
2015-03-18 19:59:25 +03:00
Stanislav Erokhin 0b76dbb492 Create DeprecatedLambdaSyntaxFix 2015-03-18 17:10:12 +03:00
Pavel V. Talanov 41b65205b0 default -> companion: fix message for quick fix 2015-03-18 14:35:53 +03:00
Alexey Sedunov 429a50ab87 Safe Delete: Support secondary constructors and delegation calls 2015-03-18 10:56:37 +03:00
Denis Zharkov e05cbf5e9f Support secondary constructors and delegation calls in Change Signature.
Initial support of Find Usages
2015-03-18 10:56:36 +03:00
Denis Zharkov 488754de7d Move declarationsSearch package from idea to idea-analysis
It will be used in later commits by idea-analysis code
2015-03-18 10:56:35 +03:00
Denis Zharkov 0debd1ce6f Make IDE parts using light methods work with JetFunction 2015-03-18 10:56:34 +03:00
Denis Zharkov d1308ebf84 Don't report unused symbol if secondary constructor used
#KT-6997 Fixed
2015-03-18 10:56:29 +03:00
Michael Nedzelsky e3bd99d510 JS: fix clash between sources and metadata in one library 2015-03-18 09:39:34 +03:00
Michael Nedzelsky 577921d4f7 add JsHeaderLibraryDetectionUtils.isJsHeaderLibraryWithSources 2015-03-18 09:39:31 +03:00
Michael Nedzelsky 6f0ee2ed94 JetSourceNavigationHelper: support for Kotlin/Javascript navigation to sources 2015-03-18 09:39:29 +03:00
Michael Nedzelsky 19950fcc60 DecompiledNavigationUtils: support navigation for Kotlin/Javascript 2015-03-18 09:39:27 +03:00
Michael Nedzelsky 803e95364c add KotlinJavascriptMetaFileDecompiler and support for .meta files 2015-03-18 09:39:25 +03:00
Michael Nedzelsky 5b6849225c DecompiledTextFactory: add buildDecompiledTextFromJSMetadata 2015-03-18 09:39:22 +03:00
Michael Nedzelsky 6b94962f77 add JsMetaFileUtils 2015-03-18 09:39:20 +03:00
Michael Nedzelsky daaa99989b IdeaModuleInfos: add LIBRARY_PREFIX constant 2015-03-18 09:39:18 +03:00
Michael Nedzelsky 7a00c3cddd KotlinClsStubBuilder class: final -> open 2015-03-18 09:39:15 +03:00
Michael Nedzelsky 094bd1da4b JsAnalyzerFacade: support for metadata 2015-03-18 09:39:09 +03:00
Yan Zhulanow 15f8ba811b Return moduleInfo UserDataProperty if it was explicitly set 2015-03-17 17:35:24 +03: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 2a6facaef6 default -> companion: default object -> class object in project code, builtins and libs code 2015-03-17 15:46:48 +03:00
Alexander Udalov 4b4f6a713a Implement "reflection not found" inspection and quick fix 2015-03-16 20:54:10 +03:00
Evgeny Gerashchenko 22a41e8012 Introduced category for default object usages. 2015-03-16 14:11:41 +03:00
Evgeny Gerashchenko ccd1701f78 Supported renaming of default object. Named only objects are supported
yet.
2015-03-16 14:11:39 +03:00
Evgeny Gerashchenko 9bcf9dceef Supported default objects in class usages. 2015-03-16 14:11:37 +03:00
Evgeny Gerashchenko 8874ad2c96 Minor. Better code in method. 2015-03-16 14:11:36 +03:00
Pavel V. Talanov c0a031eafe Support secondary constructors in decompiled text
Build cls stubs for secondary constructors
2015-03-13 20:17:32 +03:00
Pavel V. Talanov 026e35b6d0 DecompiledTextFactory: use separate descriptor renderer to render keys
Previously the same render that renders decompiled text was used by accident
2015-03-13 20:17:14 +03:00
Michael Nedzelsky 7a5e54c691 jsHeaderLibraryDetectonUtil: refactoring after conversion 2015-03-12 16:35:36 +03:00
Michael Nedzelsky a29172c1ca jsHeaderLibraryDetectonUtil: rename .java -> .kt 2015-03-12 16:35:33 +03:00
Michael Nedzelsky 4dc4e6a021 jsHeaderLibraryDetectonUtil.java: convert to kotlin 2015-03-12 16:35:30 +03:00
Andrey Breslav 44e7df2809 Minor. Formatting and simplification 2015-03-11 19:38:17 +03:00
Andrey Breslav 36bbd2c0e3 ErrorReporter is now Java-independent 2015-03-11 19:38:15 +03:00
Denis Zharkov 1703e16913 Add quickfix: remove 'init' modifier 2015-03-11 17:45:26 +03:00
Denis Zharkov bdd2756bd1 Rename ThisReference -> ConstructorDelegationReference 2015-03-11 17:45:22 +03:00
Pavel V. Talanov a701cb2bd9 Add quick fix to replace all 'class object's in project 2015-03-10 18:21:33 +03:00
Pavel V. Talanov 81f9d34d1a Add quick fix for deprecated 'class object' syntax 2015-03-10 18:21:33 +03:00
Pavel V. Talanov 3cfcef9da4 Render warning on 'class object' as deprecated 2015-03-10 18:21:32 +03:00
Pavel V. Talanov 9ecf95532e Replace 'class object' with default object in project code 2015-03-10 18:07:46 +03:00
Alexander Udalov 71a3f35b7e Rename LocalClassFinder -> DirectoryBasedClassFinder
It was never related to local classes
2015-03-07 02:30:28 +03:00
Alexander Udalov e136025ac5 Show "kotlin.Any" in decompiled text for local/anonymous types 2015-03-07 02:30:28 +03:00
Andrey Breslav bbb59773aa filesToAnalyzeCompletely removed 2015-03-06 21:59:05 +03:00
Pavel V. Talanov b51368a5e5 Fix cls builder for new decompiler 2015-03-06 19:36:58 +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