Commit Graph

422 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 6ee4d92f36 Renamed object and its methods. 2015-03-05 15:19:33 +03:00
Evgeny Gerashchenko 6982757700 Optimized method. Moved logic about package view to JetReference. 2015-03-05 15:19:33 +03:00
Evgeny Gerashchenko 9a9b2a8540 Not finding classes for package view. It is not relevant anymore: we see Java classes as classes, not packages. 2015-03-05 15:19:30 +03:00
Evgeny Gerashchenko 7b6f83815c Unified obtaining psi element for descriptor. Now code for finding effective descriptors of fake override and finding source element for original declarations are separated. Old method DescriptorToSourceUtils.descriptorToDeclaration is still there, because it has ~90 usages. 2015-03-05 15:19:29 +03:00
Pavel V. Talanov ed4c265564 Drop ClassKind.CLASS_OBJECT
Default and non-default objects now have ClassKind.OBJECT
2015-03-05 13:06:33 +03:00
Pavel V. Talanov 350864b22f Drop some of explicit ClassKind.CLASS_OBJECT and OBJECT usages 2015-03-05 13:05:56 +03:00
Pavel V. Talanov f507af15c0 Rename in descriptors.proto: class_object_name -> default_object_name 2015-03-03 20:57:13 +03:00
Pavel V. Talanov 48fbce9582 Refactor: process mentions of class object
Rename usages that refer to "default object" concept now
Test data file names are left as is
2015-03-03 20:57:08 +03:00
Dmitry Jemerov cbb8df954c Merge remote-tracking branch 'upstream/master' 2015-03-03 12:42:25 +01:00
Dmitry Jemerov ff3cb27c8f EA-65705 - ISE: KDocReference.getTargetDescriptors 2015-03-03 12:31:40 +01:00
Valentin Kipyatkov 5b4afa140b Fixed bug in reference shortening related on on the fly import optimization 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
Yan Zhulanow ccbbaba7cd Rename jet to kotlin in Android JPS plugin 2015-02-26 15:26:01 +03:00
Yan Zhulanow d35f36da06 Rename jet to kotlin in Kotlin compiler infrastructure 2015-02-26 15:26:00 +03:00
Yan Zhulanow c756cfef86 Codebase update 2015-02-26 15:25:57 +03:00
Yan Zhulanow 9f66777185 KotlinIsReferenceToExtension was renamed to SimpleNameReferenceExtension 2015-02-26 15:25:53 +03:00
Yan Zhulanow 3f0118c88c KotlinIsReferenceToExtension extracted 2015-02-26 15:25:45 +03:00
Mikhail Mutcianko d310b2021c add android xml reference and rename handling to JetSimpleNameReference 2015-02-26 15:25:27 +03:00
Alexey Sedunov 97b0f50d35 Create from usage (function/property): Suggest separate actions for extensions and non-extension declarations
#KT-6023 Fixed
2015-02-20 17:28:36 +03:00
Alexey Tsvetkov 180272e4cb JS: underline js() errors for non-string-literal constants 2015-02-20 16:01:26 +03:00
Dmitry Jemerov a030585566 EA-64906 - NPE: KdocPackage$KDocReference$c.getParamDescriptors 2015-02-19 14:01:00 +01:00
Valentin Kipyatkov 84027124db Made code more clear 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 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 371e0baed1 Dropped methods not used anymore 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov 20cf100714 Shorten references inserts imports for global functions and properties too 2015-02-19 11:07:01 +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
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
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 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 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 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
Valentin Kipyatkov 3710d4105c Do not shorten too much 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov 78d927c3c3 Added TODO 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov 49e6b97752 Fixed important bug in reference shortening 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov 6acba00599 Working on new imports insertion on copy/paste 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov 1912f5b919 writeImportToFile removed from interface 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov 546836d5dd Fixed bug with importing some of SAM-constructors and factory functions
#KT-3449 Fixed
2015-02-12 18:18:01 +03:00
Valentin Kipyatkov 2c5953dbe6 Dropped confusing method signature 2015-02-12 17:34:51 +03:00