Svetlana Isakova
61dc110cc7
Report 'break or continue outside a loop'
...
for break/continue outside a loop body (e.g. in loop condition)
#KT-5724 Fixed
2014-09-07 01:03:57 +04:00
Svetlana Isakova
0b4f313b6d
Jump on 'continue' to condition entry points for all loops
2014-09-05 18:31:53 +04:00
Michael Nedzelsky
25a0854dbd
fix KT-5645: 'continue' inside 'do...while' statement works as goto to the beginning of the loop (not checking loop condition)
...
#KT-5645 Fixed
2014-09-05 18:31:53 +04:00
Svetlana Isakova
3d7c22f242
Added exact label names for labels
2014-09-05 18:31:53 +04:00
Alexey Sedunov
ebcac73874
Find Usages: Skip overriden descriptors which have no corresponding declaration (EA-58371)
2014-09-05 17:39:56 +04:00
Alexey Sedunov
f11621615b
Pseudocode: Do not generate VALUE_CONSUMER if property delegate has no value (EA-59276)
2014-09-05 17:39:54 +04:00
Alexey Sedunov
e03bae44d9
Extract Function: Support multi-declaration initializers
...
#KT-5613 Fixed
2014-09-05 17:39:53 +04:00
Natalia Ukhorskaya
b33e696ab7
Fix Android tests
2014-09-05 12:23:31 +04:00
Michael Nedzelsky
3578845e87
JS backend: add support for break, return, continue, throw in expressions
2014-09-03 20:48:52 +04:00
Michael Nedzelsky
2296eeef84
JS backend: add leftJetExpression and rightJetExpression fields into BinaryOperationTranslator
2014-09-03 20:48:48 +04:00
Valentin Kipyatkov
24bd6ec7de
Moved too specific function out of ExpressionTypingUtils (and refactored it)
2014-09-03 15:43:25 +04:00
Valentin Kipyatkov
855cc2443f
KT-4976 Completion ignores smart casts
...
#KT-4976 Fixed
#KT-5718 Fixed
2014-09-03 15:43:25 +04:00
Valentin Kipyatkov
c79204a41d
Completion: more tests for keyword escaping
2014-09-03 13:59:31 +04:00
Valentin Kipyatkov
ed5c5426e6
Completion: corrected for class nested into class object
2014-09-03 13:59:31 +04:00
Valentin Kipyatkov
89aaa018fe
Completion: escaping of named arguments
2014-09-03 13:59:31 +04:00
Valentin Kipyatkov
d64f930ff1
Completion: no qualified this for anonymous object + no keyword escaping for qualified this
2014-09-03 13:59:31 +04:00
Valentin Kipyatkov
5799ecbd28
Completion: minor code corrections after review
2014-09-03 13:59:30 +04:00
Michael Bogdanov
ce39b18c2f
Fix artifact output and root due IDEA-129315
2014-09-03 13:51:07 +04:00
Natalia Ukhorskaya
078e7f7bbb
Update to IDEA EAP 138.1980.1
2014-09-03 11:18:55 +04:00
Michael Nedzelsky
f5963ebfe9
JS backend: test for KT-4225: Compiler to JavaScript produces semantically wrong code
...
This issue was fixed in build 0.8.541
2014-09-02 22:53:00 +04:00
Michael Nedzelsky
0e41411c75
JS backend: fix TranslationUtils.isCacheNeeded
2014-09-02 22:52:57 +04:00
Michael Nedzelsky
5967b6637f
JS backend: fix translation for || and && (create new tmp variable if needed)
2014-09-02 22:52:53 +04:00
Michael Nedzelsky
40e5d6c8f5
JS backend: refactor LoopTranslator, add function translateForExpression
2014-09-02 22:52:50 +04:00
Michael Nedzelsky
478d3baf59
JS backend: add LoopTranslator.kt, move ExpressionVisitor.createWhile and ForTranslator into LoopTranslart, remove foreach package
2014-09-02 22:52:45 +04:00
Michael Nedzelsky
2fd13a0fb4
JS backend: add NotNull annotations
2014-09-02 22:52:42 +04:00
Michael Nedzelsky
ab0df532bc
JS backend: for with label, fix KT-5257 JS: for with continue with label fails on runtime, and KT-5262 JS: wrong code for for over range when start greater end
...
#KT-5257 Fixed
#KT-5262 Fixed
2014-09-02 22:52:39 +04:00
Nikolay Krasko
932bd57cf9
Minor: small code rearrangement
2014-09-02 14:41:46 +04:00
Nikolay Krasko
10886a8ce3
Refactoring: introduce isInSourceWithGradleCheck() method
2014-09-02 14:41:43 +04:00
Nikolay Krasko
053201f30f
Don't store test data in field
2014-09-02 14:41:41 +04:00
Nikolay Krasko
ea09129eba
More memory for "All Tests" configuration
2014-09-02 14:41:00 +04:00
Natalia Ukhorskaya
d8d01ead14
Debugger, fix tests: add kotlin-runtime to classpath compiling Java Sources for tinyApp
2014-09-01 15:08:09 +04:00
Svetlana Isakova
b794b827f9
Replaced UninferredParameterType with error type
...
and UninferredParameterTypeConstructor
2014-09-01 12:32:54 +04:00
Svetlana Isakova
17c3eeb7bd
Added error 'NESTED_CLASS_SHOULD_BE_QUALIFIED'
...
when nested class is resolved through implicit this
2014-09-01 12:32:54 +04:00
Svetlana Isakova
132c292d32
Don't check class object visibility when it's in qualifier position
...
(visibility for member is checked anyway).
It might be better to underline invisible qualifier in a chain (class or class object), not the last one (member) - for later improvement.
2014-09-01 12:32:54 +04:00
Svetlana Isakova
3767187027
Refactoring: extracted 'BindingContext.getDataFlowInfo'
2014-09-01 12:32:53 +04:00
Svetlana Isakova
0b9c62ab54
Extracted util function 'recordScopeAndDataFlowInfo'
2014-09-01 12:32:53 +04:00
Svetlana Isakova
7f9ecc50c2
Use EXPRESSION_DATA_FLOW_INFO instead of NON_DEFAULT_EXPRESSION_DATA_FLOW
2014-09-01 12:32:53 +04:00
Svetlana Isakova
4e8f10b8ab
Refactoring: extracted interface Qualifier (that is not a ReceiverValue)
2014-09-01 12:32:53 +04:00
Svetlana Isakova
bc3f6e200a
Refactoring in PositioningStrategies
...
Rename: NAME_IDENTIFIER -> DECLARATION_NAME
NAMED_ELEMENT -> DECLARATION_SIGNATURE
DECLARATION, DECLARATION_OR_DEFAULT (merged) -> DECLARATION_SIGNATURE_OR_DEFAULT
2014-09-01 12:32:53 +04:00
Svetlana Isakova
67aad53db7
Render 'defined in' in resolved call tests
2014-09-01 12:32:52 +04:00
Svetlana Isakova
bbeb44e6ee
Fixed NPE in ArgumentMatchImpl.getStatus
...
Check value arguments if there is wrong number of type arguments
2014-09-01 12:32:52 +04:00
Svetlana Isakova
05637226e1
Render name of class object as 'class object of MyClass'
2014-09-01 12:32:52 +04:00
Svetlana Isakova
9d366cb896
Prohibit local objects and enum classes
...
#KT-5402 Fixed
#KT-4838 Fixed
Resolve type of object inside local object as special, not supertype('Any').
Changed visibility of constructor of anonymous object to 'internal' to be able to resolve the following:
fun box(): String {
var foo = object {
val bar = object {
val baz = "ok"
}
}
return foo.bar.baz
}
The containing declaration of property initializers is constructor, so 'baz' was invisible inside private constructor.
2014-09-01 12:32:52 +04:00
Svetlana Isakova
eaeed78154
Resolve type of anonymous object in local object as local
2014-09-01 12:32:51 +04:00
Svetlana Isakova
f811b9541c
Position error on 'class A' or 'object A' instead of name identifier only
2014-09-01 12:32:51 +04:00
Svetlana Isakova
ac3528756c
Small improvements in error reporting
2014-09-01 12:32:51 +04:00
Svetlana Isakova
53b0b3450d
Refactoring in PositionStrategies: added markRange(from, to)
2014-09-01 12:32:50 +04:00
Svetlana Isakova
6f4c152f53
Record reference to class object directly
...
not to containing class descriptor
2014-09-01 12:32:50 +04:00
Svetlana Isakova
7f33ad90a6
Report 'nested class accessed via instance reference' error
2014-09-01 12:32:50 +04:00
Svetlana Isakova
d150a26f8a
Rewrote DiagnosticRendererUtil to kotlin
2014-09-01 12:32:50 +04:00