pTalanov
e4e4fb256a
Pull some code from K2JVMCompiler to CLICompiler. Also requires a hack due to compiler bug.
2012-04-28 22:47:36 +04:00
pTalanov
16cc4bc8d7
Add abstract methods to CompilerArguments. Add parameters to K2JSCompilerArguments.
2012-04-28 22:47:36 +04:00
pTalanov
66e10a18a3
JetCoreEnvironment for JS and JVM are separated.
2012-04-28 22:47:35 +04:00
pTalanov
f9d87cbf4b
Move doMain method to CLICompiler.
2012-04-28 22:47:34 +04:00
pTalanov
cdfa0678cf
Extract reusable functionality from K2JVMCompiler, K2JVMCompilerArguments, CompilerEnvironmentConfiguration.
2012-04-28 22:47:33 +04:00
pTalanov
9f92b0b5d7
Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common
2012-04-25 20:39:44 +04:00
pTalanov
d0d5b147f2
Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common
2012-04-25 20:19:15 +04:00
Stepan Koltsov
3b43f30824
add JDK to CompilerDependencies
2012-04-25 19:36:22 +04:00
Pavel V. Talanov
6e3d7cce61
Remove redundant analyzer wrapper.
2012-04-25 14:24:05 +04:00
Pavel V. Talanov
891dd9fc1c
extract compiler error reporting functionality from KotlinToJVMBytecodeCompiler
2012-04-25 14:24:04 +04:00
Andrey Breslav
d0bd5cf9c6
Properly positioning compilation exceptions in the IDE
2012-04-25 12:25:00 +04:00
Andrey Breslav
47e096026d
Escape XML strings in the compiler output
2012-04-24 22:41:04 +04:00
Andrey Breslav
b467edfa03
Don't compile module scripts in verbose mode
2012-04-24 21:22:46 +04:00
Andrey Breslav
0ab212b240
Module file is not needed when compiling modules
2012-04-24 21:22:45 +04:00
Andrey Breslav
8a40f943de
Module script loading separated from module compilation
2012-04-24 21:22:45 +04:00
Andrey Breslav
419f8c7415
Print a root tag in the XML output mode
...
Now, the compiler output in the "-tags" mode is enclosed into <MESSAGES>...</MESSAGES>
2012-04-24 21:22:45 +04:00
Evgeny Gerashchenko
9bec7b5e9d
Merge branch 'diagnostics'
...
Conflicts:
compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java
2012-04-20 21:58:05 +04:00
Stepan Koltsov
3b0c9244c9
di: @PreDestroy
...
I need in my private experiments
2012-04-20 21:33:18 +04:00
Andrey Breslav
13764c06c0
Compiler plugins moved to CompilerEnvironmentConfiguration
2012-04-20 14:58:14 +04:00
Andrey Breslav
e33acbeebf
Use CompileEnvironmentConfiguretion instead of its components
2012-04-20 14:33:49 +04:00
Andrey Breslav
4da91ee3d6
CompileEnvironment removed
...
What used to be CompileEnvironment, now is split into data (in CompileEnvironmentConfiguration) and utility methods (in CompileEnvironmentUtil).
CompilerDependencies should be removed later.
All the relevant stuff sits in the JetCoreEnvironment class
2012-04-20 11:52:02 +04:00
Stepan Koltsov
b47d37094e
properly report exception if analyze failed
...
#KT-1831 Fixed
2012-04-19 16:41:34 +04:00
Andrey Breslav
d512d62c04
Remove unused method
2012-04-13 20:08:35 +04:00
Andrey Breslav
e23cb0cb98
Fix comment text
2012-04-13 20:07:23 +04:00
Andrey Breslav
e553a46294
Use common utility for retrieving FQNames
2012-04-13 20:07:02 +04:00
Andrey Breslav
4eb594024a
Removed the exec(String...) method in KotlinCompiler
...
It's important to be aware of what stream the messages will be written to, so such a default implementation is harmful
2012-04-13 19:59:28 +04:00
Andrey Breslav
882412ea06
Proper handling of compiler messages
...
We used to have a triple (errorStream, messageRenderer, verbose) to represent the error reporting strategy.
Now we have a single MessageCollector abstraction for this.
As the MessageCollector abstraction was extracted, the need to CompilerMessageLocation and CompilerMessageSeverity arose, too.
2012-04-13 19:38:23 +04:00
Andrey Breslav
71bac57411
Got rid of CompileSession class: this class shouldn't have had any objects, now it is transformed into KotlinToJVMBytecodeCompiler
2012-04-13 19:38:22 +04:00
Evgeny Gerashchenko
370af95c87
Introduced DispatchingDiagnosticRenderer, which replaced DefaultDiagnosticRenderer.
2012-04-13 19:31:47 +04:00
Evgeny Gerashchenko
a5d5eb53e2
Fixed rendering syntax error diagnostics in CompileSession.
2012-04-13 19:31:46 +04:00
Evgeny Gerashchenko
b0e09319a9
Moved DefaultDiagnosticRenderer from cli back to frontend to avoid run-time dependencies on cli where rendering diagnostics is needed.
2012-04-13 19:31:46 +04:00
Evgeny Gerashchenko
8d599548ba
Copied all diagnostic-rendering logic to DefaultDiagnosticRenderer.
2012-04-13 19:31:46 +04:00
Evgeny Gerashchenko
cab1e00596
Replaced unnecessary "E" type parameter in DiagnosticWithParameters1 with wildcard.
2012-04-13 19:31:46 +04:00
Evgeny Gerashchenko
553ce9e5e0
Extracted DiagnosticWithParameters1Renderer, moved it along with DiagnosticRenderer to frontend module.
2012-04-13 19:31:45 +04:00
Evgeny Gerashchenko
7be6fe84be
Made single parameter of Renderer.render() @NotNull, because argument was almost never @Nullable on call-sites.
2012-04-13 19:31:45 +04:00
Evgeny Gerashchenko
46d929efa1
Introduced factory to renderer map in DefaultDiagnosticRenderer. Added first renderer there.
2012-04-13 19:31:45 +04:00
Evgeny Gerashchenko
6a13510741
Replaced Diagnostic.getMessage() with DiagnosticRenderer.render() calls.
...
Made Diagnostic.getMessage() deprecated, introduced DiagnosticRender interface and default implementation for it.
2012-04-13 19:31:45 +04:00
Evgeny Gerashchenko
409d6b2da1
Renamed DiagnosticWithPsiElement to SimpleDiagnostic, DiagnosticFactory to SimpleDiagnosticFactory, so they relation is reflected in their names.
2012-04-13 19:31:45 +04:00
Andrey Breslav
b5008ebd57
Separate environments for module script compilation and project compilation
2012-04-11 16:13:11 +04:00
Andrey Breslav
f34e492022
JetCoreEnvironment encapsulates a project (in the IDEA sense), so the classpath and sources lie in its area of responsibility
2012-04-11 16:13:11 +04:00
Stepan Koltsov
a889e29147
else on the next line
...
as requested by http://confluence.jetbrains.net/display/JET/Code+Conventions+for+Java
(sed is your friend)
2012-04-10 00:03:13 +04:00
Stepan Koltsov
0d8088268a
extract code to method
2012-04-09 23:49:45 +04:00
Stepan Koltsov
03e78e8cc3
Revert "add runtime to classpath in JetCoreEnvironment" temporarily
...
This reverts commit 59c7f33c88 .
2012-04-09 18:54:42 +04:00
Stepan Koltsov
59c7f33c88
add runtime to classpath in JetCoreEnvironment
2012-04-09 18:22:23 +04:00
Pavel V. Talanov
7dd0e50bcd
Merge with branch "AnalyzerJS"
2012-04-09 17:08:57 +04:00
Pavel V. Talanov
a030576052
Merge from brahch analyzeJS.
...
Conflicts:
compiler/backend/src/org/jetbrains/jet/codegen/GenerationState.java
compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/AnalyzerFacadeForJVM.java
compiler/tests/org/jetbrains/jet/codegen/GenerationUtils.java
compiler/tests/org/jetbrains/jet/resolve/ExpectedResolveData.java
compiler/tests/org/jetbrains/jet/types/JetDefaultModalityModifiersTest.java
idea/src/org/jetbrains/jet/plugin/libraries/JetSourceNavigationHelper.java
idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java
idea/src/org/jetbrains/jet/plugin/project/WholeProjectAnalyzerFacade.java
idea/src/org/jetbrains/jet/plugin/quickfix/ChangeVariableMutabilityFix.java
idea/src/org/jetbrains/jet/plugin/quickfix/ImportInsertHelper.java
idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetNameSuggester.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetRefactoringUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/introduceVariable/JetIntroduceVariableHandler.java
2012-04-09 17:06:56 +04:00
Stepan Koltsov
10dd366216
CompilerDependencies
...
Holds reference to runtime.jar and jdk-headers.jar. Paths to these
jars are no longer hardcoded.
Many tests now compile runtime before execution. Because of this:
* Single test invocation is significantly slower now for some tests
* This can be fixed by making tests independent from runtime (this
must be done anyway)
Some tests still depend on runtime.jar built by "ant dist", this
is to be fixed.
2012-04-09 03:04:50 +04:00
Stepan Koltsov
7be3d247f9
fix tests after recent refactoring
2012-04-08 05:39:46 +04:00
Stepan Koltsov
f16895ba65
new compiler mode: stdlib
...
include jdk-headers, do not include runtime
2012-04-08 02:08:27 +04:00
Stepan Koltsov
0a610d81ad
compiler argument parsing cleanup
2012-04-08 02:08:26 +04:00