Commit Graph

1317 Commits

Author SHA1 Message Date
Andrey Breslav b3272feb63 Lazy resolve passes DescriptorRenderer tests except for the Enum case 2012-06-26 17:51:15 +02:00
Andrey Breslav e92f706c64 Typo fixed 2012-06-26 17:51:15 +02:00
Nikolay Krasko 72ef07acef Don't stub parameter if it's a loop parameter 2012-06-25 17:05:01 +04:00
Nikolay Krasko 6b82429587 Don't create stubs for properties inside function initializers (EA-36861) 2012-06-25 15:07:10 +04:00
Nikolay Krasko 7499ba0255 Stub for enum entry 2012-06-25 11:41:34 +04:00
Nikolay Krasko 429c2f307e - The information on is the file a script is stored in the file stub
- Correct information about type of kotlin file stub type
2012-06-25 11:26:47 +04:00
Svetlana Isakova 190360b1d4 EA-35501 fixed (checkBackingField assert) 2012-06-22 19:02:03 +04:00
Svetlana Isakova cf639e8c32 use 'getIndex' in parameters instead of 'int i' counter 2012-06-22 18:03:13 +04:00
Svetlana Isakova 53b59ce152 EA-36814. Do not repeat annotations resolve
for primary constructor parameters as properties
(annotations are already resolved for parameters themselves)
2012-06-22 17:26:29 +04:00
Svetlana Isakova a66771ba42 Merge pull request #85 from udalov/kt2146
Kt2146
2012-06-22 05:23:08 -07:00
Alexander Udalov 28b150892a "!is" now works correctly in when-clauses 2012-06-22 15:51:13 +04:00
Svetlana Isakova e4e69fd9eb Merge pull request #84 from udalov/kt2176
KT-2176 non-nullability is not inferred after !! or "as"
2012-06-22 04:24:47 -07:00
Alexander Udalov 3f4e2514ea extract DataFlowInfo from when-condition + more tests for kt2146 2012-06-22 13:18:45 +04:00
Alex Tkachman c1802e2360 breakpoints for multi-file namespaces 2012-06-22 11:55:16 +03:00
Alexander Udalov b5ba7123d5 KT-2146 Nullability casts in when.
#KT-2146 Fixed
2012-06-21 22:38:13 +04:00
Alexander Udalov 38fc57ae42 Pass DataFlowInfo through when-conditions 2012-06-21 22:38:11 +04:00
Nikolay Krasko 1ae1f13821 Filter creating stub elements 2012-06-21 20:59:35 +04:00
Nikolay Krasko aa2cf2e1dd Remove ILightStubElementType implementations for now 2012-06-21 20:59:34 +04:00
Alexander Udalov d54e117b19 KT-2176 non-nullability is not inferred after !! or "as"
#KT-2176 Fixed
2012-06-21 16:46:42 +04:00
Nikolay Krasko da31a9696c - Value parameters stubs
- ToString methods for stubs
- Some test fro stub tree construction
2012-06-21 14:45:51 +04:00
Alexander Udalov d67e22b174 KT-2223 Comparing non-null value with null might produce helpful warning
#KT-2223 Fixed
2012-06-20 20:33:58 +04:00
Evgeny Gerashchenko 0dd64837c0 Added checking for unresolved templates in CLI. Added test. 2012-06-20 18:58:24 +04:00
Evgeny Gerashchenko ccc8c77526 Renamed JetIdeTemplateExpression to JetIdeTemplate and made not a subtype of JetExpression. Fixed corresponding tests. 2012-06-20 18:58:24 +04:00
Evgeny Gerashchenko c4b0522c42 Removed UNRESOLVED_IDE_TEMPLATE diagnostic factory, since this check will be moved to CLI. 2012-06-20 18:58:23 +04:00
Evgeny Gerashchenko a7596a81e6 Renamed JetIdeTemplateExpression.getText() to getPlaceholderText() to avoid confusing. 2012-06-20 18:58:23 +04:00
Nikolay Krasko e2a3ada02d Stub for JetProperty 2012-06-20 18:47:13 +04:00
Nikolay Krasko 4b77268b21 Stub for JetTypeParameterList element 2012-06-20 15:48:13 +04:00
Alexander Udalov c613b991bf KT-2109 Nullability inference fails in extension function
#KT-2109 Fixed
2012-06-20 14:26:39 +04:00
Nikolay Krasko a3649c47c0 JetTypeParameter stub 2012-06-19 21:45:30 +04:00
Nikolay Krasko 8df1f1b125 Use NamedStub and move stubbed getName implementation to base class 2012-06-19 19:14:35 +04:00
Alexander Udalov 1c599efbcd pass correct DataFlowInfo through qualified expressions
#KT-2216 Fixed
 #KT-2164 Fixed
