6 references to UseAsReturnValue
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
59
Contract.ThrowIfTrue(variable.
UseAsReturnValue
);
Microsoft.CodeAnalysis.Features (4)
ExtractMethod\MethodExtractor.Analyzer.cs (2)
253
var variableToUseAsReturnValue = parameters.FirstOrDefault(v => v.
UseAsReturnValue
);
324
var names = parameters.Where(v => !v.
UseAsReturnValue
&& (v.ParameterModifier == ParameterBehavior.Out || v.ParameterModifier == ParameterBehavior.Ref))
ExtractMethod\MethodExtractor.CodeGenerator.cs (2)
229
Contract.ThrowIfTrue(AnalyzerResult.GetVariablesToSplitOrMoveOutToCallSite(cancellationToken).Any(v => v.
UseAsReturnValue
));
276
if (variable.
UseAsReturnValue
)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ExtractMethod\VisualBasicMethodExtractor.Analyzer.vb (1)
50
Contract.ThrowIfTrue(variable.
UseAsReturnValue
)