Commit Graph

18757 Commits

Author SHA1 Message Date
Stanislav Erokhin 4c0befbfe9 Remove unnecessary lazy value 2014-11-24 15:38:58 +03:00
Stanislav Erokhin 7fa93c4e90 Added support space symbols for diagnostic parameters in DiagnosticTest 2014-11-24 15:38:56 +03:00
Michael Bogdanov 8fc3a37989 Fix for KT-6312: Compiler crashes accessing inherited property of class object
#KT-6312 Fixed
2014-11-24 13:10:59 +03:00
Nikita Skvortsov 1e9d303705 fix for KT-5420 2014-11-22 02:52:19 +03:00
Nikita Skvortsov 65946c3ded minor code style improvements 2014-11-22 02:52:18 +03:00
Andrey Breslav 08ad4bec64 More information when no containing field found 2014-11-21 19:03:00 +03:00
Andrey Breslav 93a409d459 Rendering for resolution candidates 2014-11-21 19:02:47 +03:00
Andrey Breslav b109a34651 Common formatting extracted 2014-11-21 18:59:45 +03:00
Andrey Breslav 0eee83b6ec Lazy logs removed 2014-11-21 18:59:45 +03:00
Andrey Breslav 4112b2de5f Disable lazy log checking by default 2014-11-21 18:59:44 +03:00
Pavel V. Talanov ae75c7ecd7 Update stdlib-validator after changes to AnalysisResult 2014-11-21 16:10:05 +03:00
Pavel V. Talanov ff3b3c8a6b Refactor: inline AnalyzerFacadeWithCache#getContextForElement 2014-11-21 15:56:11 +03:00
Pavel V. Talanov 67b2c32253 Minor: comment 2014-11-21 15:56:10 +03:00
Pavel V. Talanov 3afdd8bd92 Add analyzeFullyAndGetResult to ResolutionFacade 2014-11-21 15:56:10 +03:00
Pavel V. Talanov 63b402e93c Rename: JetElement#getLazyResolveSession() -> getResolutionFacade
Rename local variables and fields of type ResolutionFacade
2014-11-21 15:56:09 +03:00
Pavel V. Talanov b2ce3da99c Minor: Inline the only usage of getAnalysisResultsForElements() 2014-11-21 15:56:09 +03:00
Pavel V. Talanov cb1582fdc9 Rename: JetElement#getAnalysisResults() -> analyzeFullyAndGetResult 2014-11-21 15:56:08 +03:00
Pavel V. Talanov 1cf3938f13 Rename: JetElement#getBindingContext() -> analyzeFully 2014-11-21 15:56:07 +03:00
Pavel V. Talanov d06628945c Refactor: Introduce JetElement#analyzeAndGetResult() utility 2014-11-21 15:56:07 +03:00
Pavel V. Talanov 407c2029da Rename: getModuleDescriptorForElement -> findModuleDescriptor 2014-11-21 15:56:06 +03:00
Pavel V. Talanov 6ff647ca66 Rename: resolveToElement() -> analyze 2014-11-21 15:56:06 +03:00
Pavel V. Talanov e10461d0fa Minor: reorder functions 2014-11-21 15:56:05 +03:00
Pavel V. Talanov bce399f5fd Rename: AnalyzeExhaust -> AnalysisResult 2014-11-21 15:56:05 +03:00
Pavel V. Talanov e4670a791d Refactor: Introduce JetElement#getModuleDescriptorForElement() 2014-11-21 15:56:04 +03:00
Pavel V. Talanov 0319ef797e Refactor: Introduce DeclarationDescriptor#module utility 2014-11-21 15:56:03 +03:00
Pavel V. Talanov 96100eec1d Refactor: Introduce JetElement#resolveToElement utility 2014-11-21 15:56:03 +03:00
Pavel V. Talanov 585b556f52 Refactor: Introduce JetDeclaration#resolveToDescriptor utility 2014-11-21 15:56:02 +03:00
Pavel V. Talanov 95e668b1f1 Minor: move resolution utilities to a separate file 2014-11-21 15:56:02 +03:00
Pavel V. Talanov df892ba33a Introduce ResolutionFacade to be used by plugin code instead of resolve session
Do not expose ResolveSessionForBodies where possible
Define API of ResolutionFacade, similar to what ResolveSessionForBodies has
JetElement#getLazyResolveSession returns ResolutionFacade
Call sites to be updated later
2014-11-21 15:56:01 +03:00
Pavel V. Talanov 2c9b0448a1 Fix getModuleInfo for elements in code fragments 2014-11-21 15:56:00 +03:00
Pavel V. Talanov 03a31db2ec Converter: use ide resolve through a dedicated interface
Eliminate direct usages of ResolveSession
2014-11-21 15:56:00 +03:00
Pavel V. Talanov 1f7c9f5693 Use KotlinCacheService directly in IDELightClassGenerationSupport 2014-11-21 15:55:59 +03:00
Pavel V. Talanov 1991f0119e Convert AnalyzeExhaust to Kotlin and make it a data class 2014-11-21 15:55:59 +03:00
Natalia Ukhorskaya 341d4a7a26 Fix maven build: remove wrong import 2014-11-21 15:07:06 +03:00
Svetlana Isakova b71260f54e Moved tests
that are used both for codegen & diagnostics to codegen/box/diagnostics
2014-11-21 14:02:45 +03:00
Svetlana Isakova 2a83053355 Updated lazy log tests 2014-11-21 14:02:45 +03:00
Svetlana Isakova 9cd5f51b88 Added test for KT-4711
Error type with no error reported from type inference
 #KT-4711 Fixed
