4 instantiations of StateMachineFieldSymbol
Microsoft.CodeAnalysis.CSharp (4)
Lowering\SyntheticBoundNodeFactory.cs (4)
173var result = new StateMachineFieldSymbol(CurrentType, type, name, isPublic, isThis); 181var result = new StateMachineFieldSymbol(CurrentType, TypeWithAnnotations.Create(type), name, isPublic, isThis); 189var result = new StateMachineFieldSymbol(CurrentType, type, name, synthesizedKind, slotIndex, isPublic: false); 197var result = new StateMachineFieldSymbol(CurrentType, type, name, slotDebugInfo, slotIndex, isPublic: false);
45 references to StateMachineFieldSymbol
Microsoft.CodeAnalysis.CSharp (45)
CodeGen\EmitStatement.cs (3)
817foreach (var field in scope.Fields) 1161var stateMachineField = left.FieldSymbol as StateMachineFieldSymbol;
Compiler\MethodCompiler.cs (1)
1661foreach (StateMachineFieldSymbol field in
Generated\BoundNodes.xml.Generated.cs (4)
3369public BoundStateMachineScope(SyntaxNode syntax, ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement, bool hasErrors = false) 3380public ImmutableArray<StateMachineFieldSymbol> Fields { get; } 3386public BoundStateMachineScope Update(ImmutableArray<StateMachineFieldSymbol> fields, BoundStatement statement) 13369ImmutableArray<StateMachineFieldSymbol> fields = GetUpdatedArray(node, node.Fields);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (4)
139ImmutableArray<StateMachineFieldSymbol> rootScopeHoistedLocals; 226protected BoundCatchBlock GenerateExceptionHandling(LocalSymbol exceptionLocal, ImmutableArray<StateMachineFieldSymbol> hoistedLocals) 261protected BoundStatement GenerateHoistedLocalsCleanup(ImmutableArray<StateMachineFieldSymbol> hoistedLocals) 267foreach (var hoistedLocal in hoistedLocals)
Lowering\StateMachineRewriter\CapturedSymbol.cs (4)
49public readonly StateMachineFieldSymbol HoistedField; 51public CapturedToStateMachineFieldReplacement(StateMachineFieldSymbol hoistedField, bool isReusable) 68public readonly ImmutableArray<StateMachineFieldSymbol> HoistedFields; 70public CapturedToExpressionSymbolReplacement(BoundExpression replacement, ImmutableArray<StateMachineFieldSymbol> hoistedFields, bool isReusable)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (16)
70private Dictionary<TypeSymbol, ArrayBuilder<StateMachineFieldSymbol>>? _lazyAvailableReusableHoistedFields; 299var hoistedLocalsWithDebugScopes = ArrayBuilder<StateMachineFieldSymbol>.GetInstance(); 363foreach (var field in ((CapturedToExpressionSymbolReplacement)proxy).HoistedFields) 398internal BoundBlock MakeStateMachineScope(ImmutableArray<StateMachineFieldSymbol> hoistedLocals, BoundStatement statement) 406internal static bool TryUnwrapBoundStateMachineScope(ref BoundStatement statement, out ImmutableArray<StateMachineFieldSymbol> hoistedLocals) 421hoistedLocals = ImmutableArray<StateMachineFieldSymbol>.Empty; 452private StateMachineFieldSymbol GetOrAllocateReusableHoistedField(TypeSymbol type, out bool reused, LocalSymbol local = null) 454ArrayBuilder<StateMachineFieldSymbol> fields; 475private void FreeReusableHoistedField(StateMachineFieldSymbol field) 477ArrayBuilder<StateMachineFieldSymbol> fields; 482_lazyAvailableReusableHoistedFields = new Dictionary<TypeSymbol, ArrayBuilder<StateMachineFieldSymbol>>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability); 485_lazyAvailableReusableHoistedFields.Add(field.Type, fields = new ArrayBuilder<StateMachineFieldSymbol>()); 509var hoistedFields = ArrayBuilder<StateMachineFieldSymbol>.GetInstance(); 563ArrayBuilder<StateMachineFieldSymbol> hoistedFields, 662StateMachineFieldSymbol hoistedField; 733var hoistedLocalsWithDebugScopes = ArrayBuilder<StateMachineFieldSymbol>.GetInstance();
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
178StateMachineFieldSymbol field = null; 237var proxyField = F.StateMachineField(containingType, GeneratedNames.ThisProxyFieldName(), isPublic: true, isThis: true); 242var initialThis = containingType.IsStructType() ? 252var proxyField = F.StateMachineField(typeMap.SubstituteType(parameter.Type).Type, parameter.Name, isPublic: !PreserveInitialParameterValuesAndThreadId); 257var field = F.StateMachineField(typeMap.SubstituteType(parameter.Type).Type, GeneratedNames.StateMachineParameterProxyFieldName(parameter.Name), isPublic: true);
Lowering\SyntheticBoundNodeFactory.cs (8)
170public StateMachineFieldSymbol StateMachineField(TypeWithAnnotations type, string name, bool isPublic = false, bool isThis = false) 173var result = new StateMachineFieldSymbol(CurrentType, type, name, isPublic, isThis); 178public StateMachineFieldSymbol StateMachineField(TypeSymbol type, string name, bool isPublic = false, bool isThis = false) 181var result = new StateMachineFieldSymbol(CurrentType, TypeWithAnnotations.Create(type), name, isPublic, isThis); 186public StateMachineFieldSymbol StateMachineField(TypeSymbol type, string name, SynthesizedLocalKind synthesizedKind, int slotIndex) 189var result = new StateMachineFieldSymbol(CurrentType, type, name, synthesizedKind, slotIndex, isPublic: false); 194public StateMachineFieldSymbol StateMachineField(TypeSymbol type, string name, LocalSlotDebugInfo slotDebugInfo, int slotIndex) 197var result = new StateMachineFieldSymbol(CurrentType, type, name, slotDebugInfo, slotIndex, isPublic: false);