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