Commit Graph

25080 Commits

Author SHA1 Message Date
Yan Zhulanow 3624c4e5dc Use target priorities to split annotations to different descriptors 2015-08-31 15:33:05 +03:00
Yan Zhulanow 9838f9c942 Check deprecated annotations with use site targets 2015-08-31 15:33:04 +03:00
Yan Zhulanow 1a477bd540 Add field and property deserialization tests 2015-08-31 15:33:04 +03:00
Yan Zhulanow 1b9dab47ec Deserialize property and field annotations 2015-08-31 15:33:03 +03:00
Yan Zhulanow f86fe6a8d5 Allow multiple non-repeatable annotations with different targets 2015-08-31 15:33:02 +03:00
Yan Zhulanow 4ead50352d Put @receiver-targeted annotations on receiver type 2015-08-31 15:33:01 +03:00
Yan Zhulanow 91626cf02e Check receiver type annotations in JetCallableDeclaration 2015-08-31 15:33:00 +03:00
Yan Zhulanow 54f0da300c Force resolve type annotations 2015-08-31 15:32:59 +03:00
Yan Zhulanow a3ba1af421 Generate receiver annotations using extension receiver type parameter 2015-08-31 15:32:59 +03:00
Yan Zhulanow 866552f6ab Redundant annotation target warning 2015-08-31 15:32:58 +03:00
Yan Zhulanow 5cb74a2b12 Do not allow field annotations on properties 2015-08-31 15:32:57 +03:00
Yan Zhulanow 8b47f56eb9 Allow property annotations on primary constructor parameter 2015-08-31 15:32:56 +03:00
Yan Zhulanow 08c678ef46 Deserialize receiver parameter annotations for extension functions 2015-08-31 15:32:55 +03:00
Yan Zhulanow 397da8746a Report more detailed message if use site target is available 2015-08-31 15:32:55 +03:00
Yan Zhulanow 6e415984f0 Move AnnotatedWithAdditionalAnnotations to backend 2015-08-31 15:32:54 +03:00
Yan Zhulanow b38b7071b7 Targeted annotation diagnostic tests 2015-08-31 15:32:53 +03:00
Yan Zhulanow 8849d7d10a Check @param target applicability 2015-08-31 15:32:52 +03:00
Yan Zhulanow e72ce555e0 Move annotation use-site checks to AnnotationUseSiteTargetChecker 2015-08-31 15:32:51 +03:00
Yan Zhulanow 8741b2d083 Allow targeted annotations in parameter list 2015-08-31 15:32:50 +03:00
Yan Zhulanow 8e65ceefd0 Check use-site targeted annotations with AnnotationTarget in declaration-site 2015-08-31 15:07:16 +03:00
Yan Zhulanow a1eb544807 Parser tests for targeted annotations 2015-08-31 15:07:15 +03:00
Yan Zhulanow 2f1def6832 Support @param and @sparam annotations 2015-08-31 15:05:05 +03:00
Yan Zhulanow 00cfb3054a Support @receiver annotations 2015-08-31 15:05:05 +03:00
Yan Zhulanow 93579564c8 Support @property annotations 2015-08-31 15:05:04 +03:00
Yan Zhulanow b1a28bcc6a Support @get and @set annotations 2015-08-31 15:05:04 +03:00
Yan Zhulanow 1010658a85 Parse other use-site targeted annotations 2015-08-31 15:05:03 +03:00
Yan Zhulanow d56a3f97c6 Render annotations with use-site target 2015-08-31 15:05:03 +03:00
Yan Zhulanow 2bacbc9046 Support @field: annotations 2015-08-31 15:05:02 +03:00
Dmitry Jemerov 0499335c34 remove non-standard implementation of collectRefs() which is no longer necessary 2015-08-31 12:19:26 +02:00
Dmitry Jemerov 8abc6892ad use references search in introduce parameter 2015-08-31 12:19:23 +02:00
Dmitry Jemerov adb10136a3 use ReferencesSearch when converting between function and property 2015-08-31 12:18:30 +02:00
Dmitry Jemerov 37c40c9a23 change the origin of light methods for property accessors to the property itself 2015-08-31 12:18:25 +02:00
Dmitry Jemerov e283dbb8f4 when renaming a companion object, filter out references to companion object via its containing class, which shouldn't be updated by the rename 2015-08-31 12:08:13 +02:00
Dmitry Jemerov e99316d22e rename tests: defaultObject -> companionObject 2015-08-31 12:08:12 +02:00
Dmitry Jemerov 039738a995 consider a companion object to be used if it contains any members 2015-08-31 12:08:05 +02:00
Dmitry Jemerov c645b9c237 RenameKotlinClassProcessor: J2K 2015-08-31 12:08:04 +02:00
Dmitry Jemerov 3437891848 RenameJetClassProcessor: rename to .kt 2015-08-31 12:08:03 +02:00
Dmitry Jemerov 1f170e48e7 use references search for unused symbol inspection 2015-08-31 12:08:02 +02:00
Alexander Udalov fb09c91714 Minor, rename PlatformStatic* -> JvmStatic* in reflection 2015-08-29 18:42:09 +03:00
Alexander Udalov 408a86c761 Minor, add toString() for easier debug 2015-08-29 18:37:42 +03:00
Alexander Udalov a1097f7081 Add val KClass.staticProperties: Collection<KProperty0<*>>
To get static fields from Java classes
2015-08-29 18:37:41 +03:00
Alexander Udalov 593937d302 Support KCallable.callBy with map of parameters to arguments
callBy is able to handle optional parameters.

 #KT-8827 Fixed
2015-08-29 18:37:40 +03:00
Alexander Udalov 0d62680f63 Support KParameter.isOptional
#KT-8825 Fixed
2015-08-29 18:37:39 +03:00
Alexander Udalov fd97383f8a Fix mapping of jvmStatic functions
#KT-8800 Fixed
2015-08-29 18:37:38 +03:00
Alexander Udalov 9a8cf23ed4 Support KClass.companionObject and companionObjectInstance
#KT-7636 Fixed
2015-08-29 18:37:32 +03:00
Alexander Udalov 94d45f35d4 Support KClass.nestedClasses 2015-08-29 17:59:45 +03:00
Valentin Kipyatkov e8dc9ede31 Implemented HiddenDeclaration annotation (doc-comment to be added!) 2015-08-29 10:54:59 +03:00
Stanislav Erokhin ba4fb3e37c Add hack for Repl 2015-08-29 01:46:00 +03:00
Stanislav Erokhin 2cb3842c39 Take snapshot for LexicalWritableScope when subscopes created 2015-08-29 01:45:59 +03:00
Stanislav Erokhin 4c7bafce45 Global replace JetScope to LexicalScope 2015-08-29 01:45:56 +03:00