39 references to VariableInfo
Microsoft.CodeAnalysis.Features (39)
ExtractMethod\MethodExtractor.Analyzer.cs (19)
151
private (ImmutableArray<
VariableInfo
> finalOrderedVariableInfos, ITypeSymbol returnType, bool returnsByRef)
152
GetSignatureInformation(Dictionary<ISymbol,
VariableInfo
> symbolMap)
199
ITypeSymbol GetReturnType(ImmutableArray<
VariableInfo
> variablesToUseAsReturnValue)
220
ImmutableArray<
VariableInfo
> variables,
266
private OperationStatus CheckAsyncMethodRefOutParameters(IList<
VariableInfo
> parameters)
308
private ImmutableArray<
VariableInfo
> MarkVariableInfosToUseAsReturnValueIfPossible(ImmutableArray<
VariableInfo
> variableInfo)
319
var result = new FixedSizeArrayBuilder<
VariableInfo
>(variableInfo.Length);
320
foreach (
var
info in variableInfo)
323
?
VariableInfo
.CreateReturnValue(info)
332
return variableInfo.SetItem(index,
VariableInfo
.CreateReturnValue(variableInfo[index]));
341
ImmutableArray<
VariableInfo
> variableInfo,
353
var
variable = variableInfo[i];
399
out Dictionary<ISymbol,
VariableInfo
> variableInfoMap,
556
static
VariableInfo
CreateFromSymbol(
574
private static void AddVariableToMap(IDictionary<ISymbol,
VariableInfo
> variableInfoMap, ISymbol localOrParameter,
VariableInfo
variableInfo)
738
IDictionary<ISymbol,
VariableInfo
> variableInfoMap,
804
IDictionary<ISymbol,
VariableInfo
> variableInfoMap,
ExtractMethod\MethodExtractor.AnalyzerResult.cs (10)
26
ImmutableArray<
VariableInfo
> variables,
36
public ImmutableArray<
VariableInfo
> VariablesToUseAsReturnValue { get; } = variables.WhereAsArray(v => v.UseAsReturnValue);
65
public ImmutableArray<
VariableInfo
> Variables { get; } = variables;
67
public ImmutableArray<
VariableInfo
> GetVariablesToSplitOrMoveIntoMethodDefinition()
73
public IEnumerable<
VariableInfo
> MethodParameters
76
public IEnumerable<
VariableInfo
> GetVariablesToMoveIntoMethodDefinition()
79
public IEnumerable<
VariableInfo
> GetVariablesToMoveOutToCallSiteOrDelete()
82
public IEnumerable<
VariableInfo
> GetVariablesToSplitOrMoveOutToCallSite()
85
public
VariableInfo
GetOutermostVariableToMoveIntoMethodDefinition()
87
using var _ = ArrayBuilder<
VariableInfo
>.GetInstance(out var variables);
ExtractMethod\MethodExtractor.CodeGenerator.cs (6)
94
protected abstract TStatementSyntax CreateDeclarationStatement(ImmutableArray<
VariableInfo
> variables, TExpressionSyntax initialValue, CancellationToken cancellationToken);
95
protected abstract TStatementSyntax CreateAssignmentExpressionStatement(ImmutableArray<
VariableInfo
> variables, TExpressionSyntax rvalue);
207
protected
VariableInfo
GetOutermostVariableToMoveIntoMethodDefinition()
264
ImmutableArray<
VariableInfo
> variables, CancellationToken cancellationToken)
295
IEnumerable<
VariableInfo
> variables, CancellationToken cancellationToken)
299
foreach (
var
variable in variables)
ExtractMethod\MethodExtractor.VariableInfo.cs (4)
26
bool useAsReturnValue) : IComparable<
VariableInfo
>
84
public static
VariableInfo
CreateReturnValue(
VariableInfo
variable)
120
public int CompareTo(
VariableInfo
other)