Commit Graph

15937 Commits

Author SHA1 Message Date
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
Andrey Breslav a708b915db Explicit predicate passed to JetNameValidatorImpl 2014-04-29 19:11:48 +04:00
Andrey Breslav c6bd4a22ef Iterators replaced with streams where appropriate 2014-04-29 19:11:47 +04:00
Andrey Breslav 19719f9747 Deprecated _tmp functions replaced by library ones 2014-04-29 19:11:47 +04:00
Andrey Breslav 4181bcc319 JavaCallableMemberDescriptor.hasSynthesizedParameterNames() introduced 2014-04-29 19:11:47 +04:00
Nikolay Krasko 9482706b81 Fix compilation on JDK 1.6 and stay compatible with JDK 1.7
Move ClassCandidateListCellRenderer back to Java because JList. JList has one type parameter in 1.7 and no parameters in 1.6.
Kotlin unlike Java can't support both cases without modifications in code.
2014-04-29 14:47:33 +04:00
Steven Allen 1415ac1c04 Convert CreateFunctionFromUsageFix to Kotlin. 2014-04-29 14:47:32 +04:00
Steven Allen 1a04b887a4 Fix JetSimpleNameExpression.getReceiverExpression
The receiver of `in` expressions is on the right, not the left.
2014-04-29 14:47:31 +04:00
Andrey Breslav 4f1061c337 Better memory cleanup in tests 2014-04-29 13:37:02 +04:00
Natalia Ukhorskaya 68c77e6384 SmartStepInto from kotlin to java functions 2014-04-28 14:24:01 +04:00
Natalia Ukhorskaya 5a2f1ca65f Add package directive with fileName for InspectionTests to avoid names clashing 2014-04-28 14:12:57 +04:00
Svetlana Isakova 335587c74e Update to IDEA 135.760 EAP 2014-04-25 21:02:45 +04:00
Denis Zharkov cb1e762fc4 Optimizations of When expression with int constants:
Added test with dense constants (tableswitch should be used)
2014-04-25 18:17:37 +04:00
Denis Zharkov 298742ae69 Optimizations of When expression with int constants: heuristics from openJDK for decision about using tableswitch/lookupswitch 2014-04-25 18:17:37 +04:00
Denis Zharkov a83d600f5e Optimizations of When expression with int constants: pull request review fixes 2014-04-25 18:17:36 +04:00
Denis Zharkov 3bc1c45fde Refactored tests for switch optimization of When expression 2014-04-25 18:17:36 +04:00
Denis Zharkov 95345a9bd4 Tests for switchOptimization: shuffled and added sparse version 2014-04-25 18:17:36 +04:00