Nikolay Krasko
757b963731
Register JavaClassSupers service
2015-06-23 15:59:14 +03:00
Pavel V. Talanov
37bcd455b5
Make ModuleDescriptor#getPackage() return not null lazy object with lazy scope
...
Refactor: no need to create package view in order to obtain its subpackages
LazyPackageViewDescriptorImpl to replace PackageViewDescriptorImpl
This allows to avoid computations when package views are requested but their contents not necessarily queried
For example: DescriptorResolver.resolvePackageHeader()
2015-06-23 15:19:06 +03:00
Dmitry Jemerov
5eb4a47a1a
command line flag to repeat compilation multiple times
2015-06-17 14:55:12 +02:00
Dmitry Jemerov
ab33e4935e
restore perf output in command line; always remove it from output in tests
2015-06-17 14:53:09 +02:00
Alexander Udalov
9637c049fe
CLI: update KOTLIN_HOME lookup process in Bash script
...
The original code was taken from the 'scalac' script, where it has evolved
since and now is a lot easier to understand
2015-06-15 15:43:31 +03:00
Alexander Udalov
2f1316ec9c
CLI: don't pass -D and -J options to Kotlin
...
Kotlin compiler's CLI argument parser currently fails on these options, so
there was no convenient way to use them
2015-06-15 15:42:43 +03:00
Alexander Udalov
cdd53de9a7
CLI: get rid of duplication in JVM/JS scripts
2015-06-15 15:42:42 +03:00
Alexander Udalov
5ec4576844
CLI: add color to compiler output via jansi
...
Disabled on Windows temporarily, because for some reason colors there work only
in REPL
2015-06-15 15:42:42 +03:00
Alexander Udalov
00566bcfb0
Move MessageRenderer to module 'cli'
...
It will use jline soon, which is not available in 'cli-common'
2015-06-15 15:42:42 +03:00
Alexander Udalov
54dfd626ab
CLI: improve diagnostic message format
...
- render the whole line where the error/warning points to, if any, and another
line with '^', like other compilers do
- lowercase diagnostic severity
- decapitalize the message if it doesn't start with a proper name
2015-06-15 15:42:41 +03:00
Alexander Udalov
46515afb22
CLI: don't render non-positive line and column in error messages
2015-06-15 15:42:41 +03:00
Alexander Udalov
6083a18ce1
Convert CompilerMessageLocation to Kotlin
2015-06-15 15:42:40 +03:00
Alexander Udalov
bca5eb083e
Don't report warnings when there are errors
...
All sane compilers do this
2015-06-15 15:42:40 +03:00
Alexander Udalov
4cfbf5886b
Get rid of unneeded MessageCollector implementations
2015-06-15 15:42:40 +03:00
Denis Zharkov
eb7114bd53
Add 'constructor' keyword in whole project where needed
2015-06-12 09:55:15 +03:00
Denis Zharkov
200dee2761
Replace deprecated annotations in whole project
2015-06-12 09:23:32 +03:00
Michael Nedzelsky
dd60c7b79f
K2JSCompiler: use INTERNAL_ERROR only for internal problems
2015-06-11 22:21:23 +03:00
Michael Nedzelsky
57356e29b8
kotlinc-js, kotlinc-jvm: report error on empty sources
2015-06-11 22:21:20 +03:00
Yan Zhulanow
f1b6bd5914
kapt: Stop compiler gracefully
2015-06-11 14:53:45 +03:00
Yan Zhulanow
fbb8d28120
kapt: Light class stub producer in compiler
2015-06-11 14:53:37 +03:00
Yan Zhulanow
571c9073fa
Add AnalyzeCompletedHandlerExtension
2015-06-11 14:50:32 +03:00
Evgeny Gerashchenko
4c6fcef221
Disable access to incremental caches when incremental compilation mode is disabled.
2015-06-09 20:03:21 +03:00
Dmitry Jemerov
aa8adbeddc
remove unnecessary call to super.get() in CliBindingTrace
2015-06-08 18:57:36 +02:00
Evgeny Gerashchenko
c194ced87e
Performance report is emitted only when corresponding command-line argument is provided.
2015-06-04 19:45:01 +03:00
Dmitry Jemerov
a321e8eef5
performance counters infrastructure
2015-06-04 10:20:19 +02:00
Dmitry Jemerov
365d45f49e
add missing API to retrieve Kotlin source roots from a CompilerConfiguration
2015-06-02 17:22:44 +02:00
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