Commit Graph

9552 Commits

Author SHA1 Message Date
Svetlana Isakova bb003d2b2f rename ResolveMode to ResolveArgumentsMode 2013-02-08 15:10:41 +04:00
Svetlana Isakova 09e4625931 added TypeInfoForCall containing CallCandidateResolutionContext
(to save context and complete type inference for call later)
2013-02-08 15:10:41 +04:00
Svetlana Isakova 779a79d4d2 removed unused type parameter from CallCandidateResolutionContext 2013-02-08 15:10:41 +04:00
Svetlana Isakova 3ef640039b separated addition of constraints for function literals(*) and for expected type
* = which argument types are known
  call with these function literal constraints is cached
2013-02-08 15:10:41 +04:00
Svetlana Isakova 9b2c666c1f analyze function literals only if argument types are known
(through the first phase of overload resolution)
use intercepting type mismatch trace to backtrace expected type errors
2013-02-08 15:10:41 +04:00
Svetlana Isakova e932b4fa62 moved 'makeTraceInterceptingTypeMismatch' to ExpressionTypingUtils 2013-02-08 15:10:41 +04:00
Svetlana Isakova ecd64e80d8 use CallExpressionResolver directly from ArgumentTypeResolver 2013-02-08 15:10:41 +04:00
Svetlana Isakova 9f28764811 do not repeat initialization of candidate call if the context is copied 2013-02-08 15:10:40 +04:00
Svetlana Isakova e8e07ecec1 contexts moved to subpackage 2013-02-08 15:10:40 +04:00
Svetlana Isakova 0c07cb70ca BasicResolutionContext renamed to BasicCallResolutionContext 2013-02-08 15:10:40 +04:00
Svetlana Isakova dcd358bf3a introduced common supertype for contexts (ResolutionContext) 2013-02-08 15:10:40 +04:00
Svetlana Isakova 2d9f147dbc rename ResolutionContext to CallResolutionContext
introduced ResolutionContext (without call)
2013-02-08 15:10:40 +04:00
Svetlana Isakova 87a6be6749 rename CallResolutionContext to CallCandidateResolutionContext 2013-02-08 15:10:40 +04:00
Svetlana Isakova 97e1f0ba3c added 'namespacesAllowed' flag to ResolutionContext 2013-02-08 15:10:40 +04:00
Svetlana Isakova 5cc6af0f54 moved getStaticNestedClassesScope to DescriptorUtils 2013-02-08 15:10:40 +04:00
Svetlana Isakova 170a3ad718 getQualifiedExpressionTypeInfo moved to CallExpressionResolver
CallExpressionResolver made a component
2013-02-08 15:10:40 +04:00
Svetlana Isakova 664e25d113 added CallExpressionResolver
call expression resolution logic moved there (from BasicExpressionTypingVisitor)
2013-02-08 15:10:40 +04:00
Svetlana Isakova e739fd936e added dataFlowInfo to resolvedCall
(to use it information later without repeating 'getTypeInfo' from cache)
=> getResolvedCallForFunction and getVariableType made static
2013-02-08 15:10:40 +04:00
Svetlana Isakova fa97770831 extracted method commitResolutionCacheData
commit resolve data after argument analysis with temporary trace
2013-02-08 15:10:40 +04:00
Svetlana Isakova ff01fad3cd substitute upper bounds after creating all substitutions for type parameters
(otherwise it doesn't work for forward references)
2013-02-08 15:10:40 +04:00
Svetlana Isakova 8f59172f27 use declared upper bounds in type inference (not just check them)
- simple cases supported
#KT-2856 fixed
2013-02-08 15:10:39 +04:00
Svetlana Isakova 677bc55056 refactoring: changed the order of the parameters 2013-02-08 15:10:39 +04:00
Svetlana Isakova da4f1aec1d KT-422 Tune literal typing rules so that varargs overloaded by primitive types work
#KT-422 fixed
2013-02-08 15:10:39 +04:00
Svetlana Isakova b2823c5966 render type correctly in html for TYPE_INFERENCE_UPPER_BOUND_VIOLATED error 2013-02-08 15:10:39 +04:00
Alexander Udalov dfc45cc21e Fix Android codegen tests 2013-02-07 22:42:17 +04:00
Evgeny Gerashchenko d3cb61ada7 Fixed letter case in test code. 2013-02-07 22:29:36 +04:00
Evgeny Gerashchenko 54d864bc4a Simplified test a bit. 2013-02-07 22:03:31 +04:00
Evgeny Gerashchenko b54a0dd57e Refactored multi-file quickfix test to generated tests framework. 2013-02-07 22:03:31 +04:00
Evgeny Gerashchenko 15dcab9097 Refactored single-file quickfix test to generated tests framework. 2013-02-07 22:03:31 +04:00
Evgeny Gerashchenko d60c495995 Extracting test name from regex matcher. 2013-02-07 21:39:22 +04:00
Evgeny Gerashchenko e65ca47d98 Regenerated tests. 2013-02-07 21:39:22 +04:00
Evgeny Gerashchenko 3cf2289687 Matching test files by regex instead of extension. 2013-02-07 21:39:22 +04:00
Evgeny Gerashchenko 1f67492bf9 Renamed class. 2013-02-07 20:32:45 +04:00
Evgeny Gerashchenko 7e4bc445b9 Renamed class. 2013-02-07 20:32:45 +04:00
Evgeny Gerashchenko 7606bb3d1b Removed unnecessary subclassing. 2013-02-07 20:32:45 +04:00
Evgeny Gerashchenko 1400efe36f EA-41429 - CCE: SpecifyTypeExplicitlyAction.invoke
Implemented custom invoke() in SpecifyTypeExplicitlyFix.
2013-02-07 20:32:45 +04:00
Evgeny Gerashchenko 375dd05773 Replaced if-check with assert. 2013-02-07 20:32:45 +04:00
Evgeny Gerashchenko b541b14ee9 Removed test filtering in JetQuickFixTest. 2013-02-07 20:32:44 +04:00
Andrey Breslav 0234d0afc8 Test data fixed 2013-02-07 18:22:09 +04:00
max-kammerer 843991083d For namespaces with multiple files keep 'Compiled from' information empty 2013-02-07 18:00:53 +04:00
Nikolay Krasko fa0531aeb6 Resort annotation files 2013-02-07 17:20:57 +04:00
Nikolay Krasko d474d1582a Fix text on color configuration page 2013-02-07 17:20:56 +04:00
Andrey Breslav 0b4b87fc3a KT-3307 Compiler exception trying to call Java method
#KT-3307 Fixed
2013-02-07 16:44:13 +04:00
Natalia.Ukhorskaya 091399aa4b Android: add tests with java to excluded tests 2013-02-07 14:33:23 +04:00
Natalia.Ukhorskaya b55b3f95f4 Fix tests: wrong test data (internal visibility shouldn't be displayed after overriding a function) 2013-02-07 13:33:06 +04:00
Natalia.Ukhorskaya 1749e3298c Method from java overridden in kotlin should have kotlin visibility 2013-02-06 21:54:22 +04:00
Natalia.Ukhorskaya 55d4599b3b Add toString methods for visibilities from java 2013-02-06 21:54:21 +04:00
Natalia.Ukhorskaya 74f05bf659 Write protected keyword overriding java package protected function 2013-02-06 21:54:20 +04:00
Natalia.Ukhorskaya 11273f3035 Implement package protected visibility 2013-02-06 21:54:19 +04:00
Natalia.Ukhorskaya 88e3b9e190 Add codegen tests for package visibility 2013-02-06 21:54:18 +04:00