Evgeny Gerashchenko
c4573b8c5a
Got rid of ModuleDescription intermediate entity.
2014-07-10 15:05:19 +04:00
Pavel V. Talanov
16aefae602
Move descriptorToDeclaration utilities family to a separate util class DescriptorToSourceUtils
2014-07-09 19:07:26 +04:00
Pavel V. Talanov
d988256831
Refactor: Remove context parameter from BindingContextUtils.descriptorToDeclaration utilities family
2014-07-09 18:19:36 +04:00
Alexander Udalov
b9fd52739f
Move around some descriptor implementations
...
- mutable class, mutable package fragment and their dependencies go to module
'frontend'
- ModuleDescriptorImpl and PackageFragmentDescriptorImpl are moved to the
package "impl" in their module
2014-07-07 18:15:31 +04:00
Evgeny Gerashchenko
6501066274
Added hacky checks for accessing compiled functions from our module via package part instead of facade.
...
#KT-4590 fixed
2014-07-07 17:41:34 +04:00
Alexey Kudravtsev
5489ae08da
Make Kotlin accessible for UpSource.
...
Extracted some initialization of JetCoreEnvironment.
2014-07-04 17:12:29 +04:00
Pavel V. Talanov
0f5de48157
Drop JetFilesProvider service
2014-07-03 20:46:51 +04:00
Pavel V. Talanov
0a43c38bae
Change AnalyzerFacade#createSetup to accept a list of synthetic files and a scope for physical source files
...
Make DeclarationProviderFactory a project service
2014-07-03 20:46:50 +04:00
Pavel V. Talanov
9b5f349e61
Drop JetFilesProvider#allPackageFiles() and sampleToAllFilesInModule()
2014-07-03 20:46:47 +04:00
Alexander Udalov
d4c792d0ee
Fix errorlevel returned by kotlinc-*.bat scripts
...
Propagate errorlevel returned as an exit code from the compiler to the outside
world.
This may not work on Windows XP or earlier, but is required for Windows 7+
2014-07-02 00:38:49 +04:00
Alexander Udalov
e04f7c24fa
Alias 'kotlinc' for 'kotlinc-jvm'
2014-06-26 22:02:58 +04:00
Alexander Udalov
760fd73a0a
Don't launch REPL on "kotlinc-jvm -version"
...
#KT-3169 Fixed
2014-06-26 22:02:58 +04:00
Alexander Udalov
71262bdf14
Output to the current directory by default ("-output .")
2014-06-25 22:32:16 +04:00
Alexander Udalov
ca219f9880
Beautify kotlinc -help output
2014-06-25 22:32:16 +04:00
Alexander Udalov
ebec9e961c
Use hand-written usage information printer
...
Copy-pasted from com.sampullara.cli.Args
2014-06-25 22:32:15 +04:00
Alexander Udalov
2144088627
Don't output full compiler FQ name on -printArgs
2014-06-25 22:32:14 +04:00
Alexander Udalov
f51e172570
Fix kotlinc command line usage information
...
Fix spelling, case, minor grammar
2014-06-25 22:32:14 +04:00
Andrey Breslav
9ecbeeb100
Filter diagnostics in the CLI compiler, as well as in the IDE
2014-06-19 22:12:00 +04:00
Andrey Breslav
f79ddbd523
Minor. Passing Diagnostics instead of BindingContext
2014-06-19 22:10:50 +04:00
Andrey Breslav
9b3f9fb70d
Cache KotlinLightClassForPackage instances per project
2014-06-19 22:10:45 +04:00
Andrey Breslav
449723e388
Repoting platform declarations clashes in CLI compiler for JVM
...
#KT-1 In Progress
2014-06-19 22:10:44 +04:00
Andrey Breslav
eb31be2871
DiagnosticHolder added to GenerationState
2014-06-19 22:10:44 +04:00
Evgeny Gerashchenko
4366b92656
Minor. Rearranged code.
2014-06-19 14:43:37 +04:00
Evgeny Gerashchenko
92849dda3b
Serializing incremental package fragment from our module instead of random one.
2014-06-19 13:41:27 +04:00
Evgeny Gerashchenko
f6129732a2
Writing incrementalCache attribute to <modules> element of xml module script
2014-06-19 01:03:59 +04:00
Evgeny Gerashchenko
04f7ad450f
Simplified interface of IncrementalCache (depending on JDK only).
2014-06-18 22:56:43 +04:00
Evgeny Gerashchenko
07365dca1d
Extracted interface and moved implementation of IncrementalCache to jps-plugin, accessing cache via Java service loader.
2014-06-18 22:56:43 +04:00
Evgeny Gerashchenko
820bd911fb
Supported cases of removing source files from package fragment.
2014-06-18 22:56:43 +04:00
Evgeny Gerashchenko
a82849f289
Removed member filter from injectors.
2014-06-18 22:56:33 +04:00
Evgeny Gerashchenko
ca1ee69e4c
Loading descriptors from incremental cache instead of package classes.
2014-06-18 22:56:33 +04:00
Evgeny Gerashchenko
381e8bb205
Extracted PackagePartClassUtils.
2014-06-16 23:30:24 +04:00
Evgeny Gerashchenko
d3ff9e974b
Introduced utility method.
2014-06-16 23:29:55 +04:00
Pavel V. Talanov
024ed5a236
Drop JetTypeName and related code
2014-06-11 21:22:28 +04:00
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