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
Stepan Koltsov
7b1ae33df3
fix broken tests
...
(JetJavaMirrorMaker still can be returned by PsiPackage.getClasses())
2012-04-13 18:14:03 +04:00
Stepan Koltsov
37fcffc39d
remove assertion from JDR.resolveAnnotation
...
#KT-1771 fixed
2012-04-13 17:44:46 +04:00
Stepan Koltsov
af4117c8d3
assert JetJavaMirrorMaker cannot appear in resolve.java
2012-04-13 17:44:42 +04:00
Nikolay Krasko
531ffaaffa
KT-1645 Propose members according to smart casts
...
#KT-1645 fixed
2012-04-13 15:35:55 +04:00
Stepan Koltsov
bc00216df9
replace JavaPsiFacade with own
2012-04-12 20:45:00 +04:00
Stepan Koltsov
71f89ef130
more descriptorToDeclaration utils
...
* custom versions
* normalization code moved out of norializer
* hide DESCRIPTOR_TO_DECLARATION (make package local)
2012-04-12 00:24:12 +04:00
Stepan Koltsov
e37f24ce4f
do not use BindingContext.DESCRIPTOR_TO_DECLARATION explictly
2012-04-12 00:24:12 +04:00
Stepan Koltsov
829f73cc5f
some classes from runtime.jar are not meant to be loaded by JDR
...
* assert runtime implementations from JetStandard* are not loaded
by JavaDescriptorResolver
* fix wrong @JetMethod in jet.Iterator
* fix jet.Iterator ns was created
* fix incorrect number of functions and tuples in JetStandardClasses
* added TODO about inconsisten Tuple class
2012-04-11 20:00:01 +04:00
Nikolay Krasko
a59a671c4a
KT-1763 UnsupportedOperationException during creating ImportClassAndFunFix
...
#KT-1763 fixed
2012-04-11 18:56:44 +04:00
Nikolay Krasko
26b47c0180
KT-1755 Duplicates in completion
...
#KT-1755 fixed
2012-04-11 17:54: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
Andrey Breslav
88d3e3676c
Add Explicit Nullable annotation
2012-04-11 12:19:04 +04:00
James Strachan
f1a2caeb12
fix helper function to find NamespaceDescriptor in a file - thanks to Nikolay for the heads up
2012-04-11 09:05:17 +01: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
c08965c336
split GenericIterator test
2012-04-09 22:31:57 +04:00
Stepan Koltsov
74233edafc
move code
2012-04-09 22:31:57 +04:00
Stepan Koltsov
abfd03cae3
descriptor name cannot be empty string
...
* add assertion
* fix tests
* #KT-1748 Fixed
2012-04-09 22:31:56 +04:00
Stepan Koltsov
ea1592e8a3
validate identifier names
2012-04-09 21:25:01 +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
9711d18dca
Revert "BytecodeCompilerTest" temporarily
...
This reverts commit 18170a0b29 .
2012-04-09 18:54:28 +04:00
Stepan Koltsov
18170a0b29
BytecodeCompilerTest
2012-04-09 18:22:23 +04:00
Stepan Koltsov
59c7f33c88
add runtime to classpath in JetCoreEnvironment
2012-04-09 18:22:23 +04:00
Stepan Koltsov
a41edaa224
better tmp dir name in TestCaseWithTmpdirIndependentFromIdea
2012-04-09 18:22:22 +04:00
Stepan Koltsov
bcbcb48ef8
remove unused parameters
2012-04-09 18:22:22 +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
Pavel V. Talanov
652be4ed95
Revert misleading whitespace changes.
2012-04-09 15:04:27 +04:00
Nikolay Krasko
7de5f68629
KT-1238 Completion of 'break' keyword: why does it add space char at the end?
...
KT-1237 Auto-completion of "return" keyword should not insert space after it when in a method returning Unit
#KT-1237 fixed
#KT-1238 fixed
2012-04-09 11:43:46 +04:00
Stepan Koltsov
bd501f3676
minor JavaDescriptorResolver refactoring
2012-04-09 03:26:04 +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
aae7ba734d
useless environment field in CompileEnvironmentTest
2012-04-09 02:09:12 +04:00
Stepan Koltsov
ea6b54ee45
ForTestCompileBuiltins and ForTestCompileJdkHeaders
...
(will be used later)
2012-04-09 00:07:53 +04:00
Stepan Koltsov
956bf0107e
missed field name
2012-04-09 00:07:53 +04:00
Stepan Koltsov
4125a508ec
create forTestCompile package
2012-04-09 00:07:52 +04:00
Stepan Koltsov
d74c217936
rename stdlib to runtime
2012-04-08 23:31:29 +04:00
Stepan Koltsov
09ddfb714e
cleanup in JavaDescriptorResolver
2012-04-08 23:23:59 +04:00
Stepan Koltsov
b0325f14ef
remove useless field in JavaNamespaceDescriptor
2012-04-08 23:23:59 +04:00
Evgeny Gerashchenko
05fd46009d
Replaced diagnostic factories so they show type FQ names instead of short names.
...
#KT-1137 fixed
2012-04-08 22:45:07 +04:00
Stepan Koltsov
886cfbdb98
create JavaPackageScope for class statics
...
... and compute "kotlin" flag in ResolverScopeData
2012-04-08 22:26:15 +04:00
Stepan Koltsov
ce0565b449
exclude JetJavaMirrorMaker in PsiClassFinder
2012-04-08 22:26:15 +04:00
Nikolay Krasko
4ec080f71f
KT-1666 Invoking "Go to Declaration" for String type offers two variants - Temp boring fix
...
#KT-1666 fixed
2012-04-08 20:38:11 +04:00
Evgeny Gerashchenko
aec021e668
Implemented better rendering for parameters with default values in decompiler and descriptor renderer.
...
#KT-1582 fixed
2012-04-08 19:59:53 +04:00
Evgeny Gerashchenko
0d84a045ee
Minor: added @NotNull annotations from interfaces.
2012-04-08 19:42:46 +04:00
Stepan Koltsov
41fb628004
merging ResolverScopeData subclasses and Java*Scope classes
2012-04-08 05:52:01 +04:00
Stepan Koltsov
7be3d247f9
fix tests after recent refactoring
2012-04-08 05:39:46 +04:00