Commit Graph

7616 Commits

Author SHA1 Message Date
Andrey Breslav 756ca9b284 DataFlowInfo treatment adjusted for absence of complex patterns
As patterns in when are no longer recursively nested, teh code is simplified.
Also, instead of keeing a Map<JetPattern, DataFlowInfo> patternsToDataFlowInfo in ExpressionTypingContext,
we fall back for a slice in the trace.

Refactoring: DataFlowInfos class introduced to repace a Pair<DFI, DFI>

 #KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Andrey Breslav 70f3da109d Removing obsolete PSI classes, error message and CF-handling
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Andrey Breslav 10d453ce6a Removing grammar/parsing support for complext patterns
#KT-2359 In progress
2012-09-05 14:18:40 +04:00
Andrey Breslav a7f62a7d6e Test uncommented and fixed 2012-09-05 14:18:40 +04:00
Andrey Breslav fbc0ca1b77 Gererated tests now check that all the relevant directories are present
We only checked test data files before
2012-09-05 14:18:40 +04:00
Andrey Breslav 73384529c7 Proper toString() for DataFlowInfo 2012-09-05 14:18:39 +04:00
Andrey Breslav 755c830714 Comment deleted 2012-09-05 14:18:39 +04:00
Andrey Breslav 26cc07091c Secondary constructors are not there any more 2012-09-05 14:18:39 +04:00
Andrey Breslav 15ce394000 File names + proper lines 2012-09-05 14:18:39 +04:00
Andrey Breslav 366b069679 Methods extracted 2012-09-05 14:18:39 +04:00
Andrey Breslav 1c5236af5c Properly locate idea.properties 2012-09-05 14:18:39 +04:00
Andrey Breslav 53bc6c07fd Support line numbers in grammar generator 2012-09-05 14:18:39 +04:00
Natalia.Ukhorskaya b113059c2c KT-2709 Optimizing import removes reference to class when in code val from its class object is used
#KT-2709 Fixed
2012-09-05 11:39:42 +04:00
Natalia.Ukhorskaya cc215d4212 Optimizing imports doesn't remove references to java static fields when they are referred via short name in code 2012-09-05 11:29:35 +04:00
Nikolay Krasko d4564a41e3 EA-38865 Fail for convention functions names 2012-09-04 22:56:12 +04:00
Evgeny Gerashchenko c2b3cd79b3 Better exception handling in JetPsiChecker. Exceptions are rethrowed only in test mode. In production, error is logged and error annotation is registered. 2012-09-04 17:59:18 +04:00
Nikolay Krasko c8ac9b4997 Remove old comments 2012-09-04 17:21:34 +04:00
Nikolay Krasko d9cd4f0d74 KT-2725 No completion in properties initializers and accessors
#KT-2725 Fixed
2012-09-04 16:37:37 +04:00
Nikolay Krasko 138373c94c KT-2724 No completion in class initializers
#KT-2724 Fixed
2012-09-04 15:36:30 +04:00
Nikolay Krasko a0c2cee754 Rename method refactoring 2012-09-04 15:05:25 +04:00
Nikolay Krasko 2fdcfcfff4 Don't share lazy resolve session between different clients. It can give slice overwrite exceptions. 2012-09-04 14:18:10 +04:00
Nikolay Krasko d2fa6abf4a Refactor method - remove null value warnings 2012-09-04 13:37:30 +04:00
Nikolay Krasko fc887a869d Refactor class for showing parameters tooltip 2012-09-04 13:37:28 +04:00
Nikolay Krasko 994cc2e1da Refactoring: remove warnings 2012-09-04 13:37:27 +04:00
Nikolay Krasko 3cbe2a270b Slightly optimize tests 2012-09-04 13:37:26 +04:00
Natalia.Ukhorskaya 7e1091a6af KT-1850 Fixed: Redundant imports are not removed when classes are used only by FQ name
OptimizeImportsMultiFileTest added
2012-09-03 17:59:52 +04:00
Alexander Udalov 5b96d045f9 Fix debugger testdata after bd5b8d3 2012-08-31 19:37:29 +04:00
Evgeny Gerashchenko bd5b8d3287 Added "$" in the end of multi-file namespace internal names to prevent them from having "Test" suffix. This blows JUnit test-runner's mind. 2012-08-31 19:02:42 +04:00
Alex Tkachman a54776196a fixed bug with compilation of this/outer. no need to check context hierarchy for superclasses except case of super call. 2012-08-31 17:42:35 +03:00
Natalia.Ukhorskaya c5711cccda Rename test files 2012-08-31 15:13:46 +04:00
Natalia.Ukhorskaya 84e846649f Fixed KT-2488 Optimizing imports removes references to enum constants when they are referred via short name in code 2012-08-31 14:52:04 +04:00
Alex Tkachman 737b794935 fix for KT-2711 wrong check on descriptor being integral range
method added to JetStandardLibrary to get all integral range descriptors
#KT-2711 fixed
2012-08-31 13:49:20 +03:00
Andrey Breslav c027b4149b Test for KT-2529 Support importing enum members using wildcard
#KT-2529 Fixed
2012-08-31 14:38:54 +04:00
Pavel V. Talanov 04da2f453a Test for KT-2281.
#KT-2281 fixed
2012-08-31 14:35:54 +04:00
Andrey Breslav 859dbc87d4 Fix CANNOT_CHECK_FOR_ERASED for when() 2012-08-31 14:23:02 +04:00
Andrey Breslav 002f34e6f5 Fields renamed in accordance to out conventions 2012-08-31 13:19:13 +04:00
Andrey Breslav 6b7a6c1cd2 Unused class removed 2012-08-31 13:18:38 +04:00
Andrey Breslav d8e562319f Clarifying comment 2012-08-31 13:16:40 +04:00
Andrey Breslav b6985bba8a Fixing test data according to changes in 0d86dee (Chars only range to other chars) 2012-08-31 13:05:17 +04:00
Andrey Breslav fee7131484 Relace a literal with a constant access 2012-08-31 12:52:47 +04:00
Andrey Breslav 0d86dee776 Chars only range to other chars 2012-08-31 12:52:47 +04:00
Andrey Breslav ce1320bab3 Multi-declarations supported in all flavours of for loops
(KT-2635 Support iteration with multiple range variable in JVM back-end)
 #KT-2635 Fixed
2012-08-31 12:52:47 +04:00
Andrey Breslav f1c4ab7188 Fix for RangeTo intrinsic for the case of LongRange 2012-08-31 12:52:46 +04:00
Andrey Breslav e8e5d3a87d Val-capturing tests for for-loops over arrays 2012-08-31 12:52:46 +04:00
Andrey Breslav d57986d3ca Commented code fragment deleted 2012-08-31 12:52:46 +04:00
Andrey Breslav 2a1307e040 For-loop over long range test 2012-08-31 12:52:46 +04:00
Alex Tkachman bf892870e1 fix for multiple evaluation of expression on multi var declaration 2012-08-31 11:45:56 +03:00
Natalia.Ukhorskaya dd3323cae2 Fixed KT-2418 Front-end allows enum constants with same name 2012-08-31 11:16:35 +04:00
Natalia.Ukhorskaya 1ef8818556 Front-end: Prohibit to create inner class with the same name as a property 2012-08-31 11:15:57 +04:00
Alex Tkachman 5038c906b2 fixed critical bug with receiver used in constructor, field initializer 2012-08-31 08:20:51 +03:00