Evgeny Gerashchenko
8f6c2b96f3
Extracted method to util class and replaced parameter to Project.
2014-06-04 15:34:19 +04:00
Evgeny Gerashchenko
aad719d809
Minor. Rearranged code.
2014-06-04 15:34:18 +04:00
Evgeny Gerashchenko
aaebce2683
Got rid of ModuleChunk (it makes no sense now).
2014-06-04 15:34:18 +04:00
Evgeny Gerashchenko
601a691e18
Corrected and simplified compilation of module chunk.
2014-06-04 15:34:17 +04:00
Alexander Udalov
4e8d6d4882
Report ABI version errors before diagnostics and other errors
...
Otherwise they're difficult to find in the end of the compiler messages
2014-05-20 19:22:53 +04:00
Alexander Udalov
357fe5cb17
Pass module to GenerationState
...
- get rid of a hack there which was used to obtain any module, to be used in
ReflectionTypes
- delete unused getError() in LightClassConstructionContext which was always
null
- fix some minor warnings
2014-05-19 19:50:56 +04:00
Andrey Breslav
aa20af3cf3
Minor. Unused code removed
...
Follow-up for https://github.com/JetBrains/kotlin/commit/db00500404e4862548ed5eb49f7289e1e8eba99c#commitcomment-6242775
2014-05-12 19:02:17 +04:00
Alexander Udalov
5fe7bfdd83
Move 'earlierScripts' from ScriptCodegen to ScriptContext
...
To get rid of a questionable usage of getParentCodegen() in ExpressionCodegen
2014-05-08 17:48:40 +04:00
Alexander Udalov
d42598a935
Move default inline flag to JVM back-end
...
- other back-ends are likely to have its own value of this flag
- get rid of DEFAULT_INLINE_FLAG_FOR_TEST
- the main goal was to simplify the default GenerationState constructor, which
now always uses default inline flag value
2014-05-08 16:45:14 +04:00
Alexander Udalov
42d167d17e
Add missing copyrights across the project
2014-05-05 20:43:35 +04:00
Natalia Ukhorskaya
f23d95031c
Remove MockPsiDocumentManager: it is registered in CoreProjectEnvironment
2014-04-24 16:38:50 +04:00
Andrey Breslav
767eb04930
JetElement.getContainingJetFile() introduced
2014-04-21 21:55:00 +04:00
Andrey Breslav
e4e60bc377
Function object replaced by a normal function
...
+ unneededly public member made protected
2014-04-18 21:28:22 +04:00
Andrey Breslav
3184b9ddba
Special factory method for local analysis
...
- No need to pass the same flags all the time
- No need to check for local mode when in LAZY mode
2014-04-18 21:28:21 +04:00
Andrey Breslav
c57243035e
Factory method introduced for TopDownAnalysisParameters
2014-04-18 21:28:21 +04:00
Andrey Breslav
77261330b9
Only use script parameters from definition
...
Passing parameters of a _single_ script into TopDownAnalyser makes no sense
2014-04-01 12:25:33 +04:00
Andrey Breslav
d909a03453
Minor. ScriptNameUtil works on scripts, not files
2014-04-01 12:25:32 +04:00
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