Evgeny Gerashchenko
9206bfb68f
Not writing compiler arguments from JPS plugin by default.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko
c4573b8c5a
Got rid of ModuleDescription intermediate entity.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko
40703c125c
Made it possible to run incremental compiler from IDEA.
...
Two guava functions used were replaced with custom tiny functions, because JPS plugin won't have guava in classpath.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko
7212597e61
Optimized KotlinBuilder for targets without Kotlin. Checking dirty/removed files only.
2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko
0a3d852336
Minor. Renamed test data to avoid repetitions.
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko
55ed0471b6
KT-4980 'Remove braces' intention throws NPE for a for-loop with variable declaration
...
#KT-4980 fixed
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko
86d2565700
Added test for KT-4827 UOE at PackageType.throwException()
...
#KT-4827 obsolete
#EA-53605 obsolete
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko
8842bb574c
KT-5397 Simplify text of DeMorgan law conversion intentions
...
#KT-5397
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko
62bb3f8782
Renamed CodeTransformationTest -> IntentionTest.
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko
fda7aeecfb
Simplified CodeTransformationTest. Only one doTest method remains, intention class is moved to test data. Merged other intention tests (SpecifyTypeExplicitlyTest, ConvertToBlock/ExpressionBodyTest) into this one.
2014-07-10 15:05:17 +04:00
Evgeny Gerashchenko
b1003fc034
Extracted test for "Join Lines" from CodeTransformationsTest.
2014-07-10 15:05:17 +04:00
Michael Bogdanov
ea20073d4b
Fix error message
2014-07-10 14:19:35 +04:00
Pavel V. Talanov
ab07aea82f
Fix an NPE in VirtualFileKotlinClassFinder#findKotlinClass(JavaClass)
...
Happens for nonphysical PsiClass
2014-07-10 14:08:14 +04:00
Pavel V. Talanov
f0e91182da
Minor: Remove context parameter from getContainingFile() utility and move it to DescriptorToSourceUtils
2014-07-09 21:46:28 +04:00
Pavel V. Talanov
119e361b4b
Restore check in BuiltInsReferenceResolver
...
Erroneously deleted in d988256831
2014-07-09 21:43:02 +04:00
Pavel V. Talanov
3c48d0dec2
Fix usage of utility in KDoc
2014-07-09 19:08:32 +04:00
Pavel V. Talanov
16aefae602
Move descriptorToDeclaration utilities family to a separate util class DescriptorToSourceUtils
2014-07-09 19:07:26 +04:00
Pavel V. Talanov
8523e18afc
Set source elements for java annotation parameters
2014-07-09 18:19:40 +04:00
Pavel V. Talanov
930ea88e25
Set source elements for java enum entries
...
#KT-4277 Fixed
2014-07-09 18:19:39 +04:00
Pavel V. Talanov
4188bbe53c
Set source elements for java parameters
2014-07-09 18:19:38 +04:00
Pavel V. Talanov
8b91855fac
Drop SynthesizedCallableMemberDescriptor
2014-07-09 18:19:37 +04:00
Pavel V. Talanov
d988256831
Refactor: Remove context parameter from BindingContextUtils.descriptorToDeclaration utilities family
2014-07-09 18:19:36 +04:00
Pavel V. Talanov
723b3d75c9
Rewrite BindingContextUtils.descriptorToDeclaration utilities family to use SourceElement for getting PSI
...
Remove DESCRIPTOR_TO_DECLARATION context key
2014-07-09 18:19:35 +04:00
Pavel V. Talanov
59e43020c3
Initial version of storing SourceElements in descriptors
...
Introduce SourceElement, JavaSourceElementFactory, DeclarationDescriptorWithSource
Implement getSource() for eager, lazy and java descriptors
2014-07-09 18:19:34 +04:00
Andrey Breslav
e3b1639edf
KT-5425 Kotlin plugin crashes when project uses RxJava 17.0 or older
...
#KT-5425 Fixed
2014-07-09 16:10:41 +04:00
Michael Bogdanov
b1065520fb
Skip visitEnd in InliningInstructionAdapter
2014-07-09 09:48:17 +04:00
Michael Bogdanov
6ddeb85c00
Added checking for ONLY_LOCAL_RETURN in actual parameter of inline function
2014-07-09 09:46:28 +04:00
Svetlana Isakova
24e20b2dcf
Invoke call resolver extension in CallCompleter
...
so it is called after outer call is resolved (for calls in arguments)
2014-07-08 15:42:19 +04:00
Svetlana Isakova
62cb0d0baf
Added util 'getParentResolvedCall', 'strict' parameter
2014-07-08 14:57:41 +04:00
Svetlana Isakova
e62b4cfb5f
Invoke 'Add name to argument fix' not only on simple name callee expressions
2014-07-08 14:57:40 +04:00
Svetlana Isakova
cec01237d0
Added test for labeled delegated expression
2014-07-08 14:57:40 +04:00
Svetlana Isakova
51a979d5f0
Refactoring: do not duplicate 'instructionElement' (old 'calleeExpression') as a parameter
...
to 'builder.call()' and 'builder.read()' methods
2014-07-08 14:57:39 +04:00
Svetlana Isakova
6988725207
Refactoring: remove 'call' argument
...
when it can be taken from resolved call
2014-07-08 14:57:39 +04:00
Svetlana Isakova
53ee30992b
Record resolved call on call (not on element)
2014-07-08 14:57:38 +04:00
Svetlana Isakova
aa26db0538
Updated tests for control flow: call instruction stores call element
...
instead of callee expression
2014-07-08 14:57:38 +04:00
Svetlana Isakova
72e9822d99
All RESOLVED_CALL getters replaced with util methods
...
JetElement.getResolvedCall(BindingContext)
JetElement.getResolvedCallForSure(BindingContext)
2014-07-08 14:57:37 +04:00
Svetlana Isakova
e1fb5a9a04
Added 'isExternal' to ValueArgument
...
'subject' is external for 'in(contains)' resolve in 'when' condition:
when (subject) {
in range -> ...
}
2014-07-08 14:48:20 +04:00
Svetlana Isakova
ae8757f6b8
Added tests on resolved call for 'this'
2014-07-08 14:48:20 +04:00
Svetlana Isakova
dd95439767
Do not update recorded type if it hasn't changed
...
It's important for argument that has a type that shouldn't be updated.
Like '(b)' in 'a == (b)', which type is 'Any' (for proper 'equals' resolve).
Type for 'b' shouldn't be updated to 'Any' as well.
2014-07-08 14:48:20 +04:00
Svetlana Isakova
48511206ad
Mark required call with 'caret' in abstract resolved calls test
2014-07-08 14:48:19 +04:00
Svetlana Isakova
29ab166e1b
Refactoring: AbstractResolvedCallsTest
...
Render resolved call to a separate file
2014-07-08 14:48:19 +04:00
Svetlana Isakova
b2c2e1811c
Check 'isDirty' for resolved calls replaced with check 'hasUnresolvedArguments' for call
...
Don't report 'cannotCompleteResolve' error if some arguments are unresolved (like 'ambiguity')
2014-07-08 14:48:19 +04:00
Svetlana Isakova
a3e306b820
Update recorded type for argument in parentheses correctly
2014-07-08 14:48:18 +04:00
Svetlana Isakova
12ddf76df4
Changed order in call completer
...
update resolution status (and report error) after completing all arguments
2014-07-08 14:48:18 +04:00
Svetlana Isakova
c204ae2da1
Record argument to parameter map at the beginning
...
(separately from argument match status)
2014-07-08 14:48:18 +04:00
Svetlana Isakova
f24442b90e
Added ArgumentMatchStatus.MATCH_MODULO_UNINFERRED_TYPES
2014-07-08 14:48:17 +04:00
Svetlana Isakova
857aa76cff
Added tests for argument mapping
2014-07-08 14:48:17 +04:00
Svetlana Isakova
8dc932fc50
Refactoring: inlined method 'setInitialDataFlowInfo'
2014-07-08 14:48:17 +04:00
Svetlana Isakova
ec0fa1b765
Rewrote 'isDirty' in terms of argument to parameter match status
...
Added ArgumentMatchStatus
2014-07-08 14:48:16 +04:00
Svetlana Isakova
ad5fc4cd05
Removed duplication in MutableResolvedCall interface
...
'hasIncompleteTypeParameters()' is the same as 'getConstraintSystem() != null'
2014-07-08 14:48:16 +04:00