2012-06-19 16:27:55 +04:00
Alexander Udalov 651709bcc9 more methods return JetTypeInfo instead of JetType 2012-06-19 16:26:53 +04:00
Alexander Udalov baf3ab2aa5 pass DataFlowInfo in checkBinaryWithTypeRHSExpression 2012-06-19 16:26:47 +04:00
Alexander Udalov 2b6927ad3b reorder logic in checkBinaryWithTypeRHS 2012-06-19 16:26:04 +04:00
Alexander Udalov b43e17a7b0 keep DataFlowInfo if resulting type of an expression is DeferredType 2012-06-19 16:25:01 +04:00
Alexander Udalov 9db65d21b6 checkValueArgumentTypes calculates DataFlowInfo during type checking 2012-06-19 16:24:53 +04:00
Alexander Udalov be65a9404a checkValueArgumentTypes processes arguments in the right order 2012-06-19 16:24:01 +04:00
Alexander Udalov 722ac198fe getCallExpressionTypeInfo calculates common DataFlowInfo of all arguments in call expression 2012-06-19 16:22:49 +04:00
Alexander Udalov 33f0ff3eeb BindingContext.EXPRESSION_DATA_FLOW_INFO 2012-06-19 16:22:47 +04:00
Alexander Udalov ec7efdfee2 ExpressionTypingServices.getTypeInfo() 2012-06-19 16:22:45 +04:00
Alexander Udalov 845c3198bd KT-2164 !! does not propagate nullability information 2012-06-19 16:22:43 +04:00
Stepan Koltsov 11f2a98032 revert "DescriptorMatcher" 2012-06-18 20:53:55 +04:00
Stepan Koltsov e5481d5956 Revert "smarter WritableScopeImpl.getAllDescriptors"
This reverts commit 4d229144cf.
2012-06-18 20:50:18 +04:00
Stepan Koltsov ea0c68929a Revert "jdr: merge resolveMethod* methods, use DescriptorPredicate"
This reverts commit a87f3e2a45.
2012-06-18 20:50:05 +04:00
Stepan Koltsov fbab0b742c Revert "smarter JavaClassOrPackageScope#getAllDescriptors"
This reverts commit 010db0495b.
2012-06-18 20:49:55 +04:00
Stepan Koltsov 7deeb354a2 Revert "use the power of DescriptorPredicate in completion"
This reverts commit 65b74a19b4.
2012-06-18 20:49:47 +04:00
Stepan Koltsov efe550ee8f Revert "add JetScope.getAllDescriptors for KDoc"
This reverts commit 5e2521046c.
2012-06-18 20:49:37 +04:00
Stepan Koltsov 40c0bd9d89 Revert "frontend: base class for JetScope implementations"
This reverts commit b33fc76c12.
2012-06-18 20:42:46 +04:00
Stepan Koltsov 5e1e685d69 Revert "jdr: properly fetch supertype member names"
This reverts commit 9b13a308f8.
2012-06-18 20:42:33 +04:00
Stepan Koltsov a1dfcfc55d Revert "frontend: optimize DescriptorPredicate.asNamePredicate"
This reverts commit 554a54bcc5.
2012-06-18 20:42:16 +04:00