1 type derived from StateMachineFieldSymbol
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (1)
89
internal sealed class StateMachineFieldSymbolForRegularParameter :
StateMachineFieldSymbol
4 instantiations of StateMachineFieldSymbol
Microsoft.CodeAnalysis.CSharp (4)
Lowering\SyntheticBoundNodeFactory.cs (4)
173
var result = new
StateMachineFieldSymbol
(CurrentType, type, name, isPublic, isThis);
181
var result = new
StateMachineFieldSymbol
(CurrentType, TypeWithAnnotations.Create(type), name, isPublic, isThis);
197
var result = new
StateMachineFieldSymbol
(CurrentType, type, name, synthesizedKind, slotIndex, isPublic: false);
205
var result = new
StateMachineFieldSymbol
(CurrentType, type, name, slotDebugInfo, slotIndex, isPublic: false);
48 references to StateMachineFieldSymbol
Microsoft.CodeAnalysis.CSharp (48)
CodeGen\EmitStatement.cs (3)
817
foreach (
var
field in scope.Fields)
1161
var
stateMachineField = left.FieldSymbol as
StateMachineFieldSymbol
;
Compiler\MethodCompiler.cs (1)
1661
foreach (
StateMachineFieldSymbol
field in
Generated\BoundNodes.xml.Generated.cs (4)
3370
public BoundStateMachineScope(SyntaxNode syntax, ImmutableArray<
StateMachineFieldSymbol
> fields, BoundStatement statement, bool hasErrors = false)
3381
public ImmutableArray<
StateMachineFieldSymbol
> Fields { get; }
3387
public BoundStateMachineScope Update(ImmutableArray<
StateMachineFieldSymbol
> fields, BoundStatement statement)
13406
ImmutableArray<
StateMachineFieldSymbol
> fields = GetUpdatedArray(node, node.Fields);
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
93
protected override BoundStatement GenerateCleanupForExit(ImmutableArray<
StateMachineFieldSymbol
> rootHoistedLocals)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (4)
141
ImmutableArray<
StateMachineFieldSymbol
> rootScopeHoistedLocals;
213
BoundCatchBlock generateExceptionHandling(LocalSymbol exceptionLocal, ImmutableArray<
StateMachineFieldSymbol
> rootHoistedLocals)
264
protected virtual BoundStatement GenerateCleanupForExit(ImmutableArray<
StateMachineFieldSymbol
> rootHoistedLocals)
270
foreach (
var
hoistedLocal in rootHoistedLocals)
Lowering\StateMachineRewriter\CapturedSymbol.cs (4)
49
public readonly
StateMachineFieldSymbol
HoistedField;
51
public CapturedToStateMachineFieldReplacement(
StateMachineFieldSymbol
hoistedField, bool isReusable)
68
public readonly ImmutableArray<
StateMachineFieldSymbol
> HoistedFields;
70
public CapturedToExpressionSymbolReplacement(BoundExpression replacement, ImmutableArray<
StateMachineFieldSymbol
> hoistedFields, bool isReusable)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (17)
70
private Dictionary<TypeSymbol, ArrayBuilder<
StateMachineFieldSymbol
>>? _lazyAvailableReusableHoistedFields;
304
var hoistedLocalsWithDebugScopes = ArrayBuilder<
StateMachineFieldSymbol
>.GetInstance();
368
foreach (
var
field in ((CapturedToExpressionSymbolReplacement)proxy).HoistedFields)
403
internal BoundBlock MakeStateMachineScope(ImmutableArray<
StateMachineFieldSymbol
> hoistedLocals, BoundStatement statement)
411
internal static bool TryUnwrapBoundStateMachineScope(ref BoundStatement statement, out ImmutableArray<
StateMachineFieldSymbol
> hoistedLocals)
426
hoistedLocals = ImmutableArray<
StateMachineFieldSymbol
>.Empty;
462
private
StateMachineFieldSymbol
GetOrAllocateReusableHoistedField(TypeSymbol type, out bool reused, LocalSymbol? local = null)
464
ArrayBuilder<
StateMachineFieldSymbol
>? fields;
476
StateMachineFieldSymbol
createdField;
492
private void FreeReusableHoistedField(
StateMachineFieldSymbol
field)
494
ArrayBuilder<
StateMachineFieldSymbol
> fields;
499
_lazyAvailableReusableHoistedFields = new Dictionary<TypeSymbol, ArrayBuilder<
StateMachineFieldSymbol
>>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability);
502
_lazyAvailableReusableHoistedFields.Add(field.Type, fields = new ArrayBuilder<
StateMachineFieldSymbol
>());
526
var hoistedFields = ArrayBuilder<
StateMachineFieldSymbol
>.GetInstance();
580
ArrayBuilder<
StateMachineFieldSymbol
> hoistedFields,
679
StateMachineFieldSymbol
hoistedField;
751
var hoistedLocalsWithDebugScopes = ArrayBuilder<
StateMachineFieldSymbol
>.GetInstance();
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
180
StateMachineFieldSymbol
field = null;
240
var
proxyField = F.StateMachineField(containingType, GeneratedNames.ThisProxyFieldName(), isPublic: true, isThis: true);
245
var
initialThis = containingType.IsStructType() ?
255
var
proxyField = F.StateMachineFieldForRegularParameter(typeMap.SubstituteType(parameter.Type).Type, parameter.Name, parameter, isPublic: !PreserveInitialParameterValuesAndThreadId);
260
var
field = F.StateMachineFieldForRegularParameter(typeMap.SubstituteType(parameter.Type).Type, GeneratedNames.StateMachineParameterProxyFieldName(parameter.Name), parameter, isPublic: true);
Lowering\SyntheticBoundNodeFactory.cs (9)
170
public
StateMachineFieldSymbol
StateMachineField(TypeWithAnnotations type, string name, bool isPublic = false, bool isThis = false)
173
var
result = new StateMachineFieldSymbol(CurrentType, type, name, isPublic, isThis);
178
public
StateMachineFieldSymbol
StateMachineField(TypeSymbol type, string name, bool isPublic = false, bool isThis = false)
181
var
result = new StateMachineFieldSymbol(CurrentType, TypeWithAnnotations.Create(type), name, isPublic, isThis);
186
public
StateMachineFieldSymbol
StateMachineFieldForRegularParameter(TypeSymbol type, string name, ParameterSymbol parameter, bool isPublic)
194
public
StateMachineFieldSymbol
StateMachineField(TypeSymbol type, string name, SynthesizedLocalKind synthesizedKind, int slotIndex)
197
var
result = new StateMachineFieldSymbol(CurrentType, type, name, synthesizedKind, slotIndex, isPublic: false);
202
public
StateMachineFieldSymbol
StateMachineField(TypeSymbol type, string name, LocalSlotDebugInfo slotDebugInfo, int slotIndex)
205
var
result = new StateMachineFieldSymbol(CurrentType, type, name, slotDebugInfo, slotIndex, isPublic: false);