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
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
Andrey Breslav
a91a99e5be
getImplicitReceiverHierarchy() returns a List
2012-10-31 23:38:53 +04:00
Andrey Breslav
555ac07b55
Migrating scopes onto ReceierParameterDescriptor
...
Getting rid of getImplicitReceiver() in JetScope
2012-10-31 23:33:12 +04:00
Andrey Breslav
dc25d00c9e
Migration onto .getValue()
2012-10-31 23:33:12 +04:00
Andrey Breslav
bc592cb5cd
Migrating descriptors onto ReceiverParameterDescriptor
2012-10-31 23:33:12 +04:00
Andrey Breslav
5609850d1d
Introducing ReceiverParameterDescriptor
2012-10-31 23:16:22 +04:00
Natalia.Ukhorskaya
3b58eb4b60
Generate copy function for data classes
...
#KT-2779 Fixed
2012-10-31 15:46:48 +04:00
Svetlana Isakova
5cf38e45e4
'resolveFakeCall' instead of 'resolveExactSignature' invocation
2012-10-31 12:10:20 +04:00
Evgeny Gerashchenko
01311a1793
Moved and renamed DescriptorUtils.getInnerClasses
2012-10-30 18:41:01 +04:00
Evgeny Gerashchenko
a71fa35187
Supported loading named objects within named objects from compiled library.
2012-10-30 18:41:00 +04:00
Svetlana Isakova
af3690309b
recordAutoCastIfNecessary method moved
...
to AutoCastUtils
2012-10-29 17:11:58 +04:00
Svetlana Isakova
f90f72a6ec
added CandidateResolver
...
(that took some methods from CallResolver)
2012-10-29 17:11:58 +04:00
Svetlana Isakova
fc705edb65
added ResolutionResultsHandler
2012-10-29 17:11:58 +04:00
Svetlana Isakova
d45db0a331
created subpackage 'util'
2012-10-29 17:11:58 +04:00
Svetlana Isakova
4e59a87a2d
ResolutionStatus, ResolutionDebugInfo moved to subpackage 'results'
2012-10-29 17:11:58 +04:00
Svetlana Isakova
dd8e62a8f6
created subpackage 'tasks'
2012-10-29 17:11:57 +04:00
Svetlana Isakova
c7d6bf1b35
OverloadResolutionResults moved to 'results' subpackage
2012-10-29 17:11:57 +04:00
Svetlana Isakova
152368eb04
ResolvedCall, ResolvedValueArgument moved to 'model' subpackage
2012-10-29 17:11:57 +04:00
Svetlana Isakova
1952307392
removed unused autoCasts map from ResolvedCallImpl
2012-10-29 17:11:57 +04:00
Svetlana Isakova
ecaad04b71
ResolvedCallImpl.copy moved to Util
2012-10-29 17:11:56 +04:00
Svetlana Isakova
06cee8bc16
AutoCastReceiver moved to autocasts package
2012-10-29 17:11:56 +04:00
Svetlana Isakova
16ddd6db11
rename 'add subtype/supertype constraint' methods:
...
supertype constraint means constraining type is a supertype of subject type (not vice versa)
2012-10-29 17:11:56 +04:00
Svetlana Isakova
a0a4871bff
refactoring
...
no return from 'inferTypeArguments'
2012-10-29 17:11:56 +04:00
Svetlana Isakova
1f9d08861d
cache resolve results for incomplete type inference
2012-10-29 17:11:56 +04:00
Svetlana Isakova
3260a5a32c
added method 'copy' to ResolvedCallImpl
2012-10-29 14:41:50 +04:00
Svetlana Isakova
0acb6cb64d
minor
...
added NotNull annotation
2012-10-29 14:41:50 +04:00
Svetlana Isakova
41e355da51
invoke 'moveAllMyDataTo' on call.getTrace()
...
instead of 'commit'
to let such invocations on cached calls
2012-10-29 14:41:50 +04:00
Svetlana Isakova
b395d33ff0
debug names for temporary traces added
2012-10-29 14:41:49 +04:00
Alexander Udalov
880852861c
A couple utility methods
...
PsiCodegenPredictor.getFileForCodegenNamedClass() returns JetFile which
contains a declaration which will produce a class with a given name.
PsiCodegenPredictor.getFileForNamespacePartName() returns JetFile which
produces a namespace part with the given name.
BindingContextUtils.getContainingFile() returns JetFile which contains a
declaration which is matched to a given descriptor.
DescriptorUtils.findTopLevelParent() finds a top-level (i.e. its containing
declaration is NamespaceDescriptor) parent for a descriptor.
Also DescriptorUtils.isTopLevelFunction() is changed a little to accept not
only a function, but any descriptor
2012-10-25 21:28:43 +04:00
Natalia.Ukhorskaya
bf489c9ed8
KT-2701 Prevent redeclaration in multi-declaration
...
#KT-2701 Fixed
2012-10-25 19:03:36 +04:00
Natalia.Ukhorskaya
34a9d6a469
EA-39486 Fixed - IAE: AnnotationResolver.resolveAnnotationArgument
2012-10-25 19:03:35 +04:00
Nikolay Krasko
b62fe5f5fb
Move caret into generated else branch
2012-10-25 18:55:53 +04:00