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