Commit Graph

12952 Commits

Author SHA1 Message Date
Nikolay Krasko cb10c53040 Sample testing in kotlin
CompletionHandlerTest.java -> CompletionHandlerTest.kt
2013-09-04 20:45:17 +04:00
Nikolay Krasko ba0c9892d6 Rewrite JetFunctionInsertHandler at kotlin
JetFunctionInsertHandler.kt is a replacement for
JetFunctionInsertHandler.java
2013-09-04 20:45:17 +04:00
Nikolay Krasko b958963cbc Remove file for getting compiler for bootstrap 2013-09-04 16:27:30 +04:00
Nikolay Krasko b819c2c342 Remove outdated groovy formatting options 2013-09-04 16:27:15 +04:00
Andrey Breslav db2b19c50f Support filtering diagnostics in tests 2013-09-04 13:07:25 +04:00
Nikolay Krasko f89841a4ef Merge pull request #302 from sayon/indents
Better autoformatting
2013-09-03 23:58:18 -07:00
Alexander Udalov 723d5ef564 Fix default argument method calls
In some cases, calls of methods with default arguments were invoked via the
actual generated method, not via the "...$default" accessor
2013-09-03 22:26:05 +04:00
Svetlana Isakova 329d724c1e fixed compilation 2013-09-03 21:33:42 +04:00
sayon a3bfd25825 Formatter: now always adds space between reference expression and function literal. Test is included.
#KT-3932 fixed
2013-09-03 21:06:22 +04:00
sayon a0500f56d2 New setting and test: space before lambda arrow
#KT-3932 fixed
2013-09-03 21:05:17 +04:00
sayon 523a5bf6a9 New setting and test: space around arrow in function types 2013-09-03 21:04:22 +04:00
sayon 965265b8b8 Formatting: omit blank lines between 'when' and left brace. Test is included. 2013-09-03 21:03:17 +04:00
sayon f8b280ba57 New setting and test: space around arrow inside 'when' 2013-09-03 20:59:56 +04:00
sayon ec31808dcd A bigger code example for codestyle provider 2013-09-03 20:58:58 +04:00
Svetlana Isakova a53eae79b5 bug fixed: analyze arguments in FREE expression position 2013-09-03 19:56:20 +04:00
Svetlana Isakova b5e6568726 bug fixed: do not substitute type parameters twice
through final argument check
2013-09-03 19:50:00 +04:00
Svetlana Isakova a49dcc0dd4 analyze when entry in independent context 2013-09-03 17:05:21 +04:00
Alexey Sedunov 7357add55c Implement search of derived Kotlin classes/traits and Java classes/interfaces 2013-09-03 14:26:34 +04:00
Alexey Sedunov a7e46a4ba7 Implement search of class members usages 2013-09-03 14:26:33 +04:00
Alexey Sedunov b2d1f8d323 Add separate search of constructor usages 2013-09-03 14:26:32 +04:00
Alexey Sedunov 78189e883d Add "Find usage with options" dialog for Kotlin classes 2013-09-03 14:26:31 +04:00
Alexey Sedunov 07cc295747 Extract renameCheckbox method 2013-09-03 14:26:30 +04:00
Svetlana Isakova 7fabfd8771 test data fixed
temporary
when ambiguity inner calls are not completed
2013-09-03 13:09:18 +04:00
Svetlana Isakova 79c18f1c56 test data fixed
temporary
2013-09-03 13:09:17 +04:00
Svetlana Isakova efda014109 test data fixed
ignore error types in resolving constraints for generic functions
'if' is resolved as special function
2013-09-03 13:09:17 +04:00
Svetlana Isakova 335e0d7d1b test data fixed
can't implicitly convert to Unit any more in 'if'
as 'if' is resolved as special function call 'fun IF<T>(T, T)'
2013-09-03 13:09:17 +04:00
Svetlana Isakova 01826af806 rename: deparenthesizeWithNoTypeResolution -> deparenthesize 2013-09-03 13:09:16 +04:00
Svetlana Isakova d9b7dd6232 fix: find key expression recursively 2013-09-03 13:09:16 +04:00
Svetlana Isakova c242a833cb removed obsolete test
no more error 'NO_GET_METHOD' when there's get method with inappropriate signature
2013-09-03 13:09:16 +04:00
Svetlana Isakova 3f72c7a9e1 small fixes: case with function literal in a block
analyze function literals in 'independent' mode, todo comment added
2013-09-03 13:09:15 +04:00
Svetlana Isakova c739632c57 report 'ambiguity' on reference, not on the whole expression
as other type inference errors
2013-09-03 13:09:15 +04:00
Svetlana Isakova 5a8e80399e update number types for unmapped arguments
or when there is no candidate found
2013-09-03 13:09:15 +04:00
Svetlana Isakova cf85e4de36 refactoring: moved methods 2013-09-03 13:09:14 +04:00
Svetlana Isakova 5f029c4c57 small refactoring 2013-09-03 13:09:14 +04:00
Svetlana Isakova 0084b68176 analyze incomplete 'in' expression 2013-09-03 13:09:14 +04:00
Svetlana Isakova da07d60ad6 checked for 'isBinaryExpressionDependentOnExpectedType'
both in analyzing expressions & completion phase
2013-09-03 13:09:13 +04:00
Svetlana Isakova cf22bc7c35 added checkType of TypeInfo method 2013-09-03 13:09:13 +04:00
Svetlana Isakova 70b11f6d39 refactoring: extracted methods for visiting special binary expressions 2013-09-03 13:09:13 +04:00
Svetlana Isakova 8b27c72736 removed UNKNOWN_EXPECTED_TYPE
it's NO_EXPECTED_TYPE + ContextDependency.DEPENDENT
2013-09-03 13:09:12 +04:00
Svetlana Isakova 92611e1460 used usual trace instead of dummy one in tests
is necessary for 'if' tests
2013-09-03 13:09:12 +04:00
Svetlana Isakova 58158ab30b ++wrap if branches in blocks 2013-09-03 13:09:12 +04:00
Svetlana Isakova a493125a75 refactoring: fixes after review
rename, removed unnecessary methods, improved test
2013-09-03 13:09:11 +04:00
Svetlana Isakova ae086d883f fixed test after changed type inference error message
changed order or 'found' and 'required' types
2013-09-03 13:09:11 +04:00
Svetlana Isakova fa9959cdb5 refactoring: extracted all diagnostic messages to 'diagnostics' list
fixed test after messages order changed
2013-09-03 13:09:11 +04:00
Svetlana Isakova 928133b69b small fixes after review 2013-09-03 13:09:10 +04:00
Svetlana Isakova 164da12518 LabelResolver moved to ResolutionContext
(from ExpressionTypingContext)
2013-09-03 13:09:10 +04:00
Svetlana Isakova fd5a2056c1 analyze labeled function literals as usual ones
(specially as function literals, not as other expressions)
2013-09-03 13:09:10 +04:00
Svetlana Isakova 8f29968183 test data updated
arguments analyzed even if there's type inference error
2013-09-03 13:09:09 +04:00
Svetlana Isakova 9093d4c373 wrap if branches in blocks 2013-09-03 13:09:09 +04:00
Svetlana Isakova 1861a335f6 always analyze 'if' as a call
not only if it's analyzed as an argument
2013-09-03 13:09:09 +04:00