Svetlana Isakova
c4428496bd
check super type qualifier
...
even if super resolve is unsuccessful
2012-11-16 15:32:59 +04:00
Svetlana Isakova
126f5e1668
check debug info errors in diagnostic tests
2012-11-16 15:32:59 +04:00
Svetlana Isakova
df057010f3
record ambiguous label references
2012-11-16 15:32:58 +04:00
Svetlana Isakova
6d3981503b
refactoring (removed duplicated code)
2012-11-16 15:32:58 +04:00
Svetlana Isakova
dc1b053d8e
added JetTreeVisitorVoid
2012-11-16 15:32:58 +04:00
Svetlana Isakova
de64ba4a88
'copy' of resolved call fix: copy status as well
2012-11-16 15:32:58 +04:00
Svetlana Isakova
45985dd0db
refactoring (extracted method usage)
2012-11-16 15:32:58 +04:00
Nikolay Krasko
f7b491042e
Extended logging for EA-38122
2012-11-14 18:19:48 +04:00
Nikolay Krasko
23ae29b83a
Remove obsolete JetNamespaceBody
2012-11-14 18:19:43 +04:00
Evgeny Gerashchenko
3fce07b83a
Arranged generator classes into packages to make it possible to compile GenerateInjectors separately.
2012-11-12 20:40:23 +04:00
Evgeny Gerashchenko
4916921849
Moved & renamed GenerateTuplesAndFunctions.
2012-11-12 20:01:06 +04:00
Evgeny Gerashchenko
8d7e79c806
Renamed & moved AllInjectorsGenerator.
2012-11-12 19:54:22 +04:00
Svetlana Isakova
2f77202d29
Refactoring: change signature
2012-11-12 15:32:12 +04:00
Svetlana Isakova
82e9d1f4fa
logic for fake value arguments creation
...
moved to 'resolveFakeCall' method
2012-11-12 15:32:12 +04:00
Svetlana Isakova
32391e217a
'resolveExactSignature' removed
2012-11-12 15:32:12 +04:00
Svetlana Isakova
e9c8be8449
complete type inference only for one candidate
...
(the most specific)
to avoid exponential resolve of value arguments for several candidates
where type inference is incomplete (or depends on expected type)
2012-11-12 15:32:11 +04:00
Svetlana Isakova
dda3091dfb
'CANNOT_COMPLETE_RESOLVE' error added
2012-11-12 15:32:11 +04:00
Svetlana Isakova
eb5b551114
'moreSpecific' fix
...
if both functions are generic, no need to check receiver and parameters
before recursive call with substituted bounds
2012-11-12 15:32:11 +04:00
Svetlana Isakova
e7750c6dc7
OverloadingConflictResolver made singleton
2012-11-12 15:32:11 +04:00
Svetlana Isakova
adcb9e6e8a
moved code for successful / failed candidates separation
...
to ResolutionResultsHandler
2012-11-12 15:32:11 +04:00
Svetlana Isakova
a6f437d363
removed ResolutionStatus.TYPE_INFERENCE_ERROR constant
2012-11-12 15:32:11 +04:00
Natalia.Ukhorskaya
94fbf2bdf4
Add labels for extension properties
...
#KT-2824 Fixed
2012-11-12 13:23:00 +04:00
Nikolay Krasko
0b33bf5ff6
Merge pull request #140 from crazyproger/KT-1985
...
KT-1985 Creating class body in time of override/implement, if necessary
2012-11-09 08:52:44 -08:00
Nikolay Krasko
cb602496e3
Index for top level objects
2012-11-09 14:49:27 +04:00
Nikolay Krasko
dc5402337a
KT-2796 Variable name is not completed in the receiver position of a chained call
...
#KT-2796 Fixed
2012-11-09 14:49:26 +04:00
Nikolay Krasko
c081ced616
KT-2499 If Java class is imported, it is visible in completion three times: as Java class, Kotlin class and package
...
- Add java trace into delegation for lazy resolve session
#KT-2499 Fixed
2012-11-09 14:49:23 +04:00
Evgeny Gerashchenko
b88336d663
Added detailed comments for submethods of isTypeErased() and buildDeepSubstitutionMultimap()
2012-11-08 22:02:52 +04:00
Evgeny Gerashchenko
04eefb4244
Extracted methods from isCastErased.
2012-11-08 22:02:52 +04:00
Evgeny Gerashchenko
e691a0bc93
Considering variances when checking for erased casts.
2012-11-08 22:02:52 +04:00
Evgeny Gerashchenko
b3311f717d
Deep substitution now doesn't lose variance info.
2012-11-08 22:02:51 +04:00
Evgeny Gerashchenko
3f18bb6d4b
Minor. Better parameters/variables naming.
2012-11-08 22:02:51 +04:00
Evgeny Gerashchenko
3318804030
Rearranged code in isCastErased()
2012-11-08 22:02:50 +04:00
Evgeny Gerashchenko
5b61785306
Minor. Added "final" and private constructor in PositioningStrategies.
2012-11-08 22:02:50 +04:00
Evgeny Gerashchenko
8365cee0b5
Fixed bug in TypeUtils.intersect().
...
For "Foo", "Foo?" it returned "{Foo}" instead of "Foo"
2012-11-08 21:59:17 +04:00
Vladimir Rudev
0dabbbeed5
KT-1985 Creating class body on override/implement if necessary
2012-11-07 19:50:41 +04:00
Pavel V. Talanov
a657a19253
Fix TypeConstructor#getSupertypes() return type
2012-11-07 16:12:56 +04:00
Andrey Breslav
d8ef7210dc
KT-3025 Bad handling of missing expression in catch()
...
#KT-3025 Fixed
2012-11-07 16:01:30 +04:00
Nikolay Krasko
811b115859
Merge branch 'KT-1817' of https://github.com/crazyproger/kotlin
2012-11-06 18:54:31 +04:00
Vladimir Rudev
3cc92ad24c
Move method to JetPsiUtil
2012-11-06 18:31:33 +04:00
Vladimir Rudev
fc8fb744c7
Entries rendered without keywords before name
2012-11-06 18:31:29 +04:00
Andrey Breslav
6feceaa161
PsiElement for receiver declaration in a function type
...
This fixes the following assertion:
EA-37795 - assert: DescriptorResolver.checkBounds
java.lang.AssertionError: (
public val categoryName: String,
public val defaultReoccurrenceRate: DateReoccurrence,
datesCollection: Collection<Date>) {
at org.jetbrains.jet.lang.resolve.DescriptorResolver.checkBounds(DescriptorResolver.java:1137)
at org.jetbrains.jet.lang.resolve.TypeHierarchyResolver.checkTypesInClassHeaders(TypeHierarchyResolver.java:447)
at org.jetbrains.jet.lang.resolve.TypeHierarchyResolver.process(TypeHierarchyResolver.java:154)
at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.doProcess(TopDownAnalyzer.java:125)
Caused by misbehavior of the JetFunctionType class
2012-11-06 15:29:14 +04:00
Andrey Breslav
4cda4ce388
EA-39105 - ISE: TraceBasedRedeclarationHandler.report
...
Fixed:
java.lang.IllegalStateException: No declaration found found for org.jetbrains.jet.lang.descriptors.TypeParameterDescriptorImpl@...
at org.jetbrains.jet.lang.resolve.TraceBasedRedeclarationHandler.report(TraceBasedRedeclarationHandler.java:48)
at org.jetbrains.jet.lang.resolve.TraceBasedRedeclarationHandler.handleRedeclaration(TraceBasedRedeclarationHandler.java:39)
2012-11-06 14:32:54 +04:00
Andrey Breslav
1c19de71f1
Refactoring: getDeclaringScopes() in BodiesResolveContext used to be a map, and now it is a Function.
2012-11-06 14:05:55 +04:00
Andrey Breslav
14e5b777c4
EA-39104 - IAE: DescriptorResolver.getPropertyDeclarationInnerScope
...
Fixed
2012-11-06 12:59:37 +04:00
Natalia.Ukhorskaya
481afeb914
Use getfield or putfield instructions for private properties instead of invokevirtual getA or setA
2012-11-02 11:18:47 +04:00
Andrey Breslav
ec255e8342
NO_RECEIVER_PARAMETER is now simply null
2012-11-01 19:53:22 +04:00
Andrey Breslav
a325d86e20
Properly reporting illegal use of 'super' in extension functions
2012-11-01 19:53:22 +04:00
Andrey Breslav
a0cd26960a
Fixing super in a package-level function
2012-11-01 18:55:14 +04:00
Andrey Breslav
4955ce5caa
ReceiverDescriptor renamed to ReceiverValue
2012-10-31 23:38:53 +04:00
Andrey Breslav
c079625f5b
Lazy receiver parameter declarations for class descriptors
2012-10-31 23:38:53 +04:00