2014-11-21 14:02:43 +03:00
Svetlana Isakova e31e63aabe Small refactoring: replaced code with 'getOrPut' library function 2014-11-21 14:02:43 +03:00
Svetlana Isakova 2948ca9077 Fixed argument for error message 'TYPE_PARAMETER_AS_REIFIED' 2014-11-21 14:02:43 +03:00
Svetlana Isakova 0719297d8f Uncommented test when extensions are called for nested calls 2014-11-21 14:02:42 +03:00
Svetlana Isakova 5d0f004292 Fix for 'if' special construct type
If one branch has Nothing type (contains 'return', etc.),
return result type of corresponding resolved call (it may depend on smart casts)
 #KT-6242 Fixed
2014-11-21 14:02:42 +03:00
Svetlana Isakova 36fd8a1a08 Set the right call operation node for implicit invoke
Make a call for implicit invoke safe if an outer call is safe
2014-11-21 14:02:42 +03:00
Svetlana Isakova 7f62675665 Fixed error reporting for special constructions (if, elvis)
Track whether an error was reported for sub expressions (like 'if' branches) or it should be reported for the whole expression
 #KT-6189 Fixed
2014-11-21 14:02:42 +03:00
Svetlana Isakova 8109b1f997 DONT_CARE placeholder can be nullable after a substitution
Interpret it as DONT_CARE as well (not as an error type where an error was generated before)
 #KT-6175 Fixed
2014-11-21 14:02:41 +03:00
Svetlana Isakova 8ad017c071 Extracted 'deparenthesizeArgument', used it where necessary
#KT-6176 Fixed
2014-11-21 14:02:41 +03:00
Michael Bogdanov e2826a47e1 Remove "operation" method from StackValue.kt;
Compilation fix: remove static import to kotlin from AsmUtil
2014-11-21 13:59:44 +03:00
Michael Bogdanov 3a70992d27 Lazy intrinsic generation
#KT-6241 Fixed
2014-11-21 13:59:43 +03:00
Michael Bogdanov 4812564441 Intrinsic receiver parameter annotated with NotNull 2014-11-21 13:59:43 +03:00
Michael Bogdanov afceec427d Intrinsic arguments parameter annotated with NotNull 2014-11-21 13:59:43 +03:00
Natalia Ukhorskaya 68d5e43ad3 Android Gradle Plugin 0.14.4 breaks Kotlin
#KT-6310 Fixed
2014-11-21 12:41:19 +03:00