Commit Graph

10310 Commits

Author SHA1 Message Date
Natalia.Ukhorskaya f2b3be7416 Unify properties initialization for init and clinit 2013-04-17 16:18:10 +04:00
Mikhael Bogdanov 57b161b08a KT-3500: ClassFormatError: Duplicate method name&signature in class file && KT-3429: Traits override bug 2013-04-17 15:23:33 +04:00
Mikhael Bogdanov 3da3f94b4e KT 3492: Bug in bytecode generation for labeled super call from inner class & Property generation refactoring 2013-04-17 15:23:33 +04:00
Mikhael Bogdanov 8a14087c91 Refactoring: property processing generalization 2013-04-17 15:23:33 +04:00
Mikhael Bogdanov 0ba38b9f09 Removed code duplication and unnecessary branch 2013-04-17 15:23:33 +04:00
Mikhael Bogdanov 48d153e8b2 General class for Field, Property, FieldForSharedVar extracted 2013-04-17 15:23:33 +04:00
Andrey Breslav a514d76116 Optimization: Unneeded collection creation eliminated 2013-04-17 13:49:47 +04:00
Andrey Breslav da2d417662 Optimization: no need to build a set of all supertypes, if we only need to check whether there's a nullable one 2013-04-17 13:49:47 +04:00
Andrey Breslav af5ee3acba forceResolveAll() is not called when compiler initializes built-ins 2013-04-17 13:49:47 +04:00
Andrey Breslav be62290aff Creating physical files to avoid unnecessary work inside the PSI framework 2013-04-17 13:49:46 +04:00
Andrey Breslav 1dc9ab1bd8 Avoiding rehashes (profiling results improved) 2013-04-17 13:49:46 +04:00
Andrey Breslav a76d1d770b Class made final and a call to getClass() eliminated
(Profiling results improved)
2013-04-17 13:49:46 +04:00
Andrey Breslav 2c60f73fa5 Profiling shows that ImmutableSet is faster than EnumSet in this case 2013-04-17 13:49:45 +04:00
Andrey Breslav e354d3d629 Unnecessary copy eliminated 2013-04-17 13:49:45 +04:00
Andrey Breslav bab8b63fcb Merge pull request #246 from lopekpl/failing_assertion
Fix failing assertion in ChangeFunctionTypeFix
2013-04-17 00:37:22 -07:00
Wojciech Lopata 0543b73099 Fix failing assertion in ChangeFunctionTypeFix 2013-04-17 09:22:33 +02:00
Andrey Breslav 1d08bf7895 toString() in diagnostic classes 2013-04-12 21:06:55 +04:00
Andrey Breslav 125bfb2291 Simple (not thread-safe) memoized functions supported 2013-04-12 21:06:55 +04:00
Andrey Breslav df9f4ea6d6 Better diagnostics in CompilationException 2013-04-12 21:06:54 +04:00
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