Commit Graph

6797 Commits

Author SHA1 Message Date
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
Valentin Kipyatkov 63182a53c6 Fixed getFileTopLevelScope implementation 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov 0a363fc371 Import is placed in some specific order on adding 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov 371e0baed1 Dropped methods not used anymore 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov 7ad1933695 Dropped obsolete tests 2015-02-19 11:07:01 +03:00
Valentin Kipyatkov 20cf100714 Shorten references inserts imports for global functions and properties too 2015-02-19 11:07:01 +03:00
Michael Bogdanov 664e2781e8 Enable inline in bytecode toolwindow by default 2015-02-19 10:32:04 +03:00
Michael Bogdanov 758c147835 Analyze inlined declarations in bytecode toolwindow 2015-02-19 10:32:00 +03:00
Pavel V. Talanov 5c9554e703 Minor: remove redundant class object 2015-02-18 19:34:02 +03:00
Pavel V. Talanov d6a942a574 Remove all deprecated OBJECT$ usages from project code 2015-02-18 19:33:56 +03:00
Alexey Sedunov f1b3bb6ae7 Join Lines: Fix test data since IDEA now converts single-line comments to block ones when joining lines 2015-02-18 18:53:36 +03:00
Zalim Bashorov 2a593fc437 IDEA: fixed breakpoints in JavaScript debugger. 2015-02-18 18:53:34 +03:00
Nikolay Krasko fd616a3c8d Update to IDEA 140.2493.5 2015-02-18 18:53:21 +03:00
Evgeny Gerashchenko f870388962 Fixed compilation error for IDEA 14.1+ (140 branch) 2015-02-18 18:51:58 +03:00
Nikolay Krasko 440cc20ed9 Add expected action 2015-02-18 18:51:56 +03:00
Nikolay Krasko 20b7a55bf2 Add overrides in order to fix compilation errors 2015-02-18 18:51:55 +03:00
Natalia Ukhorskaya 601a33f772 Fix stepping test's testData 2015-02-18 18:51:51 +03:00
Evgeny Gerashchenko f9f75f1155 Fixed compilation error (IDEA API changed). 2015-02-18 18:51:50 +03:00
Evgeny Gerashchenko 501cb08154 Fixed compilation (IDEA API changed). 2015-02-18 18:51:49 +03:00
Evgeny Gerashchenko 1c1ead0471 Minor. Fixed case of test data file. 2015-02-18 14:26:20 +03:00
Evgeny Gerashchenko a8179a497e KT-5146 "Remove explicit type arguments" should highlight type arguments as unused (not as warning)
#KT-5146 fixed
2015-02-18 13:37:36 +03:00
Evgeny Gerashchenko b1840ebd99 Suppressing unused parameter annotation when function is entry point. 2015-02-18 13:37:36 +03:00
Evgeny Gerashchenko 943131b7b0 Added button to configure annotations for methods which shouldn't be marked as unused. 2015-02-18 13:37:35 +03:00
Alexander Udalov 6ce8d6bd2e Serialize descriptors for local/anonymous classes on JVM
Reflection needs this information to work for local classes and anonymous
objects
2015-02-16 21:46:21 +03:00
Alexander Udalov cd9898fc43 Minor, rename and invert meaning of ClassId.isTopLevelClass
Also use a simpler constructor and simplify ClassDeserializer.ClassKey
2015-02-16 20:19:50 +03:00
Alexander Udalov e812c4e67f Introduce KotlinSyntheticClass.Kind.LOCAL_TRAIT_IMPL 2015-02-16 20:19:50 +03:00
Alexander Udalov ce26ce0458 Drop "extra visibility" from binary format
Descriptors of Kotlin symbols should always have a visibility known to Kotlin
2015-02-16 20:19:49 +03:00
Alexander Udalov 245b16dccc Drop unneeded factory methods due to ABI version increase
Either ReflectionFactory or direct creation is now used instead
2015-02-16 20:19:14 +03:00
Pavel V. Talanov 32aff01969 Increase abi version 2015-02-16 15:38:48 +03:00
Pavel V. Talanov 9e48631ccb Minor: Remove redundant implementation getDefaultObjectDescriptor() in missingDependencies.kt 2015-02-16 15:38:47 +03:00
Pavel V. Talanov f0003449e5 Test named class object reference resolve 2015-02-16 15:38:46 +03:00
Pavel V. Talanov ed5e2a21d1 Restore some of the tests for deprecated OBJECT$ field 2015-02-16 15:38:45 +03:00
Pavel V. Talanov f482768acf Introduce ClassDescriptor#getDefaultObjectDescriptor()
ClassDescriptor#getClassObjectDescriptor (with old semantics) is now a utility
Process usages and replace with calls to a new method where appropriate
2015-02-16 15:38:42 +03:00
Pavel V. Talanov 945072a129 Drop DeserializedResolverUtils and it's usages 2015-02-16 15:38:41 +03:00
Pavel V. Talanov 11ed783e1e Refactor: get rid of MemberFqNameProvider 2015-02-16 15:38:41 +03:00
Pavel V. Talanov d52d1035d0 Fix newly introduced NPE in UnusedSymbolInspection
getName() and getNameIdentifier() are not in sync for class objects
2015-02-16 15:38:40 +03:00
Pavel V. Talanov d689c11848 Update test for class object completion 2015-02-16 15:38:39 +03:00
Pavel V. Talanov 2b0e823695 Improve test for deprecated class object 2015-02-16 15:38:38 +03:00
Pavel V. Talanov 1972c2f177 Update test data for various tests
Due to slight semantic changes after class object refactor
2015-02-16 15:38:37 +03:00
Pavel V. Talanov 75f55dd99a Update test data that mentioned old <class-object-for-..> name 2015-02-16 15:38:35 +03:00
Pavel V. Talanov a1f4c06a49 Update test data that mentioned old JvmAbi constants 2015-02-16 15:38:34 +03:00
Pavel V. Talanov be5f00ad1c Update test data for various stub tests 2015-02-16 15:38:33 +03:00
Pavel V. Talanov d9d3f68a39 Drop JetClassObject element and its usages
as class objects are now represented by JetObjectDeclaration element
2015-02-16 15:38:31 +03:00
Pavel V. Talanov 42d2b97c09 Remove all class object related constants and utils from JvmAbi 2015-02-16 15:38:30 +03:00
Pavel V. Talanov 72f94963ab Tests: add resolve test for named class object 2015-02-16 15:38:28 +03:00
Pavel V. Talanov 0343fd8fc7 Rework class objects
Class objects have name "Default" by default
Do not produce synthetic class objects
Class objects have new semantics:
    class "A" has class object "B" if literal "A" can be used as a value of type "B"
Class objects act like ordinary nested objects
    i.e. are accessible from class scope via getClassifier()
Jvm backend: class object fields and class have the name of class object ("Default")
	as opposed to special "OBJECT$" and "object"
Serialization: only the name of class object is needed to serialize data
2015-02-16 15:38:27 +03:00
Evgeny Gerashchenko 7ed36f08e6 Moved cli-common before idea-full. cli-common exports dependency on cli-parser library of version different from packaged in idea-full. 2015-02-13 21:51:51 +03:00
Evgeny Gerashchenko 1f10cbb0d5 Moved constant to idea module and removed redundant dependency. 2015-02-13 21:51:50 +03:00