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
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