6 references to UseAsReturnValue
Microsoft.CodeAnalysis.Features (6)
ExtractMethod\MethodExtractor.Analyzer.cs (3)
166
var variablesToUseAsReturnValue = finalOrderedVariableInfos.WhereAsArray(v => v.
UseAsReturnValue
);
273
.Where(v => v is {
UseAsReturnValue
: false, ParameterModifier: ParameterBehavior.Out or ParameterBehavior.Ref })
363
Contract.ThrowIfTrue(variable.
UseAsReturnValue
);
ExtractMethod\MethodExtractor.AnalyzerResult.cs (1)
35
public ImmutableArray<VariableInfo> VariablesToUseAsReturnValue { get; } = variables.WhereAsArray(v => v.
UseAsReturnValue
);
ExtractMethod\MethodExtractor.CodeGenerator.cs (2)
297
Contract.ThrowIfTrue(AnalyzerResult.GetVariablesToSplitOrMoveOutToCallSite().Any(v => v.
UseAsReturnValue
));
346
if (variable.
UseAsReturnValue
)