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