Commit Graph

1211 Commits

Author SHA1 Message Date
Andrey Breslav aa6a509e8d A navigation test for one fake override 2013-08-28 13:52:46 +04:00
Andrey Breslav 9fa8ee10dc Tests for navigation to property delegates' accessors 2013-08-28 13:49:52 +04:00
Andrey Breslav d19b3a5628 Do not break the string after REF: by commas
Example:
// REF: (in Foo).bar(Any?,Any?)

When broken by commas it produces a wrong list of expected references
Solution:
* Use findLinesWithPrefixesRemoved() instead of findStringWithPrefixes()
2013-08-28 13:49:52 +04:00
Andrey Breslav 945786e628 Rename 2013-08-28 13:49:52 +04:00
Andrey Breslav 3002ac96f0 Supported converting member properties to extensions
Additionally, we now generate <selection>throw UnsupportedOperationException()</selection> when a missing body is added
2013-08-27 15:03:27 +04:00
Andrey Breslav c02f0a7d04 Intention to convert a member to an extension 2013-08-27 15:03:27 +04:00
Pavel V. Talanov 881a633ba0 Get rid of DescriptorSearchRule.ERROR_IF_FOUND_IN_KOTLIN
Rename other constants in DescriptorSearchRule
Inline methods with default values for DescriptorSearchRule
2013-08-26 22:07:36 +04:00
Pavel V. Talanov 385c15d0e2 Restructure JetDecompiledData
JetDecompiledData now stores file text and uses descriptors serialized to String to find declarations
2013-08-26 17:58:51 +04:00
Alexander Udalov 2d7a5ebf36 Simplify injectors for frontend.java
- delete InjectorForJavaSemanticServices, replace its usages with
  InjectorForJavaDescriptorResolver
- delete unneeded fields and parameters of InjectorForJavaDescriptorResolver
2013-08-26 15:59:57 +04:00
Nikolay Krasko eaf0c2cb84 Fix problem of getting reference and parameter in functional literal inside other parameter (EA-48757) 2013-08-19 14:44:50 +04:00
Nikolay Krasko 491150cf22 Use version of test with initializing post startup activities to initialize builtins 2013-08-16 18:28:08 +04:00
Nikolay Krasko 3fd265e34a Remove assert about error type for removing type annotation 2013-08-16 18:28:06 +04:00
Nikolay Krasko 26f14a67ee Fix "Descriptor of property not available in binding context" assert for declarations in bodies 2013-08-16 18:28:05 +04:00
Nikolay Krasko 95559e09eb Refactoring: Remove WholeProjectAnalyzerFacade (methods were inlined) 2013-08-15 19:04:41 +04:00
Alexey Sedunov 497d3c6706 Simplify "Find Usages" test data, Move configuration options to test files 2013-08-13 15:26:24 +04:00
Alexey Sedunov 76c81aa3f0 Add support of extension search 2013-08-13 15:26:08 +04:00
Alexey Sedunov ced288452c Implement "Find usages with options" for kotlin functions 2013-08-13 15:25:04 +04:00
Alexey Sedunov ea7a377bea Find usages test: Move test data out of code 2013-08-13 14:53:50 +04:00
Alexey Sedunov 2704328160 Implement "Safe Delete" refactoring for value parameters 2013-08-01 15:41:34 +04:00
Alexey Sedunov 6ef8f04a01 Generate tests for type parameters
Conflicts:
	generators/org/jetbrains/jet/generators/tests/GenerateTests.java
2013-08-01 13:18:46 +04:00
Alexey Sedunov 203e80debe Implement "Safe Delete" refactoring for type parameters
Conflicts:
	idea/src/org/jetbrains/jet/plugin/refactoring/safeDelete/KotlinSafeDeleteProcessor.java

Conflicts:
	generators/org/jetbrains/jet/generators/tests/GenerateTests.java

Conflicts:
	generators/org/jetbrains/jet/generators/tests/GenerateTests.java
