10 references to CoreReturnType
Microsoft.CodeAnalysis.CSharp.Features (7)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (5)
293
return ReturnStatement(ReturnKeyword.WithoutTrailingTrivia(), this.AnalyzerResult.
CoreReturnType
.SpecialType == SpecialType.System_Void ? null : IdentifierName(ReturnValueName).WithLeadingTrivia(Space).WithoutTrailingTrivia(), SemicolonToken.WithoutLeadingTrivia());
508
if (this.AnalyzerResult.
CoreReturnType
.SpecialType == SpecialType.System_Void)
513
var methodReturnDefaultValue = this.AnalyzerResult.
CoreReturnType
.IsReferenceType
893
var hasNonControlFlowReturnValue = variableInfos.Length > 0 || this.AnalyzerResult.
CoreReturnType
.SpecialType != SpecialType.System_Void;
968
0 => DeclarationExpression(this.AnalyzerResult.
CoreReturnType
.GenerateTypeSyntax(), SingleVariableDesignation(ReturnValueName.ToIdentifierToken())),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (2)
92
var returnType = AnalyzerResult.
CoreReturnType
;
99
return AnalyzerResult.
CoreReturnType
.SpecialType != SpecialType.System_Void
Microsoft.CodeAnalysis.Features (3)
ExtractMethod\MethodExtractor.CodeGenerator.cs (2)
461
return AnalyzerResult.
CoreReturnType
.SpecialType != SpecialType.System_Void
468
return _finalReturnType ??= WrapWithTaskIfNecessary(AddFlowControlTypeIfNecessary(this.AnalyzerResult.
CoreReturnType
));
ExtractMethod\MethodExtractor.cs (1)
219
return status.With(CheckType(semanticModel, analyzeResult.
CoreReturnType
));