Commit Graph

666 Commits

Author SHA1 Message Date
Andrey Breslav 06e901e2c7 Minor. Missing final added 2014-04-01 12:25:32 +04:00
Andrey Breslav 5ef329b713 Store scope for body resolution in ScriptDescriptor 2014-04-01 12:25:31 +04:00
Andrey Breslav 3e957031b9 Minor. Method moved to where it belongs 2014-04-01 12:25:30 +04:00
Andrey Breslav 04f21eee50 getReturnType() removed from ScriptDescriptor 2014-04-01 12:25:30 +04:00
Nikolay Krasko 95fd870988 Update to idea 135.666 EAP with asm5 library 2014-04-01 02:55:00 +04:00
Andrey Breslav bcc6843835 Render file name and position in errors from JS library stubs 2014-03-28 13:18:46 +04:00
Evgeny Gerashchenko 9ecd680fd4 Rewritten PackageFragmentDescriptor to Kotlin. 2014-03-26 00:41:54 +04:00
Evgeny Gerashchenko d62bc07437 Partial compilation of package (only functions supported). 2014-03-25 14:31:38 +04:00
Ilya Ryzhenkov 480dd6767c Convert module scripting to .ktm extension. 2014-03-24 18:17:51 +04:00
Ilya Ryzhenkov 98c54f39bb Unify script file extensions to "kts" so that IDEA, compiler and tests agree when to parse as SCRIPT.
Include kt* files into formatter test generation, to test scripting formatting
2014-03-24 18:17:50 +04:00
Ilya Ryzhenkov 9239fa2ece ScriptName now returns FqName, fully qualified with package name. Update usages and convert to internal format as needed. 2014-03-24 18:17:50 +04:00
Ilya Ryzhenkov d08f2bc7ab Do not dispose classLoader so that dependent types can be loaded on demand, like closures. 2014-03-24 18:17:49 +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
Mikhael Bogdanov ca4609dd2a Support inline true/false options 2014-03-20 17:50:52 +04:00
Alexander Udalov 0dfacd8b20 Make KDoc generate documentation on red code
KDoc is not a compiler, so it should not care whether or not the code is valid.
Therefore suppress the compiler's exit code, errors and warnings in KDoc plugin
2014-03-17 19:09:08 +04:00
Mikhael Bogdanov 22daacefbe Added inline flag to ant build tool 2014-03-17 17:28:46 +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
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
Ladislav Thon 36bc7580aa fix main function detection to rely on actually resolved types 2014-03-04 19:18:14 +04:00
Mikhael Bogdanov cd030ec88e VirtualFileFinder refactoring 2014-03-03 15:43:46 +04:00
Mikhael Bogdanov ee136d6594 Default inline flag = true 2014-03-03 15:43:45 +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 410b7985e1 Replace "jet" with KotlinBuiltIns.FQ_NAME
#KT-2896 Fixed
2014-03-02 19:54:59 +04:00
Alexander Udalov 004c289a0b Use kotlin.modules.* instead of jet.modules.* 2014-02-28 21:48:25 +04:00
Ilya Klyuchnikov 0be6e57efe typo fixed: invokation -> invocation 2014-02-28 14:25:10 +04:00
Zalim Bashorov 62afa2c742 Update to IDEA 134.1160 EAP 2014-02-24 20:27:19 +04:00
Andrey Breslav 4e0df6fd80 Do not create TopDownAnalysisContext in injectors 2014-02-24 15:52:57 +04:00
Andrey Breslav 5976a91998 Do not inject TopDownAnalysisContext into TopDownAnalyzer 2014-02-24 15:52:53 +04:00
Nikolay Krasko ac4fe93774 Add ability to filter out some particular classes from generator 2014-02-20 16:17:38 +04:00
Andrey Breslav 623b169d71 When building light classes don't resolve irrelevant declarations in the same package 2014-02-20 16:08:08 +04:00
Natalia Ukhorskaya 9f3b73986a Update to IDEA 13.1 (134.1007) 2014-02-17 10:45:48 +04:00
Natalia Ukhorskaya 320c23494f Add method to MockPsiDocumentManager to update kotlin plugin to IDEA 13.1 (134.1007) 2014-02-12 22:10:42 +04:00
Natalia Ukhorskaya 7bf26283b2 Add implementation of PsiDocumentManager to update kotlin plugin to IDEA 13.1 (134.1007) 2014-02-12 18:00:44 +04:00
Andrey Breslav e60bd514fa StorageManager&ExceptionTracker delivered where needed
- GlobalContext introduced to group the two
- Caches track exceptions
2014-02-04 15:24:27 +04:00
Nikolay Krasko 9a6ac60a5f Minor: formatting and warnings 2014-01-31 14:52:14 +04:00
Andrey Breslav 210827b1d5 ExceptionUtils rewritten in Kotlin 2014-01-30 21:03:53 +04:00
Andrey Breslav 6a29c38e5b Components across the project use StorageManager 2014-01-29 15:38:44 +04:00
Andrey Breslav df88e3e625 Introducing dependency kinds to prioritize package fragments 2014-01-15 16:16:21 +04:00
Andrey Breslav 45bd70daec JavaPackageFragmentProvider is only accessible through JavaDescriptorResolver
We need this to guarantee that only one provider is used: either lazy or eager.
2014-01-15 16:16:16 +04:00
Evgeny Gerashchenko 4239f5bb18 Got rid of "namespace" word in backend. 2014-01-14 18:06:47 +04:00
Evgeny Gerashchenko 1f615d08c7 NamespaceLikeBuilder → PackageLikeBuilder. 2014-01-14 18:05:57 +04:00
Andrey Breslav b3f4527bb8 KotlinJvmBinaryClass now has a getClassHeader() method 2014-01-09 20:41:43 +04:00
Andrey Breslav 7fc9772930 Direct instantiations of VirtualFileKotlinClass are replaced by access to caching service 2014-01-09 20:41:43 +04:00
Andrey Breslav 6c1f579c6d VirtualFileFinder and KotlinClassFinder effectively merged (through inheritance)
This is needed to implement caching of KotlinJvmBinaryClass instance inside CliVirtualFileFinder that relies on reading class headers for filtering
2014-01-09 20:41:43 +04:00
Andrey Breslav 8fcaf511dc Methods renamed to avoid ambiguity 2014-01-09 20:41:43 +04:00
Natalia Ukhorskaya f2f1a1313d Add jdk jars to kotlin classpath
#KT-4214 Fixed
2013-12-26 13:50:10 +04:00
Alexey Sedunov 1e66a346d7 Use unsafe qualified names instead of safe ones in FQNAME_TO_CLASS_DESCRIPTOR slice 2013-12-24 12:10:53 +04:00
Evgeny Gerashchenko 3352d8a954 Minor. Renamed method. 2013-12-17 20:28:56 +04:00