Commit Graph

1704 Commits

Author SHA1 Message Date
Svetlana Isakova 1ed79d534f KT-151 Inherit visibility when overriding
#KT-151 Fixed

Visibilities.INHERITED constant added (occurs only during resolve), changed after overridden descriptors resolve
Fake descriptors are created for invisible properties as well (is necessary for better error reporting)
2012-04-18 19:02:24 +04:00
Svetlana Isakova b5bf4a626c Reverted explicitly specifying visibility modifier while override 2012-04-18 19:02:24 +04:00
Svetlana Isakova 8d6d292150 more tests for resolve order 2012-04-18 19:02:24 +04:00
Svetlana Isakova f208f9c64a 'isSubclass' method refactoring 2012-04-17 20:47:51 +04:00
Stepan Koltsov 5e8b0d39db class containigDeclaration cannot be null 2012-04-17 16:03:31 +04:00
Svetlana Isakova 84f32c99ae incomplete assignment bug from EA fixed 2012-04-17 15:00:04 +04:00
Svetlana Isakova 4d62fbad2b changed resolution order: first priority is 'local extensions; members; nonlocal extensions', than by implicit receivers (before was vice versa) 2012-04-17 14:05:45 +04:00
James Strachan 6ac4169003 fixes broken tests - bad james! 2012-04-17 10:48:58 +01:00
Stepan Koltsov b8d2e62d2c sometimes descriptor has more than one declaration 2012-04-16 18:57:41 +04:00
Andrey Breslav 0f98c281ab KT-1781 Can't distinguish between two constructors
#KT-1781 Fixed

 Now, if foo() and foo(vararg bar) both match the call site, the first one is preferred
2012-04-16 16:14:08 +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
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