6 overrides of IsPinned
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2376internal override bool IsPinned
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
57internal override bool IsPinned => false;
Symbols\Source\SourceLocalSymbol.cs (1)
244internal override bool IsPinned
Symbols\Synthesized\SynthesizedLocal.cs (1)
167internal sealed override bool IsPinned
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
95internal override bool IsPinned
Symbols\UpdatedContainingSymbolLocal.cs (1)
89internal override bool IsPinned => _underlyingLocal.IsPinned;
11 references to IsPinned
Microsoft.CodeAnalysis.CSharp (11)
CodeGen\EmitStatement.cs (2)
1787if (local.DeclarationKind == LocalDeclarationKind.FixedVariable && local.IsPinned) // Excludes pointer local and string local in fixed string case. 1804constraints = (local.IsPinned ? LocalSlotConstraints.Pinned : LocalSlotConstraints.None) |
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (6)
268Debug.Assert(pinnedTemp.IsPinned); 269Debug.Assert(!localSymbol.IsPinned); 457Debug.Assert(pinnedTemp.IsPinned); 458Debug.Assert(!localSymbol.IsPinned); 520Debug.Assert(pinnedTemp.IsPinned); 521Debug.Assert(!localSymbol.IsPinned);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
143LocalSymbol { IsConst: false, IsPinned: false, IsRef: false } local =>
Symbols\LocalSymbol.cs (1)
55internal virtual bool CanScheduleToStack => !IsConst && !IsPinned;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
97get { return _originalVariable.IsPinned; }