10 overrides of IsPinned
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2253
internal override bool
IsPinned
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
57
internal override bool
IsPinned
=> false;
Symbols\Source\SourceLocalSymbol.cs (1)
245
internal override bool
IsPinned
Symbols\Synthesized\SynthesizedLocal.cs (1)
164
internal sealed override bool
IsPinned
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
92
internal override bool
IsPinned
Symbols\UpdatedContainingSymbolLocal.cs (1)
89
internal override bool
IsPinned
=> _underlyingLocal.IsPinned;
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
Symbols\EEDisplayClassFieldLocalSymbol.cs (1)
60
internal override bool
IsPinned
Symbols\EELocalConstantSymbol.cs (1)
72
internal override bool
IsPinned
Symbols\EELocalSymbol.cs (1)
124
internal override bool
IsPinned
Symbols\PlaceholderLocalSymbol.cs (1)
99
internal override bool
IsPinned
13 references to IsPinned
Microsoft.CodeAnalysis.CSharp (11)
CodeGen\EmitStatement.cs (2)
1764
if (local.DeclarationKind == LocalDeclarationKind.FixedVariable && local.
IsPinned
) // Excludes pointer local and string local in fixed string case.
1781
constraints = (local.
IsPinned
? LocalSlotConstraints.Pinned : LocalSlotConstraints.None) |
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (6)
268
Debug.Assert(pinnedTemp.
IsPinned
);
269
Debug.Assert(!localSymbol.
IsPinned
);
424
Debug.Assert(pinnedTemp.
IsPinned
);
425
Debug.Assert(!localSymbol.
IsPinned
);
487
Debug.Assert(pinnedTemp.
IsPinned
);
488
Debug.Assert(!localSymbol.
IsPinned
);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
126
LocalSymbol { IsConst: false,
IsPinned
: false, IsRef: false } local =>
Symbols\LocalSymbol.cs (1)
55
internal virtual bool CanScheduleToStack => !IsConst && !
IsPinned
;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
94
get { return _originalVariable.
IsPinned
; }
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
EEAssemblyBuilder.cs (1)
108
constraints = (local.
IsPinned
? LocalSlotConstraints.Pinned : LocalSlotConstraints.None) |
Symbols\EELocalSymbolBase.cs (1)
26
return new EELocalSymbol(method, local.Locations, local.Name, -1, local.DeclarationKind, type, local.RefKind, local.
IsPinned
, local.IsCompilerGenerated, local.CanScheduleToStack);