Commit Graph

20144 Commits

Author SHA1 Message Date
Alexey Sedunov 96866a108f Change Signature: Support conversion between extension and non-extension functions 2015-02-11 14:40:26 +03:00
Alexey Sedunov b31da56e09 Shorten References: Introduce shortening options 2015-02-11 14:40:25 +03:00
Alexey Sedunov 8928c0282a Minor: Generalize visitor type of JetElement.acceptChildren() 2015-02-11 14:40:24 +03:00
Alexey Sedunov e68481557e Shorten References: Support 'this' simplification 2015-02-11 14:40:22 +03:00
Alexey Sedunov 3a7ae4303a Change Signature: Translate JetParameterUsage to Kotlin 2015-02-11 14:40:21 +03:00
Alexey Sedunov a406068aa1 Change Signature: Rename JetParameterUsage.java to .kt to keep history 2015-02-11 14:40:20 +03:00
Dmitry Jemerov 2963aea6b9 doc review 2015-02-11 12:38:07 +01:00
Dmitry Jemerov fe704d6042 More standard library documentation updates. 2015-02-10 19:44:17 +01:00
Alexander Udalov 63959c2ebf Drop temporary workaround, problem is fixed now 2015-02-10 16:32:47 +03:00
Alexander Udalov cd6d04b3ba Fix incompleteHierarchyInJava test on Windows
Normalize path delimiters to '/' via CliBaseTest
2015-02-10 16:31:58 +03:00
Valentin Kipyatkov b03b96f202 Fixed optimization in IterableTypesDetector which did not work from the beginning + make it work on FuzzyType 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov b2275ae424 Better equals in FuzzyType + do not need to treat not used parameters as free 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov 3c573d555a Smart completion: heuristic parameter types for some methods like Collection.contains() 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov 3b6b9a45e2 Refactored code to avoid code duplication 2015-02-10 16:13:51 +03:00
Valentin Kipyatkov 6d06436c34 KT-6376 Smart completion should work after "in" and "!in"
#KT-6376 Fixed
2015-02-10 16:13:50 +03:00
Valentin Kipyatkov 8f688ab7b7 Renamed 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov eae244c308 Grouped test data for smart completion by folders 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov fb7cd623ae Moves and renames 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov a32029f1fc Smart completion for for loop range to use loop variable type if defined 2015-02-10 16:13:50 +03:00
Valentin Kipyatkov f057445f6e KT-5035 Smart completion should work after "in" keyword in for loop
#KT-5035 Fixed
2015-02-10 16:13:50 +03:00
Evgeny Gerashchenko 86debfecf2 Merge pull request #561 from artem-zinnatullin/readme-building-section-jdk
Added info about JDK 1.6 into "Building" section of ReadMe.md
2015-02-10 17:13:19 +04:00
Andrey Breslav 0b41136c7c Minor. Logic clarified 2015-02-10 06:55:49 +01:00
Andrey Breslav fcb6055913 SenselessComparisonChecker used for @NotNull values from Java 2015-02-10 06:55:49 +01:00
Andrey Breslav d31b9be5fb SenselessComparisonChecker extracted 2015-02-10 06:55:49 +01:00
Andrey Breslav f36d6ce5b2 Reporting USELESS_ELVIS and UNNECESSARY_NOT_NULL_ASSERTION on Java's @NotNull values 2015-02-10 06:55:48 +01:00
Andrey Breslav 30f5c1b953 Reporting unnecessary safe calls on Java's @NotNull values 2015-02-10 06:55:48 +01:00
Andrey Breslav 1d4109aec1 Retaining annotations on Java array types 2015-02-10 06:55:48 +01:00
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