Evgeny Gerashchenko
f7d9ecafe4
Made overrides/implements mark tooltips more readable.
2012-04-23 18:04:12 +04:00
Evgeny Gerashchenko
366079a96c
Improved word selection for parameters and arguments.
...
#KT-1657 fixed
2012-04-23 18:00:09 +04:00
Evgeny Gerashchenko
04143a2563
Moved selectioners to separate package.
2012-04-23 18:00:09 +04:00
Nikolay Krasko
d9b04edcf8
EA-34996 Old assert that is difficult to maintain
2012-04-23 17:59:04 +04:00
Evgeny Gerashchenko
cde38382c0
Fixed processing function type parameters in override/implement members.
...
#KT-1603 fixed
2012-04-23 16:48:12 +04:00
Andrey Breslav
789ff0b273
KT-1838 Constructor with a vararg
...
Resolution for properties declared as primary constructor parameters used to ignore the varargs annotation.
#KT-1838 Fixed
2012-04-23 14:16:07 +04:00
Leonid Shalupov
32a55f786c
integration tests: temp dir, stable test output
2012-04-22 23:10:49 +04:00
Leonid Shalupov
40e594668b
integration tests: compile and run hello app
2012-04-22 22:54:13 +04:00
Leonid Shalupov
22d601ffcb
integration tests draft
2012-04-22 22:38:36 +04:00
Stepan Koltsov
75255aebdc
use BufferedOutputStream when building jar
...
it speeds up building (from 3% to 1% in CompileCompilerDependenciesTest)
2012-04-21 18:03:57 +04:00
Stepan Koltsov
7c8937bd2d
JavaDescriptorResolver: negative package cache
...
Time spent in JavaDescriptorResolver.resolveNamespace reduced from 10% to 5%
in CompileCompilerDependenciesTest
2012-04-21 18:03:53 +04:00
Evgeny Gerashchenko
be9004aa62
Expanded availability of "Specify Type Explicitly" intention.
...
#KT-1849 fixed
2012-04-21 02:51:49 +04:00
Evgeny Gerashchenko
82b4304f0e
Added auto-importing in JetChangePropertyActions.addTypeAnnotation(). It is used in "specify type explicitly" intention and "introduce variable" refactoring. Corrected auto-importing for cases of nested classes (e.g. Map.Entry).
2012-04-21 02:39:23 +04:00
Evgeny Gerashchenko
32605248c5
Added intention which adds or removes explicit type specification for property or variable.
...
#KT-1427 fixed
2012-04-21 01:09:05 +04:00
Evgeny Gerashchenko
8c5c9311fb
Added *.template files to resource templates for compiler.
2012-04-21 00:56:04 +04:00
Evgeny Gerashchenko
e298391645
Fixed tests.
...
#KT-1799 fixed
2012-04-20 22:16:20 +04:00
Evgeny Gerashchenko
7147998c5c
Replaced "namespace header" with "package directive" in parser error.
...
#KT-1799 fixed
2012-04-20 22:02:28 +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
Stepan Koltsov
994e6fe009
di: store everything in fields
...
needed to implement @PreDestroy
2012-04-20 21:33:17 +04:00
Stepan Koltsov
092a572143
do not compile java part of runtime
...
it must be already compiled by Idea
2012-04-20 21:33:17 +04:00
Evgeny Gerashchenko
e4eb48e61a
Got rid of saving argument list in NONE_APPLICABLE diagnostic.
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko
466e669727
Added valid rendering varargs and parameters with default values in NONE_APPLICABLE diagnostic.
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko
0f0330a4b4
Added rendering vararg keywords and valid parameter type in this case.
...
#KT-1840 fixed
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko
1f19c6a0f0
Extracted class NoneApplicableCallsRenderer.
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko
eddc550139
Implemented highlighting arguments which don't fit in tooltip.
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko
60622337c3
Implemented stub of highlighting parameters in error tooltip for NONE_APPLICABLE.
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko
9a3af476e5
Implemented getDiagnostics() in BindingContext returned by DelegatingBindingTrace.
2012-04-20 20:44:09 +04:00
Evgeny Gerashchenko
90ac45f3f9
Added extra space after function type arguments list in DescriptorRenderer. Added test.
2012-04-20 20:44:08 +04:00
Evgeny Gerashchenko
1f7c435a24
Removed val/var soft keywords in renderer for functions
2012-04-20 20:44:08 +04:00
Andrey Breslav
de893bb675
Refresh VFS to prevent sporadic test failures
2012-04-20 20:34:58 +04:00
Andrey Breslav
a31edfc3bd
KT-1835 cannot call a Java API which has a method from(String) and from(String...)
...
The problem was in the "more specific" relation, that didn't pay enough attention to varargs.
The correct behavior is in the spirit of JLS 15.12.2 (as of Java 5):
* a fixed-arity function always wins over a variable-arity functions
* if two vararg functions are compared, their parameters are checked for subtyping.
In the latter case, the candidates may have different number of formal parameters, so we
compare the matching parts and then check the rest against the vararg parameter.
#KT-1835 Fixed
2012-04-20 20:00:41 +04:00
Andrey Breslav
45a0873afa
KT-1835 cannot call a Java API which has a method from(String) and from(String...)
...
The problem was in the "more specific" relation, that didn't pay enough attention to varargs.
The correct behavior is in the spirit of JLS 15.12.2 (as of Java 5):
* a fixed-arity function always wins over a variable-arity functions
* if two vararg functions are compared, their parameters are checked for subtyping.
In the latter case, the candidates may have different number of formal parameters, so we
compare the matching parts and then check the rest against the vararg parameter.
#KT-1835 Fixed
2012-04-20 19:10:10 +04:00
Andrey Breslav
da474b961f
Detailed status for ValueArgumentsToParameterMapper
...
When a non-vararg parameter gets spread with a '*' in front of it, a "weak error" is returned.
A candidate with a weak error in parameter matching is type-checked, but not successful.
2012-04-20 19:10:10 +04:00
Svetlana Isakova
09f7c012bd
preserve order of resolved calls
2012-04-20 17:12:51 +04:00
Svetlana Isakova
5ec7617c7a
Call resolution refactoring (logic hasn't changed)
...
- interfaces MemberPrioritizer, ResolutionCandidate introduced
- CallTransformationStrategy will be responsible for variable with 'invoke' method as function resolve
2012-04-20 15:52:36 +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
bd9824b752
buildConfluenceLexer script removed from Ant configuration
2012-04-20 14:33:12 +04:00
Andrey Breslav
e14f0e637c
The confluence plugin has been moved to a separate repository
...
New repository is located at https://github.com/jetbrains/kotlin-confluence-plugin
2012-04-20 13:32:49 +04:00
Andrey Breslav
1b7128c6b6
KDoc fixed according to the compiler refactoring
2012-04-20 12:14:11 +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
Andrey Breslav
d09916ca38
Merge pull request #41 from NataliaUkhorskaya/master
...
Changes in confluence plugin
2012-04-19 09:25:56 -07:00
Natalia.Ukhorskaya
3d86084a8e
Add tests for rendering: examples from actual confluence, special tags
2012-04-19 20:11:56 +04:00
Natalia.Ukhorskaya
8074629b77
Refactoring in JetMacro
2012-04-19 20:09:47 +04:00
Stepan Koltsov
216cbf7d9a
assert error/NonExistentClass is only generated when mode = SIGNATURES
...
move classBuilderMode to injector and GenerationState from ClassBuilder
2012-04-19 18:56:05 +04:00
Evgeny Gerashchenko
85ce85383b
Added rendering variance for type parameters in DescriptorRenderer.
2012-04-19 18:46:45 +04:00
Nikolay Krasko
4953be7f6f
KT-1786 IDEA complains about toolwindow icon size
...
#KT-1786 fixed
2012-04-19 17:09:51 +04:00
Stepan Koltsov
9bfcc017b2
use proper replace
2012-04-19 16:41:39 +04:00
Stepan Koltsov
b47d37094e
properly report exception if analyze failed
...
#KT-1831 Fixed
2012-04-19 16:41:34 +04:00