Alexander Udalov
48b18f18d3
Restore explicit imports of Kotlin function types in Java
...
This is a follow-up to 738a84e259 and
d4965a4f3e . Optimize imports in all files
affected in those commits, drop temporary _.kt
2015-05-26 18:46:27 +03:00
Alexander Udalov
738a84e259
Temporary hack to migrate functions to package kotlin.jvm.functions
...
Add a file in package 'kotlin.jvm.functions' to the project and replace
explicit imports of functions 'kotlin.Function{n}' to two imports 'kotlin.*'
and 'kotlin.jvm.functions.*', so that the codebase can be compiled both by the
old and by the new compiler
2015-05-26 15:04:34 +03:00
Michael Nedzelsky
618a8622a1
VirtualFileFinderFactory: introduce JvmVirtualFileFinderFactory, JsVirtualFileFinderFactory
2015-05-26 05:03:51 +03:00
Yan Zhulanow
594988db51
Move kapt compiler plugin classes to BundledCompilerPlugins
2015-05-21 15:48:20 +03:00
Yan Zhulanow
b2220ca98a
Annotation collector compiler plugin
2015-05-21 15:48:06 +03:00
Michael Nedzelsky
d629271510
JS: make -meta-info cli option boolean
2015-05-21 02:30:54 +03:00
Pavel V. Talanov
cfdb1f4ec3
Refactor creation of ModuleDescriptor
...
Add storageManager to ModuleDescriptorImpl (to be used later)
Extract ModuleParameters to hold default imports and platform class map
Introduce MutableModuleContext to simplify module creation code
2015-05-20 19:45:50 +03:00
Mikhail Glukhikh
fdf0ea5546
Enum warnings fixed: deprecated delimiters, short super constructors, both in project and in libraries
2015-05-18 16:08:16 +03:00
Pavel V. Talanov
01efbb1502
Introduce ModuleContext, ProjectContext and use it some of the APIs
2015-05-17 18:24:49 +03:00
Pavel V. Talanov
9d22a39924
Refactor: TopDownAnalysisParameters -> TopDownAnalysisMode
...
No longer implements TypeLazinessToken (was unused)
2015-05-17 18:24:49 +03:00
Pavel V. Talanov
d9c70b5927
Drop TopDownAnalysisParameters#isAnalyzingBootstrapLibrary()
2015-05-17 18:24:48 +03:00
Pavel V. Talanov
f9b6c25498
Refactor: TopDownAnalysisParameters doesn't implement GlobalContext
2015-05-17 18:24:47 +03:00
Nikolay Krasko
3c7e7ffda6
Place light classes finder before standard PsiElementFinderImpl
...
Source elements should have priority over libraries.
2015-05-13 21:32:09 +03:00
Nikolay Krasko
2d8dcaddd0
Compile modules with circular dependency as one module
2015-05-06 14:19:20 +03:00
Pavel V. Talanov
dc05596ce0
Create FqName safely in KotlinCliJavaFileManagerImpl#findPackage
...
#KT-7501 Fixed
2015-04-23 21:10:58 +03:00
Natalia Ukhorskaya
907f0db7be
Do not include files that contains only top level classes or objects to LightClassForPackage
2015-04-22 10:35:18 +03:00
Pavel V. Talanov
d76f293dc9
Speed up finding kotlin binaries and java files in CLI
...
Change VirtualFileFinder api to accept ClassId and adjust usages
Introduce KotlinCoreProjectEnvironment to create special KotlinCliJavaFileManager which shares cache with CliVirtualFileFinder
Truly distinguish between java source roots and binary roots: don't search for source files in classpath and vica versa
Implement JvmDependenciesIndex
2015-04-16 16:40:28 +03:00
Pavel V. Talanov
94cc847c48
Drop module "ktm" scripts and support java source roots in "xml" modules
...
Drop kotlin.modules package from runtime
Move adapted classes into compiler
Unsupport files with "ktm" extension
Delete code for loading module scripts
Drop tests for module scripts
Separate section for java source roots in xml script generator/parser
2015-04-16 16:40:19 +03:00
Alexander Udalov
1b7ba320c7
Fix handling of paths with spaces in kotlinc script
2015-04-15 01:16:07 +03:00
Onorio Catenacci
84acaa9bf6
Changed the path for calling kotlinc-jvm.bat to use short (8.3) names so that this will work correctly with paths with spaces in them
2015-04-15 01:16:06 +03:00
Stanislav Erokhin
b703f59e04
Migrate kotlin sources, maven projects and stdlib to new lambda syntax
2015-04-07 13:08:53 +03:00
Michael Nedzelsky
1c7e1ddf26
JS: remove LibrarySourcesConfigWithCaching, introduce LibrarySourceConfig.Builder
2015-04-03 05:36:18 +03:00
Michael Nedzelsky
5a73bd19c5
JS: move processing metaInfo to TranslationResult
2015-04-03 05:36:02 +03:00
Michael Nedzelsky
0951d69bdc
JS: add metaInfo attribute to Config
2015-04-03 05:35:56 +03:00
Pavel V. Talanov
cb7617b3ca
Refactor CompilerConfiguration: keys -> Content roots
...
Represent classpath roots and java source roots as separate entities
2015-04-02 16:13:06 +03:00
Alexander Udalov
085bc2197b
Merge module 'serialization.jvm' into 'descriptor.loader.java'
...
It was very small and there proved to be no point in separation of loading Java
classes and deserializing Kotlin classes
2015-03-30 17:22:06 +03:00
Pavel V. Talanov
b73bd697e6
Rename JetCoreEnvironment -> KotlinCoreEnvironemnt
2015-03-30 15:11:58 +03:00
Pavel V. Talanov
2dcf935b99
Convert JetCoreEnvironment: clean up code
2015-03-30 15:11:57 +03:00
Pavel V. Talanov
0209acceb1
Convert JetCoreEnvironment: autoconvert
2015-03-30 15:11:56 +03:00
Pavel V. Talanov
49a0da7750
Convert JetCoreEnvironment: rename file
2015-03-30 15:11:56 +03:00
Natalia Ukhorskaya
785f7e749f
InlineCodegen: find virtual file using findVirtualFileWithHeader
2015-03-30 14:03:24 +03:00
Pavel V. Talanov
9d618ca767
Replace OBJECT$ usages in code and test data
2015-03-25 18:28:01 +03:00
Alexander Udalov
4e7d4f9340
Fix ReplInterpreterTestGenerated locally
2015-03-23 12:21:07 +03:00
Michael Nedzelsky
3bf14518e8
JS backend: add -meta-info command line option for cli compiler
2015-03-18 09:38:53 +03:00
Zalim Bashorov
5e782dd547
Switch to the new(right) API for register extension points and extensions.
2015-03-17 14:11:00 +03:00
Yan Zhulanow
df2d2dc21a
Fix formatting in PluginCliParser
2015-03-13 15:46:44 +03:00
Yan Zhulanow
d5e4775bcd
Show plugin usage on invalid arguments
2015-03-13 15:46:37 +03:00
Michael Nedzelsky
54bbe0711d
JS backend: reuse analysisResult from K2JSCompiler in translator
2015-03-12 16:35:22 +03:00
Andrey Breslav
704eea2eac
TraceBasedErrorReporter converted to Kotlin and [data] added to AbiVersionErrorData
2015-03-11 19:38:16 +03:00
Andrey Breslav
36bbd2c0e3
ErrorReporter is now Java-independent
2015-03-11 19:38:15 +03:00
Isak Karlsson
efae5c05a1
Support classpath argument when running scripts using the -script flag
...
Signed-off-by: Isak Karlsson <isak-kar@dsv.su.se >
2015-03-11 18:08:14 +03:00
Andrey Breslav
bbb59773aa
filesToAnalyzeCompletely removed
2015-03-06 21:59:05 +03:00
Andrey Breslav
32a3b58f14
ScriptDescriptorImpl and related non-lazy code removed
2015-03-06 21:59:04 +03:00
Andrey Breslav
d310b0c99d
Got rid of the LAZY flag
2015-03-06 21:59:03 +03:00
Evgeny Gerashchenko
8ab94a18ae
Inlined trivial method classDescriptorToDeclaration
2015-03-05 15:19:30 +03:00
Yan Zhulanow
7bc81f68b4
Fix a bug in PluginURLClassLoader
2015-02-26 16:07:45 +03:00
Yan Zhulanow
2d6186b155
Report compiler exception on plugin load fail
2015-02-26 16:07:45 +03:00
Yan Zhulanow
0ecd1c04b0
Update copyright
2015-02-26 15:26:02 +03:00
Yan Zhulanow
7423e30065
Removed Android dependencies from core modules
2015-02-26 15:26:02 +03:00
Yan Zhulanow
f033604c7a
Rename jet to kotlin in compiler api
2015-02-26 15:25:59 +03:00