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