Mikhail Glukhikh
cd1b58f2eb
Final in interfaces: deprecation ---> error + relevant test fixes
2015-11-20 15:43:19 +03:00
Valentin Kipyatkov
603bcaa039
KT-10006 Parameter Info does not work for smart cast receiver
...
#KT-10006 Fixed
2015-11-20 15:36:31 +03:00
Mikhail Glukhikh
4e44466cf9
Exposed visibility deprecation warnings made errors + relevant test fixes
2015-11-20 15:21:01 +03:00
Mikhail Glukhikh
e43a45755e
Source code fix: no protected in object
2015-11-20 09:56:23 +03:00
Pavel V. Talanov
dbd49c37c1
Psi: Introduce KtScriptInitializer, a separate entity for script initializers which are quite a bit different from class initializers
2015-11-19 22:57:07 +03:00
Pavel V. Talanov
321364102a
KtAnonymousInitializer: make it an interface with KtClassInitializer inheritor
2015-11-19 22:57:06 +03:00
Pavel V. Talanov
bc2a65b2ea
J2K KtAnonymousInitializer in one go
...
Rip history
2015-11-19 22:57:05 +03:00
Pavel V. Talanov
6bb89021dd
Rename: KtClassInitializer -> KtAnonymousInitializer
2015-11-19 22:57:05 +03:00
Pavel V. Talanov
efa4bf1d74
Script refactoring, frontend: Treat scripts as classes (as opposed to function bodies)
...
ScriptDescriptor implements ClassDescriptor
Scripts are accessible in IDE via stub index
Replace special treatment of scripts with generic mechanism in several cases
Scripts to longer generate 'rv' property for storing result value (changes in repl required)
2015-11-19 22:56:57 +03:00
Pavel V. Talanov
aebcebe8ca
Add simple checker tests for scripts
2015-11-19 22:56:55 +03:00
Pavel V. Talanov
e45585be21
Make KtScript stubbed and add KotlinScriptFqnIndex
2015-11-19 22:56:53 +03:00
Yan Zhulanow
49f0953898
Remove obsolete JPS extension declaration in Android plugin (KT-10096)
2015-11-19 19:55:28 +03:00
Michael Nedzelsky
ea4470a16a
fix KT-10068 JsLibraryStdDetectionUtil does not use caching through JarUserDataManager
...
#KT-10068 Fixed
2015-11-19 15:34:31 +03:00
Natalia Ukhorskaya
6149f9f2bb
Minor: extract method
2015-11-19 14:01:25 +03:00
Natalia Ukhorskaya
f872b378d0
Create KotlinStackFrame only for kotlin classes with inline functions
...
#KT-10092 Fixed
2015-11-19 14:01:23 +03:00
Natalia Ukhorskaya
35ccfef040
Add test for navigation from stacktrace at inline function with object
2015-11-19 12:07:03 +03:00
Natalia Ukhorskaya
6867165aba
Fix navigation from stack trace to inline function calls in inner classes
2015-11-19 12:07:02 +03:00
Natalia Ukhorskaya
3498038db1
Support navigation to library inline functions from stack trace
2015-11-19 12:07:01 +03:00
Natalia Ukhorskaya
214ae54c69
Rewrite old exception filter test with library sources
2015-11-19 12:07:00 +03:00
Natalia Ukhorskaya
6c0a68cf66
Rewrite some old exception filter tests
2015-11-19 12:06:59 +03:00
Natalia Ukhorskaya
9f0b52f030
Navigate to inline function from stackTrace
...
#KT-8066 Fixed
2015-11-19 12:06:58 +03:00
Natalia Ukhorskaya
93ccc08e3d
Convert KotlinExceptionFilter to kotlin
2015-11-19 12:06:58 +03:00
Natalia Ukhorskaya
4506a73112
Rename .java to .kt
2015-11-19 12:06:57 +03:00
Natalia Ukhorskaya
2b646369f3
Minor: fix warning
2015-11-19 12:06:54 +03:00
Natalia Ukhorskaya
6e638bd30a
Debugger: show line content instead of method content for breakpoint at line in drop-donw list
2015-11-19 12:06:54 +03:00
Natalia Ukhorskaya
35d7d7b789
Minor: rename class
2015-11-19 12:06:53 +03:00
Natalia Ukhorskaya
7e5e749735
Debugger: remove while loop
...
#KT-10043 Fixed
2015-11-19 12:06:52 +03:00
Yan Zhulanow
148ec829a3
Minor: simplify SimpleNameReferenceExtension a bit
2015-11-19 01:35:58 +03:00
Yan Zhulanow
3f97b384ef
Autoimport items from kotlinx.android.synthetic on completion
2015-11-19 01:35:58 +03:00
Yan Zhulanow
c7f1fd74a1
Create descriptors directly in Android Extensions (IDEA plugin)
2015-11-19 01:35:58 +03:00
Dmitry Jemerov
5d92d3128d
support for configuring Kotlin when creating new Gradle project
...
#KT-7978 Fixed
2015-11-18 20:19:43 +01:00
Dmitry Jemerov
084727c991
action to invoke a manual update check for the Kotlin plugin
2015-11-18 16:44:14 +01:00
Alexander Udalov
3e27fdb964
Inline and move out utilities from ConstraintSystem
2015-11-18 16:40:49 +03:00
Alexander Udalov
d4664af4e5
Get rid of originalToVariableSubstitutor and descriptorToVariable
...
Move the composite substitutor to GenericCandidateResolver where it was used,
other places don't need it since they know the exact call (or NO_CALL), the
substitutor for which should be used
2015-11-18 16:40:48 +03:00
Alexander Udalov
178ca3daae
Add call to type variable and mapping descriptor -> variable
...
Since type parameter descriptor represents a single declaration of a type
parameter, multiple variables in one system may correspond to one type
parameter (e.g. in case of nested calls). Hence it's not possible to map type
parameters uniquely onto type variables and additional information is required
2015-11-18 16:40:47 +03:00
Alexander Udalov
27ce61a3be
Always alpha-convert non-external type parameters before registering in system
2015-11-18 16:40:45 +03:00
Alexander Udalov
13abc265ad
First steps to make distinction between variables and descriptors in ConstraintSystem
...
A type variable is an entity, the value of which should be solved by the
system; a descriptor is an actual TypeParameterDescriptor declaration
2015-11-18 16:40:43 +03:00
Alexander Udalov
89dfd52363
Remove ConstraintSystem.partialSubstitutor, move logic to FuzzyType
2015-11-18 16:40:42 +03:00
Alexander Udalov
d72a4c8037
Cleanup constraint system, convert functions to properties, delete unused
2015-11-18 16:40:41 +03:00
Alexander Udalov
265c135e89
Rename ConstraintSystemImpl -> ConstraintSystemBuilderImpl
2015-11-18 16:40:40 +03:00
Alexander Udalov
bb918a2742
Move mutating methods of ConstraintSystem to Builder
...
Extract immutable ConstraintSystemSnapshot from ConstraintSystemImpl
2015-11-18 16:40:39 +03:00
Alexander Udalov
9149668286
Add ConstraintSystem#copy to minimize usages of ConstraintSystemImpl
2015-11-18 16:40:38 +03:00
Alexander Udalov
393852bf70
Simplify signature of ConstraintSystem#registerTypeVariables
...
Drop unused variance from TypeBounds and ConstraintSystem, provide default
values, inline methods used only once
2015-11-18 16:40:37 +03:00
Dmitry Petrov
99b411c8ca
companionObjectType --> classValueType
...
(NB: it IS NOT a companion object in case of OBJECT or ENUM_ENTRY)
Unify related names.
2015-11-18 16:27:26 +03:00
Dmitry Petrov
7b432c878a
Diagnostics improvements for corner cases
...
(class/package qualifier in non-qualifier position).
2015-11-18 16:27:21 +03:00
Dmitry Petrov
ba8372cc11
Fixes for IDE tests after qualifier modifications:
...
- CallType should look into QUALIFIER,
so that completion works for (companion) object qualifiers.
- Record type and reference target for object qualifiers (not only for companions).
- "Create (function/...)" should understand ClassQualifier as possible receiver.
- Cleanup after rebase on master.
2015-11-18 14:35:54 +03:00
Dmitry Petrov
9856af48ca
Drop createQualifier: testData update
2015-11-18 14:35:53 +03:00
Dmitry Petrov
49570ba1ea
Drop QualifierReceiver::resultingDescriptor. Use REFERENCE_TARGET.
2015-11-18 14:35:53 +03:00
Dmitry Petrov
3556f9751e
Reuse package/class qualifier prefix resolution for qualified expression resolution.
2015-11-18 14:35:52 +03:00
Dmitry Petrov
5ff2ffbccc
Move resolve* methods from Qualifier.kt to QualifiedExpressionResolver.
...
Further differentiate various qualifiers.
2015-11-18 14:35:52 +03:00