Commit Graph

8315 Commits

Author SHA1 Message Date
Svetlana Isakova 68b4b8e946 KT-5182 Data flow info is lost for 'when' branches
#KT-5158 Fixed
  #KT-4332 Fixed
2014-06-06 15:56:02 +04:00
Svetlana Isakova cb788579ba Refactoring: extracted 'getDataFlowInfosForEntryCondition'
Removed duplicated code
2014-06-06 15:56:02 +04:00
Svetlana Isakova 1eaf79bd1e Analyzing 'when' expression refactoring
collect data flow infos for branch with many conditions
2014-06-06 15:56:02 +04:00
Evgeny Gerashchenko c7318b3880 Added slashes in generated tests when they are invoked on directory.
This makes it easier to find directory for test using IDEA's go to file/search everywhere features.
2014-06-06 14:33:21 +04:00
Pavel V. Talanov ccae693ed2 JDR: Remove some usages of JavaClassResolver#resolveClassByFqName in LazyJavaAnnotationDescriptor 2014-06-05 18:17:05 +04:00
Natalia Ukhorskaya 57fc2c8301 Android tests: exclude reflection tests 2014-06-05 10:10:30 +04:00
Svetlana Isakova ae9d2d015e Record 'a!!', 'a ?: b' special calls by operation reference 2014-06-04 22:10:29 +04:00
Svetlana Isakova cf81a44e02 Added 'getCorrespondingCall' utility function 2014-06-04 22:10:29 +04:00
Svetlana Isakova 8a91ec7964 Record CALL for all invocations, not only for resolved ones 2014-06-04 22:10:29 +04:00
Nikolay Krasko 432eabdbcb Don't process val and var keywords in lambda parameters forever (KT-5170)
#KT-5170 Fixed
2014-06-04 18:53:59 +04:00
Evgeny Gerashchenko 8f6c2b96f3 Extracted method to util class and replaced parameter to Project. 2014-06-04 15:34:19 +04:00
Evgeny Gerashchenko aad719d809 Minor. Rearranged code. 2014-06-04 15:34:18 +04:00
Evgeny Gerashchenko aaebce2683 Got rid of ModuleChunk (it makes no sense now). 2014-06-04 15:34:18 +04:00
Evgeny Gerashchenko 601a691e18 Corrected and simplified compilation of module chunk. 2014-06-04 15:34:17 +04:00
Alexey Sedunov 1a7e6eab61 Extract Function: Utilize pseudo-value usage for return type inference 2014-06-03 18:17:09 +04:00
Alexey Sedunov 164338d6f5 Remove unused field 2014-06-03 18:17:08 +04:00
Alexey Sedunov 4a5d2e6728 Add tests for element -> pseudo-value mapping 2014-06-03 18:17:07 +04:00
Alexey Sedunov d2c055e9da Pseudocode: Introduce pseudo-value analysis 2014-06-03 18:17:05 +04:00
Valentin Kipyatkov ffa3ff3bbd Generating test output when file is missing: removing trailing whitespaces 2014-06-03 17:29:00 +04:00
Valentin Kipyatkov 1e39021bd3 Java to Kotlin convertor: making code more "Kolin-like" + numerous micro refactorings 2014-06-03 17:29:00 +04:00
Andrey Breslav 37532e8d02 Compare return types when structurally comparing callables 2014-06-02 22:05:34 +04:00
Andrey Breslav 7f60ccf663 Support equalityAxioms in isSubtypeOf() 2014-06-02 22:05:33 +04:00
Andrey Breslav 9cfbfd2806 Overridability and overloadability checks separated 2014-06-02 22:05:33 +04:00
Andrey Breslav e50a17e668 Do not compare local classes by FqNames 2014-06-02 22:05:32 +04:00
Andrey Breslav f54e2bc498 OverridingUtil turned into a singleton 2014-06-02 22:05:30 +04:00
Andrey Breslav 204fa76691 When checking overrides, compare methods structurally
Because they may come from different copies of the same class from different modules
2014-06-02 22:05:28 +04:00
Andrey Breslav 5a864dbc62 Fix "rewrite at slice" problems with resolving same Java class many times over the same trace 2014-06-02 21:49:20 +04:00
Nikolay Krasko 848863ef93 Completion fails with exception "Toplevel class has no fqName" (KT-5119)
Groovy scripts files can create PsiClasses with null qualfied names (getQualifiedName()) and names (getName()).

 #KT-5119 Fixed
