Alexander Udalov
42d167d17e
Add missing copyrights across the project
2014-05-05 20:43:35 +04:00
Alexander Udalov
b7746cbee7
Move module 'serialization' to core/
2014-05-05 20:43:34 +04:00
Alexander Udalov
16daeb9544
Misc refactorings in KotlinBuiltIns
...
- delete fields which were supposed to be used for caching, but mistakenly were
never used
- delete/inline unused methods and constants
- delete useless logic related to root package fragment: package fragment
providers are only supposed to find packages they're aware of
2014-05-05 20:42:35 +04:00
Alexander Udalov
52070dcf9e
Minor, static import BindingContext.* in ExpressionCodegen
2014-05-05 17:51:09 +04:00
Alexander Udalov
e4f4ea4027
Minor, add ExpressionCodegen.resolvedCall() utility
...
To obtain a resolved call by an expression with a non-null assertion
2014-05-05 17:31:32 +04:00
Alexander Udalov
fc3db8db38
Minor, get rid of ExpressionCodegen.asmTypeOrVoid()
2014-05-05 17:22:48 +04:00
Alexander Udalov
51b01b5d7d
Replace some REFERENCE_TARGET calls with RESOLVED_CALL
...
Also don't do unnecessary and failing casts in CodegenAnnotatingVisitor for SAM
adapters
#KT-3173 Fixed
#KT-3999 Fixed
#KT-4682 Fixed
2014-05-05 16:49:23 +04:00
Natalia Ukhorskaya
13f7ca51b0
Regenerate tests
2014-05-05 16:17:37 +04:00
Natalia Ukhorskaya
020c127831
Fix typo in inspection description
2014-05-05 16:16:50 +04:00
Natalia Ukhorskaya
475d87f48b
Merge remote-tracking branch 'origin/pr/460'
2014-05-05 16:15:45 +04:00
Natalia Ukhorskaya
98532f321d
Evaluate expression: add ability to import class
2014-05-05 16:12:38 +04:00
Natalia Ukhorskaya
3f95cdb7bb
Return firstChildNode for codeFragments in doParseContents as expected
2014-05-05 16:12:36 +04:00
Natalia Ukhorskaya
54cc5d1440
Make JetCodeFragment implements JavaCodeFragment
2014-05-05 16:12:35 +04:00
Natalia Ukhorskaya
876878a54c
Delete interface for JetTypeCodeFragmentImpl
2014-05-05 16:12:33 +04:00
Natalia Ukhorskaya
8bbbe8f0f6
Convert JetCodeFragment to Kotlin
2014-05-05 16:12:32 +04:00
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
Tal Man
ab2ca539fe
Inspection to report explicit type arguments that can be removed from function calls
2014-05-01 10:56:46 -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