Andrey Breslav
d612a1167d
Better error reporting in codegen tests:
...
an exception from generateToText() used to mask the one from the original run
2013-04-12 21:06:54 +04:00
Andrey Breslav
089a2fc071
Run tests only from the appropriate module
2013-04-12 21:06:54 +04:00
Andrey Breslav
8a79e7ab7d
.jet -> .kt
2013-04-12 21:06:54 +04:00
Andrey Breslav
99e735ba7b
An unfortunate design decision removed from tests
2013-04-12 21:06:53 +04:00
Andrey Breslav
f9fd7bfba5
Tracking sliced map for debugging "Rewrite at slice..."
2013-04-12 21:06:53 +04:00
Andrey Breslav
03335b5143
Constant made final
2013-04-12 21:06:53 +04:00
Andrey Breslav
aee27aee2a
Topologically sort fields according to constructor dependencies
2013-04-12 21:06:52 +04:00
Andrey Breslav
8c967e0c73
Unused parameters removed from injectors
2013-04-12 21:06:52 +04:00
Andrey Breslav
dc8e80ea59
Reporting unused parameters
2013-04-12 21:06:52 +04:00
Andrey Breslav
76e7731b6b
Better reporting of ambiguous dependencies
2013-04-12 21:06:51 +04:00
Andrey Breslav
1d41f9faf3
Better error reporting for missing dependencies
2013-04-12 21:06:51 +04:00
Svetlana Isakova
7588c8d81f
mark 'unresolved' if invoke method on type parameter
...
instead of resolve to error element
2013-04-12 20:01:09 +04:00
Svetlana Isakova
204ffde78a
added errors TYPE_PARAMETER_ON_LHS_OF_DOT,
...
TYPE_PARAMETER_IS_NOT_AN_EXPRESSION
fixed exception from ea
2013-04-12 17:35:00 +04:00
Svetlana Isakova
3168b732d3
annotate 'getArrayExpression' with @Nullable @IfNotParsed
...
from EA
2013-04-12 17:34:59 +04:00
Andrey Breslav
c422e4194d
Reverting pull request 240
2013-04-12 15:25:52 +04:00
Michał Sapalski
d875bf80cb
Fixed regression in rendering generic types upper bounds.
2013-04-12 12:49:00 +04:00
Michał Sapalski
a8f43d1e47
Removed FunctionSignatureUtil.
2013-04-12 12:49:00 +04:00
Michał Sapalski
97796f9b0f
Refactoring: use DescriptionRenderer to generate overriding functions / properties.
2013-04-12 12:49:00 +04:00
Michał Sapalski
5b1f93b42e
Quickfix for NOTHING_TO_OVERRIDE
2013-04-12 12:47:21 +04:00
Evgeny Gerashchenko
3760922e84
Updated to IDEA 12.1.1 (build 129.239)
2013-04-11 22:30:12 +04:00
Evgeny Gerashchenko
976713d3e7
Minor. Regenerated.
2013-04-11 21:11:38 +04:00
Evgeny Gerashchenko
f713b03abc
Fixed propagation for non-abstract methods inherited from traits.
2013-04-11 21:06:33 +04:00
Zalim Bashorov
068b4a4628
Unnecessary TLinkedList replaced to LinkedList and rename FinalListItem to OpenClassInfo.
2013-04-11 20:26:47 +04:00
Zalim Bashorov
7680203de2
Fixed wrong linearization for open classes and traits.
...
openList changed during neighbors calculation because the same TLinkable object cannot be put into more than one TLinkedList at the same time.
#KT-3499 fixed
2013-04-11 20:26:47 +04:00
Nikolay Krasko
840a728d26
Add generated suffix to tests
2013-04-11 20:00:31 +04:00
Nikolay Krasko
9ccd6b847f
Use target platform interface instead of psi platform
2013-04-11 20:00:30 +04:00
Nikolay Krasko
87c9a65667
Move all basic completion tests to common folder
2013-04-11 20:00:29 +04:00
Nikolay Krasko
7f8e0e8803
Test keywords completion with fixture tests
2013-04-11 20:00:28 +04:00
Nikolay Krasko
3963eb0d5e
Add debug names for keyword completion contributors
2013-04-11 20:00:27 +04:00
Nikolay Krasko
f3e7ec81dc
Do extensions test with fixtures
2013-04-11 20:00:26 +04:00
Nikolay Krasko
aeff3c783e
Move class completion tests into ordinal tests
2013-04-11 20:00:25 +04:00
Nikolay Krasko
8ee8ddd997
Enable completion test from custom jar-libraries
2013-04-11 20:00:24 +04:00
Nikolay Krasko
e242f31dff
Rename methods (prefix -> prefixes)
2013-04-11 20:00:23 +04:00
Nikolay Krasko
170363cd5a
Using fixture for handler tests
2013-04-11 20:00:22 +04:00
Nikolay Krasko
1a5ccafd47
Refactor tests and activate them for working with JS
2013-04-11 20:00:22 +04:00
Nikolay Krasko
a79e997611
Add ability to test for unexpected directives in tested file
2013-04-11 20:00:20 +04:00
Nikolay Krasko
5ccea1185d
Make completion test framework be configurable for writing multi-platform tests
2013-04-11 20:00:20 +04:00
Nikolay Krasko
1d05125c8f
Refactoring: change parameters order in InTextDirectivesUtils
2013-04-11 20:00:19 +04:00
Alexander Udalov
797c3db93b
Regenerate tests
2013-04-10 22:15:38 +04:00
Alexander Udalov
57f6870e68
Remove useless parameter from FunctionGenerationStrategy
2013-04-10 20:25:16 +04:00
Alexander Udalov
330efd3967
Remove useless methods from codegen utils
2013-04-10 20:25:16 +04:00
Alexander Udalov
306e4bdbd7
Get rid of FunctionCodegen.MethodInfo
...
generateMethodBody() is now responsible for generating the local variable
table, therefore the data class MethodInfo is not needed anymore to return
multiple values from it
2013-04-10 20:25:15 +04:00
Alexander Udalov
a67866823e
Refactor FunctionCodegen.genJetAnnotations()
...
Always map descriptor to the callable method and take the signature from there,
since this way the signature appears to be more accurate. The whole
"mapSignature vs mapToCallableMethod.getSignature" story needs some
investigation though.
Also make the method non-static, remove useless checks, etc
2013-04-10 20:25:14 +04:00
Alexander Udalov
9187116055
Refactor componentN() function generation
...
Adopt to the new FunctionGenerationStrategy
2013-04-10 20:25:14 +04:00
Alexander Udalov
34009a2134
Refactor copy() function generation for data classes
...
Use FunctionCodegen and the newly created FunctionGenerationStrategy to
generate the needed instructions. Make some methods in FunctionCodegen private
since they're not used anymore outside of the class
2013-04-10 20:25:13 +04:00
Alexander Udalov
9bb3663b54
Extract generation logic from FunctionCodegen
...
Create a new class FunctionGenerationStrategy, which is used to specify exactly
how the body of a function will be generated. This is made primarily to factor
out the hard dependency on PSI in FunctionCodegen.generateMethod(). The PSI
element is now optional and is only used for debug information (as an argument
to newMethod() and endVisit()). This also helps to refactor the confusing logic
about generating default property accessors.
Assert for whether we generate code now for the declared member is now useless,
since generateMethod() will be used also for generating any possible members.
Also surround with "if ( != null)" some method call in genJetAnnotations(), as
null is possible here
2013-04-10 20:25:12 +04:00
Alexander Udalov
98688eed66
Simplify FrameMap construction in FunctionCodegen
2013-04-10 20:25:12 +04:00
Alexander Udalov
b2e389d90b
Minor refactoring in FunctionCodegen
...
Combine two nested classes, MethodBounds and LocalVariablesInfo, into one
MethodInfo. Rename some methods. No logic has changed
2013-04-10 20:25:11 +04:00
Alexander Udalov
099fa6c11e
Minor refactoring in Function/PropertyCodegen
...
Check if we need to generate code before calling generateMethod()
There were 4 such checks, 2 of them in PropertyCodegen, one in
FunctionCodegen.gen() and one in ClosureCodegen. Every usage except the last
was prepended with the check
2013-04-10 20:25:10 +04:00
Alexander Udalov
559b742737
Create AnonymousFunctionDescriptor
...
Will be used to check if the descriptor represents a function literal
2013-04-10 20:25:10 +04:00