Commit Graph

55 Commits

Author SHA1 Message Date
Alexey Tsvetkov 309bca8861 Add JS lookup tracker tests
Original commit: 82c977f2d2
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov cc025e5eb1 Extract JVM lookup tracker tests
Original commit: 6cfd090b20
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov f2837bd230 Show in lookup tracker log if there is no lookups in file
Original commit: f3f7ca4b95
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 519036b28e Decouple lookup tracker tests from JPS
Original commit: 485e2345a9
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov db6a1de155 Remove .touch actions for lookup test cases that fail to compile
It is useless to touch and recompile, because the first compilation
has failed anyway

Original commit: a4c7dbd693
2017-08-10 21:19:41 +03:00
Stanislav Erokhin 4cb5e8a919 Do not force resolve descriptors for explicit imports. Create lazy scope instead.
Original commit: b616ef0a40
2017-02-09 15:42:30 +03:00
Alexander Udalov d323c39b7d Do not import "kotlin.comparisons" by default for language version 1.0
#KT-16199 Fixed

Original commit: b780e6d374
2017-02-07 10:15:57 +03:00
Ilya Gorbunov 40e1c2cdce Add kotlin.comparisons package to default imports.
Original commit: 3ec48ab244
2017-01-19 18:21:14 +03:00
Zalim Bashorov 86d3366b8c KJS: move println to kotlin.io; import kotlin.io by default in Default platform
Original commit: 6ea6e4ab98
2017-01-18 14:25:36 +03:00
Stanislav Erokhin dc4493a544 Update test data for LookupTracker (removed package kotlin.coroutines from default imports)
Original commit: 509a504318
2016-12-15 23:57:54 +03:00
Stanislav Erokhin e5a6d21783 Remove propertyDelegate and fix unused parameter checker for provideDelegate.
Original commit: dbe8edda5f
2016-12-12 23:14:09 +03:00
Stanislav Erokhin 28192d0a02 Rename toDelegateFor to provideDelegate.
Original commit: 9dc9fb578f
2016-12-12 23:14:07 +03:00
Stanislav Erokhin 89c17e9162 Minor. Update Lookup test data.
Original commit: db5250a614
2016-12-12 23:14:06 +03:00
Alexander Udalov 40e9bfffe6 Import classes from kotlin.coroutines by default, add to default imports in JS
Original commit: 6b6ddf5f75
2016-10-24 15:30:38 +03:00
Alexander Udalov 49750cee02 Extract platform-independent default imports to TargetPlatform.Default.defaultImports
This is needed because SourceNavigationHelper uses default platform and it
needs default imports to be able to resolve references (otherwise
NavigateToLibrarySourceTestGenerated breaks)

Original commit: 56e2173b3c
2016-10-21 17:10:39 +03:00
Alexander Udalov b6b3454e26 Do not consider fake variables for objects in :: resolution
The main change is in
NewResolutionOldInference.ResolutionKind.CallableReference, where
createVariableProcessor creates a processor which no longer lists objects

 #KT-12322 Fixed

Original commit: b44f060ffa
2016-07-04 15:42:35 +03:00
Denis Zharkov 720c679184 Introduce coroutine-related API into built-ins
Original commit: e97376bb2c
2016-06-08 18:53:16 +03:00
Zalim Bashorov e7dcf02ffe Introduce TestingContext to pass data between tests and KotlinBuilder; introduce BuildLogger to log build events (build finished, files marked as dirty) in KotlinBuilder
Original commit: f6e7f8c3c0
2016-02-09 23:27:25 +03:00
Yan Zhulanow 63282ffa9a "Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
Original commit: 3fa506fd45
2016-01-26 17:21:44 +03:00
Stanislav Erokhin 627384fe11 KT-10772 Problem with daemon on Idea 15.0.3 & 1-dev-25
# KT-10772 Fixed

Original commit: aca19ed27a
2016-01-24 12:29:23 +03:00
Alexey Tsvetkov ecd7b0c9d6 Add lookup for every expression's type
Original commit: 310a995bb1
2016-01-22 16:01:36 +03:00
Stanislav Erokhin a907aeec4d Change resolution priority about implicit receivers and synthesized member-like descriptors.
Change resolution to consider extensions to implicit receiver before members of another implicit receiver.
Make synthesized member-like extensions resolve right after the members.

#KT-10510 Fixed
#KT-10219 Fixed

Original commit: 3a9ecf0bce
2016-01-15 13:11:38 +03:00
Stanislav Erokhin 2d6de9f95d Synthetic extensions wins against top-level extension.
Original commit: 1574dc78df
2015-12-18 22:49:25 +03:00
Stanislav Erokhin d9ea7bbd37 Do not discriminate synthesized candidates.
#KT-9965 Fixed

