1 write to AnalyzerResult
Microsoft.CodeAnalysis.Features (1)
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
85
AnalyzerResult
= analyzerResult;
24 references to AnalyzerResult
Microsoft.CodeAnalysis.Features (24)
ExtractMethod\MethodExtractor.CodeGenerator.cs (24)
244
return this.
AnalyzerResult
.GetOutermostVariableToMoveIntoMethodDefinition();
250
if (
AnalyzerResult
.FlowControlInformation.EndPointIsReachable)
256
if (
AnalyzerResult
.FlowControlInformation.HasUniformControlFlow())
258
if (
AnalyzerResult
.FlowControlInformation.BreakStatementCount > 0)
260
else if (
AnalyzerResult
.FlowControlInformation.ContinueStatementCount > 0)
296
if (
AnalyzerResult
.VariablesToUseAsReturnValue.IsEmpty &&
297
!
AnalyzerResult
.FlowControlInformation.NeedsControlFlowValue())
299
Contract.ThrowIfTrue(
AnalyzerResult
.GetVariablesToSplitOrMoveOutToCallSite().Any(v => v.UseAsReturnValue));
313
if (
AnalyzerResult
.VariablesToUseAsReturnValue.IsEmpty &&
314
!
AnalyzerResult
.FlowControlInformation.NeedsControlFlowValue())
319
var flowControlInformation =
AnalyzerResult
.FlowControlInformation;
320
var variables =
AnalyzerResult
.VariablesToUseAsReturnValue;
346
foreach (var variable in
AnalyzerResult
.GetVariablesToSplitOrMoveOutToCallSite())
370
if (this.
AnalyzerResult
.FlowControlInformation.TryGetFallThroughFlowValue(out var fallthroughValue))
372
return statements.Concat(CreateReturnStatement([CreateFlowControlReturnExpression(this.
AnalyzerResult
.FlowControlInformation, fallthroughValue)]));
374
else if (!this.
AnalyzerResult
.VariablesToUseAsReturnValue.IsEmpty)
377
CreateReturnExpression(
AnalyzerResult
.VariablesToUseAsReturnValue.SelectAsArray(
406
if (
AnalyzerResult
.MethodTypeParametersInDeclaration.IsEmpty)
409
var set = new HashSet<ITypeParameterSymbol>(
AnalyzerResult
.MethodTypeParametersInConstraintList);
412
foreach (var parameter in
AnalyzerResult
.MethodTypeParametersInDeclaration)
433
foreach (var parameter in
AnalyzerResult
.MethodParameters)
463
return
AnalyzerResult
.CoreReturnType.SpecialType != SpecialType.System_Void
470
return _finalReturnType ??= WrapWithTaskIfNecessary(AddFlowControlTypeIfNecessary(this.
AnalyzerResult
.CoreReturnType));
474
var controlFlowValueType = this.
AnalyzerResult
.FlowControlInformation.ControlFlowValueType;