Commit Graph

15353 Commits

Author SHA1 Message Date
Natalia Ukhorskaya eb8b5c0823 Remove interface for JetExpressionCodeFragment 2014-05-05 16:12:30 +04:00
Natalia Ukhorskaya 429be58685 Rename JetCodeFragmentImpl to JetCodeFragment 2014-05-05 16:12:29 +04:00
Andrey Breslav 0004948023 Per-file caching introduced in KotlinResolveCache for granular analysis 2014-04-30 20:00:20 +04:00
Andrey Breslav a128eacf53 KotlinCacheService extracted to a separate file 2014-04-30 19:43:12 +04:00
Andrey Breslav f64f792ede CompositeBindingContext introduced 2014-04-30 18:04:21 +04:00
Andrey Breslav 3be8da5607 Minor. More convenient function used 2014-04-30 16:30:17 +04:00
Andrey Breslav db00500404 Unused code removed 2014-04-30 16:30:17 +04:00
Andrey Breslav 775c941f8a hasSynthesizedParameterNames() pulled up into CallableDescriptor 2014-04-30 16:30:17 +04:00
Svetlana Isakova 73cd776715 Added test for KT-4640
#KT-4640 Obsolete
2014-04-30 13:54:21 +04:00
Svetlana Isakova b33147d3eb Do not complete type inference for all candidates for inner calls 2014-04-30 13:34:35 +04:00
Svetlana Isakova 69f3a64408 Added test for KT-4929
Smart completion should work for generic method argument
 #KT-4929 Fixed
2014-04-30 13:34:35 +04:00
Svetlana Isakova 3df6eb8ffa Refactored ResolutionResultsCacheImpl
Used map instead of trace to store data
Rewrote it to Kotlin
2014-04-30 13:34:34 +04:00
Svetlana Isakova 5a84ed4497 KT-4866 Resolve does not work inside brackets with unresolved reference before
#KT-4866 Fixed
2014-04-30 13:34:34 +04:00
Svetlana Isakova 1632025913 Added check that resolved calls are completed in diagnostics
to tests
2014-04-30 13:34:34 +04:00
Svetlana Isakova 775606f80a Do not remove trivial substitutions
to avoid substituting a new type parameter by default instead of leaving the same
 #KT-4887 Fixed
2014-04-30 13:34:34 +04:00
Svetlana Isakova 808cf75060 Fixed bug: resolution task wasn't recreated
The old resolved calls were used
2014-04-30 13:34:34 +04:00
Svetlana Isakova a57b4f6459 Render inferred and not inferred type parameters
while rendering a resolved call
2014-04-30 13:34:34 +04:00
Svetlana Isakova aa40fd6b56 Refactoring: extracted 'renderParameter' function 2014-04-30 13:34:33 +04:00
Svetlana Isakova 02647820bc Rewrote rendering a resolved call to kotlin 2014-04-30 13:34:33 +04:00
Svetlana Isakova b89f260d25 Fixed bug: do not lose all candidates when updating status
to success
2014-04-30 13:34:33 +04:00
Svetlana Isakova b915ff2faf Invoke 'markCallAsCompleted' directly after completing inference for call 2014-04-30 13:34:33 +04:00
Svetlana Isakova 18ccd0d230 Removed 'getCallToCompleteTypeArgumentInference' 2014-04-30 13:34:33 +04:00
Svetlana Isakova a2ddce65f4 Used MutableResolvedCall instead of ResolvedCallImpl
during resolve process
2014-04-30 13:34:33 +04:00
Svetlana Isakova 703e4d7c4e Refactoring: separated VariableAsFunctionResolvedCall interface and implementation 2014-04-30 13:34:32 +04:00
Svetlana Isakova cdd88cdaa7 Rename: ResolvedCallWithTrace -> MutableResolvedCall 2014-04-30 13:34:32 +04:00
Svetlana Isakova 90bf5ad823 Refactoring: use ResolvedCall instead of ResolvedCallWithTrace where possible 2014-04-30 13:34:32 +04:00
Svetlana Isakova e59fa2083e Substituted special error type for not inferred parameter
Rendered it as T (of red color) in the renderer HTML_FOR_NOT_INFERRED_TYPE_PARAMETERS
 instead of '???' without information about type parameter
2014-04-30 13:34:32 +04:00
Svetlana Isakova 4a8255a606 Trace usage in renderer replaced with usage of argument to parameter map 2014-04-30 13:34:31 +04:00
Svetlana Isakova 928b28e080 Complete type inference for nested calls
inside non resolved invocation
2014-04-30 13:34:31 +04:00
Svetlana Isakova 2db392036c Complete type inference for all candidates 2014-04-30 13:34:31 +04:00
Svetlana Isakova e747b08e81 Refactoring: removed ResolutionResultsCache.MemberType 2014-04-30 13:34:31 +04:00
Svetlana Isakova 636e818f35 Refactoring: moved code
to 'completeTypeInferenceDependentOnExpectedType'
2014-04-30 13:34:31 +04:00
Svetlana Isakova f03f9684ad Refactoring: moved code
Moved check for not generic call to CandidateResolver
2014-04-30 13:34:31 +04:00
Svetlana Isakova efa00782a4 Reformat html test data for DiagnosticMessageTest 2014-04-30 13:34:30 +04:00
Svetlana Isakova 1e8a8d2861 Added argument to parameter mapping to resolved call 2014-04-30 13:34:30 +04:00
Svetlana Isakova 022c68cfb2 Set all candidates (empty collection) if no candidates found 2014-04-30 13:34:30 +04:00
Andrey Breslav cb127a5a62 Diagnostics rewritten in Kotlin 2014-04-29 19:12:56 +04:00
Andrey Breslav 71ad59fdf8 Minor. Unused slice and comments removed 2014-04-29 19:12:56 +04:00
Andrey Breslav a1b0b07824 Support top-down analysis starting from anonymous initializers 2014-04-29 19:12:56 +04:00
Andrey Breslav bac82935c3 Minor. Unused method removed 2014-04-29 19:12:56 +04:00
Andrey Breslav 6509868ba4 Ignore multi-declarations in LazyTopDownAnalyzer 2014-04-29 19:12:55 +04:00
Andrey Breslav 550c0ed998 Report "UNSUPPORTED" on usages of typedef 2014-04-29 19:12:55 +04:00
Andrey Breslav 469042dea1 Support top-down analysis starting from import directives 2014-04-29 19:12:55 +04:00
Andrey Breslav 9f8fd5c5ae Support top-down analysis starting from package directives 2014-04-29 19:12:55 +04:00
Andrey Breslav 31e859356f A test that fails in lazy mode (currently disabled) 2014-04-29 19:12:55 +04:00
Andrey Breslav 5c23021163 Minor. Rename 2014-04-29 19:12:55 +04:00
Andrey Breslav 4bbde707c0 Minor. Unneeded getContainingJetFile() calls removed 2014-04-29 19:12:54 +04:00
Andrey Breslav 64f60b3458 Minor. getAnalysisResults(x).getBindingContext() replaced by getBindingContext(x) 2014-04-29 19:12:54 +04:00
Andrey Breslav 112109f93e Minor. Unused method removed 2014-04-29 19:11:48 +04:00
Andrey Breslav 23205c17c0 Utilities for analyzing expressions in given context introduced 2014-04-29 19:11:48 +04:00