Original commit: 8b5a194dd6
2015-12-18 15:08:19 +03:00
Ilya Gorbunov 55020c886a Fix testData for LookupTracker
Original commit: bf9d50ccc4
2015-12-14 04:29:27 +03:00
Stanislav Erokhin 54e89b72d4 Update lookupTracker test data for tower resolution algorithm
Original commit: 79b30dddf9
2015-12-11 17:01:02 +03:00
Mikhail Glukhikh 3e8231bedb Enum.values: deprecation (warning) --> deprecation (error)
Original commit: c8b50eec1e
2015-12-11 11:11:42 +03:00
Alexander Udalov bbd5932a23 Report error when type parameter has a type parameter bound and any other bound
To prevent issues with erasure on JVM: it's unclear what such type parameter
should be erased to

Original commit: d3c17ec337
2015-12-07 15:47:47 +03:00
Yan Zhulanow 84fea1a41d Fix tests: "infix modifier required" and "operator modifier required" errors
Original commit: 9d1af5a17e
2015-11-27 15:51:11 +03:00
Dmitry Petrov fdef6653e2 Properly resolve values in 1st qualifier part (see implicitReceiverProperty test).
Look into QUALIFIER for left-most "unrolled" qualified expression
    in CallExpressionResolver#getQualifiedExpressionTypeInfo.
Drop some unused functions.

Original commit: b532fa2bbf
2015-11-18 14:35:53 +03:00
Dmitry Petrov 33e89e9c16 Reuse package/class qualifier prefix resolution for qualified expression resolution.
Original commit: 3556f9751e
2015-11-18 14:35:52 +03:00
Zalim Bashorov 35cb01217e Add tests for lookups to enum static scope and to companion object scope
Original commit: 04fed203e4
2015-11-04 22:15:37 +03:00
Zalim Bashorov 1a566ee995 Track lookups for nested/inner Java classes
Original commit: a6855116b8
2015-11-04 22:09:55 +03:00
Stanislav Erokhin dbef220656 Minor. fix testdata
Original commit: 87f32ef07b
2015-11-04 14:28:29 +03:00
Zalim Bashorov 64a1cac2b9 Add test for lookups in generic constraints; Add cases with lookup to companion and nested object;
Original commit: 5d72629b0b
2015-11-02 18:18:37 +03:00
Zalim Bashorov e41b323fb4 Add tests for lookups to declarations form Java
Original commit: 4cb5398c04
2015-11-02 18:18:32 +03:00
Zalim Bashorov ee0ec87da6 Add tests for lookups to deserialized and java scopes
Original commit: 519172f182
2015-11-02 18:18:32 +03:00
Zalim Bashorov 171bfa8d67 Minor: fix testdata
Original commit: 3484c43c8c
2015-11-02 18:18:31 +03:00
Zalim Bashorov d7a4c9a54d Track lookups in JavaSyntheticPropertiesScope
Original commit: a5708c9c0d
2015-10-27 19:38:32 +03:00
Stanislav Erokhin 3f18729d01 Added static methods, nested classes and companion object from superclasses.
Original commit: d5dbc9638d
2015-10-16 20:42:34 +03:00
Alexander Udalov 4a10df80fb Update IDE tests to use KProperty instead of PropertyMetadata
Original commit: 6a965c9a06
2015-10-14 20:45:55 +03:00
Yan Zhulanow 6e19e8c055 Replace get() and set() to getValue() and setValue() (property delegates)
Original commit: 1f2b4e20fe
2015-10-09 22:49:16 +03:00
Mikhail Glukhikh adda278298 Local interfaces are forbidden now
Original commit: 2fee9d362c
2015-10-09 21:06:33 +03:00
Mikhail Glukhikh 533a26ef9d Old backing field with dollar is now forbidden
Original commit: 6914d09297
2015-10-09 21:06:26 +03:00
Stanislav Erokhin 7de15ca7d1 Minor. Fix testdata.
Original commit: 5a61871d4b
2015-09-29 13:33:57 +03:00
Stanislav Erokhin c5e44eca7b Minor. Fix testdata.
Original commit: 8ab4114291
2015-09-25 19:10:03 +03:00
Stanislav Erokhin 4130a88832 Optimized task creation for local functions and variables
Original commit: 68389d34e4
2015-09-18 21:01:22 +03:00
Zalim Bashorov 62dcbf8aab Track lookups for conventions
Original commit: 27a196b25b
2015-09-18 18:31:19 +03:00
Stanislav Erokhin 29305a7014 Changed JetScope to LexicalScope in ClassDescriptorWithResolutionScopes and DeclarationScopeProvider
Original commit: d92e71861e
2015-08-27 12:01:13 +03:00
Zalim Bashorov 7a7064677b Add test lookup tracking for local declarations
Original commit: 3465126bee
2015-08-24 19:50:10 +03:00