Commit Graph

20116 Commits

Author SHA1 Message Date
Andrey Breslav fc3cd20456 Minor. Formatting fixed 2015-02-10 06:55:47 +01:00
Andrey Breslav fcac449c70 Nullability-related warnings for receivers
#KT-6723 In Progress
2015-02-10 06:55:47 +01:00
Andrey Breslav 5db6bb04e3 Basic Java nullability warnings implemented
#KT-6723 In Progress
2015-02-10 06:55:47 +01:00
Andrey Breslav 29d24374d6 Type approximation factored out as an additional checker 2015-02-10 06:55:47 +01:00
Andrey Breslav a35c6b1566 AdditionalTypeCheckers introduced to factor out approximation logic later 2015-02-10 06:55:46 +01:00
Andrey Breslav 82ace2b251 ResolutionContext used always for checkType() 2015-02-10 06:55:46 +01:00
Andrey Breslav 0e972acf8c == turned into a safe-call 2015-02-10 06:55:46 +01:00
Alexander Udalov 560b2346a6 Fix ScriptTest, use full JDK instead of mock
Mock JDK has an incomplete hierarchy (OutputStream -> Flushable) and this is
relevant in ScriptTest because it collects all compiler output messages
2015-02-10 00:34:18 +03:00
Dmitry Jemerov 7827bbf64b Standard library documentation updates. 2015-02-09 19:19:29 +01:00
Alexander Udalov 6763d61aae Minor, fix warning, don't create empty map 2015-02-09 21:14:03 +03:00
Alexander Udalov a6ac56ae5a Sort source files in JetCoreEnvironment
Is supposed to help make error situations more deterministic
2015-02-09 21:14:03 +03:00
Alexander Udalov 339a38b69b Minor, use module.resolveTopLevelClass() utility 2015-02-09 21:14:03 +03:00
Alexander Udalov 192e69e90b Minor, add toString() to JavaElementFinder.FindClassesRequest 2015-02-09 21:14:03 +03:00
Alexander Udalov 4128655893 Report incomplete hierarchy error
This is the case when you reference a Java class in Kotlin whose superclass is
not resolved. Previously this fact was swallowed by LazyJavaClassDescriptor
leading to mysterious compilation errors

 #KT-5129 Fixed
2015-02-09 21:14:02 +03:00
Alexander Udalov 28d8c8906a Use module instead of trace in light class search
Fixes weird and infrequent compilation errors in KotlinLightClassForPackage.kt
2015-02-09 21:14:02 +03:00
Dmitry Jemerov 246cce0502 Merge pull request #569 from yole/kdoclinkparser-npe
fix NPE in KDocLinkParser
2015-02-09 18:38:15 +01:00
Dmitry Jemerov 084470e840 fix NPE in KDocLinkParser 2015-02-09 18:21:50 +01:00
Alexander Udalov ebed59e26a Fix temporary workaround: bridge was not generated 2015-02-09 19:23:19 +03:00
Alexey Sedunov baaabecaf9 Shorten references: Do not process shortened elements since they become invalid (and can't be analyzed) 2015-02-09 13:02:05 +03:00
Valentin Kipyatkov c915d2b0cd Auto-import popup uses new algorithm for import insertion 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov 0967ccb1cd Filtering out nested elements for reference shortening 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov 033b626a08 Fixed test data 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov 78be48ace8 Minor refactoring 2015-02-09 13:02:03 +03:00
Valentin Kipyatkov a3f546c6f9 Moved classes to other packages 2015-02-09 13:02:03 +03:00
Valentin Kipyatkov 09a99ae605 Moved import policy into ImportInsertHelper 2015-02-09 12:56:01 +03:00
Valentin Kipyatkov 952c64f947 Rewritten shortening references algorithm to work correctly with new smart import insertion 2015-02-09 12:56:01 +03:00
Valentin Kipyatkov 33ae316899 Minor 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 33f979768d More elegant shortening of user type 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 3bc2f89a1b Corrected test data after changes in import insertion + added when more test which fails with the current reference shortening algorithm 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 5d516a5f72 No need to shorten non-affected references in quickfixes 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 2fd51c30cf No redundant import optimization 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov f62391ca1d Minor code improvements 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov 22d805aede Fixed a bug in import insertion algorithm 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov ef8be9560a Import insertion helper is not confused by inaccessible classes + check visibility of imported declarations through PackageViewDescriptor instead of PackageFragmentDescriptor 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov dfe71ef7ae Import insertion algorithm 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov 975b67ed29 Minor refactoring after conversion 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov f6df6eaeea Converted to Kotlin (step 2) 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov 98be4566d2 Converted to Kotlin (step 1) 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov ca2a46e42f Auto-import popup to work for ambiguous class name 2015-02-09 12:55:22 +03:00
Valentin Kipyatkov 0686629e49 Code refactoring after conversion 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov c8ecbcf088 Converted file to Kotlin (step 2) 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov b9080d41d4 Converted file to Kotlin (step 1) 2015-02-09 12:55:21 +03:00
Valentin Kipyatkov 02e63196f8 Performance optimization 2015-02-09 12:55:21 +03:00
Alexander Udalov 720942b05f Temporary workaround for compilation errors in KotlinLightClassForPackage 2015-02-09 12:41:59 +03:00
Nikolay Krasko 6f6a65cb8d Convert to LinkedHashSet 2015-02-06 23:53:17 +03:00
Nikolay Krasko 9173c59969 Fix deprecated warning 2015-02-06 23:53:16 +03:00
Nikolay Krasko de22bfbde9 Refactoring: extract method createFakeClsFile 2015-02-06 23:53:16 +03:00
Nikolay Krasko 8dd910bd36 Convert to Kotlin KotlinLightClassForPackage: fixes for j2k converter 2015-02-06 23:53:15 +03:00
Nikolay Krasko a4e2c3b6fa Convert to Kotlin KotlinLightClassForPackage: j2k converter 2015-02-06 23:53:14 +03:00
Nikolay Krasko 082ac7a05f Convert to Kotlin KotlinLightClassForPackage: file rename 2015-02-06 23:53:13 +03:00