2014-06-02 20:36:42 +04:00
Alexey Sedunov 966def6c77 Replace accessor functions with property 2014-06-02 19:48:37 +04:00
Alexey Sedunov 6ce0ac8187 Move skipVisibility check to createTempCopy() 2014-06-02 19:48:36 +04:00
Alexander Udalov ae7ad6d61c Regenerate tests 2014-06-02 18:52:37 +04:00
Alexander Udalov 69dd2bbf10 Fix StringBuilder.append generation
append(StringBuilder) is private and should not be called
2014-06-02 18:29:39 +04:00
Laszlo Hornyak 9dec0fb779 Correct the argument types of the StringBuilder.append
Modified AsmUtil to generate calls to more specific append methods
in the StringBuilder class in order to save computation time and make
less temporary objects.

Also adds unit-test to verify that the append(Object) method was
invoked 0 times while the append(String) 3 times

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2014-06-02 16:34:44 +04:00
Mikhael Bogdanov 34e8cae89e KT-5112 - test file update 2014-06-02 15:21:28 +04:00
Mikhael Bogdanov c80901bafa KT-5112 Generic signature lost for a field copied from class object to containing class
#KT-5112 Fixed
2014-06-02 13:12:25 +04:00
Pavel V. Talanov 7973c9bfca Do not load Icon in LightVariableBuilder constructor 2014-05-30 14:58:50 +04:00
Nikolay Krasko dd00d7d004 Introduce utility method for working with multifile tests 2014-05-30 00:04:02 +04:00
Alexander Udalov 796912bfcb Provide implicit receiver to extension property initializer
This is safe because initializers for extension properties are forbidden
anyway, we'll just won't be generating noisy error messages about non-existent
'this'
2014-05-29 21:24:06 +04:00
Alexander Udalov d78d4bc44c Disallow extension properties with backing fields
#KT-1682 Fixed
2014-05-29 21:24:05 +04:00
Alexander Udalov ea31f372aa Check for syntax/diagnostic errors in some tests 2014-05-29 21:24:05 +04:00
Alexander Udalov 2b5bc6b63d Fix logic of forcing method return type to be wrapped
Return type must be wrapped if any super-method in the hierarchy, not just the
direct super-method, returns a reference type (as opposed to a primitive type)

Actually there was a test reflecting this, but it wasn't running because of an
unfixed diagnostic error
2014-05-29 21:24:02 +04:00
Alexander Udalov 33f8c49275 Minor, change test case according to its name 2014-05-29 21:07:34 +04:00
Alexander Udalov 6210e45fbc Minor, improve test case for KT-1157
Multithreaded version was not working correctly and was throwing NPEs in the
log sometimes
2014-05-29 21:07:34 +04:00
Alexander Udalov 8a84d07645 Fix warnings in JVM codegen tests
Add generics where needed, add nullability annotations, etc.
Also delete some testcases from ArrayGenTest which will never be supported
2014-05-29 21:07:34 +04:00
Alexey Sedunov 4678a5866a Light Classes: Track original declaration for Kotlin light fields
#KT-4902 Fixed
2014-05-28 21:06:01 +04:00
Andrey Breslav df413c0b47 cast() method in DiagnosticFactory 2014-05-28 14:53:30 +04:00
Andrey Breslav caeb978c7a Fix for EA-41250 - E: _JetLexer.zzScanError - Could not match input 2014-05-27 18:49:31 +04:00
Andrey Breslav e50eb73fb1 Throw exceptions (not errors) from lexer
+ Add more data to the exception message
2014-05-27 18:17:46 +04:00
Evgeny Gerashchenko cd3ffb6564 Removed resolve tool window since it is not used. 2014-05-27 16:37:31 +04:00
Alexander Udalov cc94010d07 Fix broken test data file 2014-05-26 16:49:10 +04:00