2013-07-29 19:24:53 +04:00
Alexey Sedunov 639336b2f5 Implement "Safe Delete" refactoring for properties 2013-07-29 19:24:13 +04:00
Nikolay Krasko 7ec170f6ec Fix absence of reference for type parameters 2013-07-29 18:20:09 +04:00
Nikolay Krasko 2b0232307c Fix error on getting descriptor for class object 2013-07-27 03:57:30 +04:00
Nikolay Krasko 86dd6a3aa0 Introduce cancelable wrapping for resolve cache 2013-07-27 03:57:28 +04:00
Nikolay Krasko b0b173eb5a Resolve descriptors in error class objects 2013-07-27 03:57:24 +04:00
Nikolay Krasko a69b2883ee Make resolve session be able to resolve class parameters 2013-07-27 03:57:23 +04:00
Nikolay Krasko 51f690ed4d Refactor additional resolve for reference in packages 2013-07-27 03:57:21 +04:00
Nikolay Krasko 9167e4f1ee Make resolve session be able to resolve class constructor parameters 2013-07-27 03:57:20 +04:00
Nikolay Krasko 27efc3b202 Additional resolve for annotations in lazy resolve 2013-07-27 03:57:18 +04:00
Nikolay Krasko b6be094724 Force resolve imports for elements in imports 2013-07-27 03:57:17 +04:00
Nikolay Krasko 32b04531f6 Store information about package declaration in context
This information is used for resolving references in plugin
2013-07-27 03:57:16 +04:00
Nikolay Krasko 2621df3243 Auto generate reference tests 2013-07-27 03:57:13 +04:00
Nikolay Krasko cb19450d8d Refactor multi-reference tests 2013-07-27 03:57:10 +04:00
Nikolay Krasko 970586bfdd Use directive configuring in resolve reference tests 2013-07-27 03:57:10 +04:00
Nikolay Krasko bf8d5c37ed Refactoring: Fix warnings about absent final and spelling mistake 2013-07-27 03:57:08 +04:00
Zalim Bashorov b14a5f3ea1 Migrate to IDEA 130.1335 2013-07-26 21:33:08 +04:00
Evgeny Gerashchenko a13092e525 Supported inlining constant properties. 2013-07-24 16:03:01 +04:00
Evgeny Gerashchenko 5aa4672d32 Adding parameter types for functions if necessary.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko 0367f1836d Adding type arguments if necessary.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko c22f54055e Supported vals initialized after.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko 72ed74ab9a Adding {} in string template if necessary.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko 55b221776b Inline adds parentheses when it is necessary.
Test data for Remove Unnecessary Parentheses was updated, since parentheses in foo && (bar && baz) is not "unnecessary": removing it changes program semantics.

 #KT-2637 in progress
2013-07-23 21:43:04 +04:00
Evgeny Gerashchenko a9a960fd38 Basic local val inlining support.
#KT-2637 in progress
2013-07-23 21:43:04 +04:00
Alexey Sedunov cd6b6e4934 Implement "Safe Delete" refactoring for named functions
Conflicts:
	idea/src/org/jetbrains/jet/plugin/refactoring/safeDelete/KotlinSafeDeleteProcessor.java
2013-07-19 19:53:50 +04:00
Alexey Sedunov f2dd8a6b60 Implement "Safe Delete" refactoring for classes and objects 2013-07-12 21:06:05 +04:00
Alexey Sedunov 21d6666c26 Implement Kotlin usage classification 2013-07-10 18:46:10 +04:00
Alexey Sedunov 6e513f067f KT-3736 Fixed: "Move Statement Down doesn't work to improperly formatted code" 2013-07-10 18:46:09 +04:00
Alexey Sedunov 3a881672e8 KT-3732 "Move statement" should respect DSLs 2013-07-09 18:33:33 +04:00
Alexey Sedunov 4a19d4f77b Fix "Move statement" for the cases when nested closure is used (KT-3735) 2013-07-08 19:16:58 +04:00