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
808cf75060
Fixed bug: resolution task wasn't recreated
...
The old resolved calls were used
2014-04-30 13:34:34 +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
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
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
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
23205c17c0
Utilities for analyzing expressions in given context introduced
2014-04-29 19:11:48 +04:00
Andrey Breslav
19719f9747
Deprecated _tmp functions replaced by library ones
2014-04-29 19:11:47 +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
Alexander Udalov
de273c0418
Minor, use kotlin.Pair instead of intellij
2014-04-24 18:17:50 +04:00
Alexander Udalov
1efdd33dbd
Refactor codegen hierarchy
...
- pull generate() and a bunch of abstract methods from ClassBodyCodegen up to
MemberCodegen
- implement these methods in ScriptCodegen and PackagePartCodegen
- make MemberCodegen generic on the type of the element it is generating
2014-04-24 16:10:16 +04:00
Alexander Udalov
be47897e18
Minor, ValueArgument.asElement returns JetElement
2014-04-24 16:10:14 +04:00
Alexander Udalov
af421f53da
Rename FQNAMES -> FQ_NAMES
2014-04-24 16:10:11 +04:00
Valentin Kipyatkov
e8805f69bf
Code completion: template item for function taking lambda with 2 or more parameters (KT-4855) + better handling of type instantiation in smart completion
2014-04-23 19:21:28 +04:00
Natalia Ukhorskaya
931b628988
Editor for evaluate expression: implement highlighting and completion using ResolveElementCache
2014-04-23 18:10:02 +04:00
Natalia Ukhorskaya
2309751ee9
CodeFragment: find inner expression correctly
2014-04-23 18:09:51 +04:00
Natalia Ukhorskaya
a1fa366e8f
Make JetExpressionCodeFragmentImpl implement JavaCodeFragment
2014-04-23 18:09:49 +04:00
Natalia Ukhorskaya
bc20e31685
Convert JetExpressionCodeFragmentImpl to kotlin
2014-04-23 18:09:48 +04:00
Andrey Breslav
ed79be6d2d
AnalyzerFacade.Setup introduced
2014-04-23 14:06:10 +04:00
Andrey Breslav
45a90a8f20
Eager methods removed from AnalyzerFacade
2014-04-23 14:06:09 +04:00
Andrey Breslav
4d425aff11
Methods pulled up into the interface
2014-04-23 14:06:09 +04:00
Zack Grannan
f4beffd451
Added getOperationToken method to JetUnaryExpression
2014-04-22 22:33:07 +04:00
Valentin Kipyatkov
4968377969
Smart completion: lambda item uses template to allow change parameter names
2014-04-21 22:06:15 +04:00
Andrey Breslav
767eb04930
JetElement.getContainingJetFile() introduced
2014-04-21 21:55:00 +04:00
Andrey Breslav
1d3cc306c4
Allow to only resolve declaration headers in classes, without forcing everything to be resolved
2014-04-18 21:28:24 +04:00
Andrey Breslav
b2ea2e1a15
Prohibit inheritance loops through containing classes
...
Example
class A : B {
trait C
}
class B : A.C
Here we have a loop in the hierarchy: A -> B -> A.C => A
"=>" represents class nesting
2014-04-18 21:28:24 +04:00
Andrey Breslav
fef2968e1d
Order the computations in LazyTopDownAnalyzer
...
- First, all class descriptors are created
- Then, all functions and properties
- Then the rest
2014-04-18 21:28:24 +04:00
Andrey Breslav
b017b87093
Minor. Unused methods removed
2014-04-18 21:28:24 +04:00
Andrey Breslav
d4eb5e58c5
Minor. Methods made static
2014-04-18 21:28:23 +04:00
Andrey Breslav
5e2630bc12
Unused parameter removed
2014-04-18 21:28:23 +04:00
Andrey Breslav
f0a29f190b
USELESS_HIDDEN_IMPORT diagnostic fixed for LAZY mode
2014-04-18 21:28:23 +04:00
Andrey Breslav
a3638eacef
Blinking class object tests fixed
...
Now lazy descriptors for all class objects are retained by the owning class
2014-04-18 21:28:22 +04:00