Nikolay Krasko
4aa3dff2a2
Update to ASM5
2014-04-01 02:55:05 +04:00
Nikolay Krasko
95fd870988
Update to idea 135.666 EAP with asm5 library
2014-04-01 02:55:00 +04:00
Evgeny Gerashchenko
04a6b10f7a
Minor. Renamed annotationDeserializer → deserializers.
2014-03-31 22:39:59 +04:00
Andrey Breslav
298ddcf0ad
Do not resolve annotation arguments when only a type is requested
...
This replaces the logic that always did complete constructor call resolution by a request to typeResolver when only a type is needed
2014-03-26 21:10:29 +04:00
Andrey Breslav
1cdfab761a
Lazy annotation resolution supported
2014-03-26 21:10:29 +04:00
Andrey Breslav
27d4e583a8
Unneeded field removed
2014-03-26 21:10:28 +04:00
Andrey Breslav
df1f0886c5
Inject a project into TDA for proper lazy session initialization
2014-03-26 21:10:27 +04:00
Evgeny Gerashchenko
9ecd680fd4
Rewritten PackageFragmentDescriptor to Kotlin.
2014-03-26 00:41:54 +04:00
Evgeny Gerashchenko
b736d1602e
Got rid of conustructors zoo in value parameter and getter/setter descriptors.
2014-03-25 21:35:09 +04:00
Andrey Breslav
80737bdfcf
Fix PSI behavior for "val x : ()?' case
2014-03-25 15:55:53 +04:00
Evgeny Gerashchenko
d62bc07437
Partial compilation of package (only functions supported).
2014-03-25 14:31:38 +04:00
Evgeny Gerashchenko
5c8253c099
Rendering class or package proto when JPS test fails.
2014-03-25 14:26:48 +04:00
Evgeny Gerashchenko
5f77a4548e
Extracted util method reading class header from bytes.
2014-03-25 14:26:48 +04:00
Pavel V. Talanov
a1dbf221b3
Use instance methods instead of JetPsiUtil for getting fq names
...
Remove unnecessary usages of JetFile#getPackageDirective where only FqName is needed
Make JetFile#getPackageFqName not nullable to avoid confusion on call sites
Remove getPackageName usages
Move getFqName(JetNamedDeclaration) to a separate util class
2014-03-24 17:51:49 +04:00
Pavel V. Talanov
246466bdc5
Implement stub based package declaration provider for lazy resolve
...
Implement StubPackageMemberDeclarationProvider
Introduce DeclarationProviderFactoryService to provide difference factories in CLI and Plugin
When indexing treat top level declarations without name specially so that they can be found in index
Implement PluginDeclarationProviderFactoryService which uses file based approach for non indexed files and stub based for others
2014-03-24 17:51:38 +04:00
Alexander Udalov
5fa1774cc1
Support hasStableParameterNames in KotlinSignature and propagation
...
#KT-1924 In Progress
#KT-2830 Fixed
2014-03-19 23:24:28 +04:00
Andrey Breslav
9964ecc883
NAME_IN_CONSTRAINT_IS_NOT_A_TYPE_PARAMETER check for classes is moved to DescriptorResolver
2014-03-17 21:55:16 +04:00
Andrey Breslav
fd9cb59841
TopDownAnalyzer supports lazy mode
2014-03-17 21:40:15 +04:00
Alexander Udalov
65edd6a16e
Make KotlinBinaryClassCache thread-local
2014-03-14 17:26:48 +04:00
Alexander Udalov
307f52895a
Refactor KotlinJvmBinaryClass, VirtualFileKotlinClass, etc.
...
VirtualFileKotlinClass now reads its header and name on creation. This is not
lazy enough and may be slower in some circumstances, but has the following
advantage: if anything is wrong in the header, a VirtualFileKotlinClass
instance will not be created at all, making it nearly impossible for the client
code to operate on invalid data causing all kinds of exceptions
2014-03-14 16:00:20 +04:00
Natalia Ukhorskaya
a80114d720
Use one method to create compile-time value
2014-03-13 10:07:16 +04:00
Natalia Ukhorskaya
000dd4478a
Rename
2014-03-13 10:07:13 +04:00
Natalia Ukhorskaya
17259a052e
Write constant initializer for java properties
2014-03-13 10:07:11 +04:00
Natalia Ukhorskaya
9b5050dddd
Serialize compile time constant for property initializer
2014-03-13 10:07:08 +04:00
Natalia Ukhorskaya
a2879f229a
Add serializer for compile-time constant initializer
2014-03-13 10:07:05 +04:00
Natalia Ukhorskaya
073d345841
Extract BaseDeserializer from AnnotationDeserializer. Move storage to separate class
2014-03-13 10:07:04 +04:00
Pavel V. Talanov
bc79855cf5
Minor: additional logging when failing to read file in VirtualFileKotlinClass
2014-03-04 21:20:00 +04:00
Pavel V. Talanov
796386049b
Minor: remove explicit dependency on JavaDescriptorResolver from AnnotationDescriptorDeserializer
2014-03-04 21:19:42 +04:00
Pavel V. Talanov
d647d2abbc
Move caching of kotlin binaries classes to application level
...
Fix code in DecompiledUtils
2014-03-04 21:19:41 +04:00
Alexander Udalov
af2a28c099
Minor, inline only once-used methods
2014-03-04 19:04:58 +04:00
Mikhael Bogdanov
cd030ec88e
VirtualFileFinder refactoring
2014-03-03 15:43:46 +04:00
Mikhael Bogdanov
dabacd8cae
VirtualFileFinder update to search files without kotlin headers
2014-03-03 15:43:38 +04:00
Alexander Udalov
d04ee09636
Rename "import jet" to "import kotlin" in Java sources
2014-03-02 21:33:22 +04:00
Alexander Udalov
787b4753c7
Copy KotlinSignature to package "kotlin.jvm"
...
Support both KotlinSignature classes in the compiler and in the IDEA plugin.
The old one will be deprecated later and dropped eventually
2014-03-02 19:55:28 +04:00
Alexander Udalov
33a9f3abd1
Move all annotation FQ names to JvmAnnotationNames
...
Delete reflected usages of annotation classes (JetValueParameter.class,
KotlinSignature.class, etc.). It's wrong: this is a dependency on the old
runtime, whereas the compiler should work with the new one
2014-03-02 19:55:28 +04:00
Alexander Udalov
6e23af2ba3
Split Library.kt into several files
...
For better readbility and discoverability. Also rename String.compareTo
parameter to "other", since that is the name of parameter of other compareTo's
2014-03-02 19:55:27 +04:00
Alexander Udalov
d9029917eb
Move built-ins from package "jet" to "kotlin"
...
#KT-2896 Fixed
2014-03-02 19:55:20 +04:00
Alexander Udalov
6b0fce8cd5
Unsorted replacements "jet" -> "kotlin"
...
#KT-2896 Fixed
2014-03-02 19:55:15 +04:00
Alexander Udalov
ac71911720
Get rid of "jet" in comments, assertions, READMEs, etc.
...
Replace with "kotlin"
#KT-2896 Fixed
2014-03-02 19:55:11 +04:00
Alexander Udalov
410b7985e1
Replace "jet" with KotlinBuiltIns.FQ_NAME
...
#KT-2896 Fixed
2014-03-02 19:54:59 +04:00
Alexander Udalov
9d9d73268a
Move and rename jet.runtime.SharedVar -> kotlin.jvm.internal.Ref
2014-03-02 19:54:57 +04:00
Alexander Udalov
3dcd85bdb4
Add toString() to Any, fix all tests
...
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00
Alexander Udalov
ec30d52978
Delete Hashable, pull up its members to Any
...
Extensions on nullable types remain in Library.kt
#KT-1741 Obsolete
#KT-2805 Obsolete
#KT-1365 Fixed
#KT-4517 In Progress
2014-03-02 19:54:08 +04:00
Zalim Bashorov
fc42f3e3ab
Remove unnecessary outdated code from JavaPsiFacadeKotlinHacks.
2014-02-24 20:27:19 +04:00
Zalim Bashorov
033b8289d7
Get JavaFileManager as service.
...
Fix tests after update to IDEA 134.1160 EAP.
2014-02-24 20:27:19 +04:00
Andrey Breslav
b999174432
Do not pass BindingTrace into TopDownAnalyzer
2014-02-24 17:27:06 +04:00
Andrey Breslav
23527c927b
Unused parameter removed
2014-02-24 17:27:01 +04:00
Andrey Breslav
50a160afb1
Do not pass TopDownAnalysisParameters to injectors
2014-02-24 17:26:04 +04:00
Andrey Breslav
c4dbfbf1a9
Do not inject TopDownAnalysisParameters into ScriptHeaderResolver
2014-02-24 17:26:03 +04:00
Andrey Breslav
153d8c2a52
Do not inject TopDownAnalysisParameters into OverrideResolver
2014-02-24 17:26:02 +04:00