61 references to LocalSlotConstraints
Microsoft.CodeAnalysis (28)
CodeGen\LocalConstantDefinition.cs (2)
55public LocalSlotConstraints Constraints => LocalSlotConstraints.None;
CodeGen\LocalDefinition.cs (5)
33private readonly LocalSlotConstraints _constraints; 69LocalSlotConstraints constraints, 122public LocalSlotConstraints Constraints => _constraints; 125=> (_constraints & LocalSlotConstraints.Pinned) != 0; 128=> (_constraints & LocalSlotConstraints.ByRef) != 0;
CodeGen\LocalSlotManager.cs (5)
40private readonly LocalSlotConstraints _constraints; 42internal LocalSignature(Cci.ITypeReference valType, LocalSlotConstraints constraints) 127LocalSlotConstraints constraints, 167LocalSlotConstraints constraints, 195LocalSlotConstraints constraints,
CodeGen\SignatureOnlyLocalDefinition.cs (1)
65public LocalSlotConstraints Constraints
CodeGen\VariableSlotAllocator.cs (1)
24LocalSlotConstraints constraints,
Emit\EditAndContinue\EncLocalInfo.cs (3)
17public readonly LocalSlotConstraints Constraints; 27Constraints = LocalSlotConstraints.None; 32public EncLocalInfo(LocalSlotDebugInfo slotInfo, Cci.ITypeReference type, LocalSlotConstraints constraints, byte[]? signature)
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
153LocalSlotConstraints constraints,
MetadataReader\MetadataDecoder.cs (9)
83internal readonly LocalSlotConstraints Constraints; 85internal LocalInfo(TypeSymbol type, ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers, LocalSlotConstraints constraints, byte[] signatureOpt) 100public bool IsByRef => (Constraints & LocalSlotConstraints.ByRef) != 0; 102public bool IsPinned => (Constraints & LocalSlotConstraints.Pinned) != 0; 951var constraints = LocalSlotConstraints.None; 956constraints |= LocalSlotConstraints.Pinned; 962constraints |= LocalSlotConstraints.ByRef; 967if (typeCode == SignatureTypeCode.TypedReference && constraints != LocalSlotConstraints.None)
PEWriter\Members.cs (1)
324LocalSlotConstraints Constraints { get; }
Microsoft.CodeAnalysis.CSharp (14)
CodeGen\CodeGenerator.cs (3)
169var slotConstraints = _method.RefKind == RefKind.None 170? LocalSlotConstraints.None 171: LocalSlotConstraints.ByRef;
CodeGen\EmitExpression.cs (2)
2834assignmentOperator.IsRef ? LocalSlotConstraints.ByRef : LocalSlotConstraints.None);
CodeGen\EmitStatement.cs (9)
1761LocalSlotConstraints constraints; 1769constraints = LocalSlotConstraints.ByRef | LocalSlotConstraints.Pinned; 1781constraints = (local.IsPinned ? LocalSlotConstraints.Pinned : LocalSlotConstraints.None) | 1782(local.RefKind != RefKind.None ? LocalSlotConstraints.ByRef : LocalSlotConstraints.None); 1877private LocalDefinition AllocateTemp(TypeSymbol type, SyntaxNode syntaxNode, LocalSlotConstraints slotConstraints = LocalSlotConstraints.None)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (8)
EEAssemblyBuilder.cs (8)
99LocalSlotConstraints constraints; 103constraints = LocalSlotConstraints.ByRef | LocalSlotConstraints.Pinned; 108constraints = (local.IsPinned ? LocalSlotConstraints.Pinned : LocalSlotConstraints.None) | 109((local.RefKind == RefKind.None) ? LocalSlotConstraints.None : LocalSlotConstraints.ByRef); 145LocalSlotConstraints constraints,
Microsoft.CodeAnalysis.VisualBasic (6)
CodeGen\EmitStatement.vb (6)
1281Dim constraints = If(local.IsByRef, LocalSlotConstraints.ByRef, LocalSlotConstraints.None) Or 1282If(local.IsPinned, LocalSlotConstraints.Pinned, LocalSlotConstraints.None) 1388LocalSlotConstraints.None) 1459constraints:=LocalSlotConstraints.None,
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (5)
EEAssemblyBuilder.vb (5)
109Dim constraints = If(local.IsPinned, LocalSlotConstraints.Pinned, LocalSlotConstraints.None) Or 110If(local.IsByRef, LocalSlotConstraints.ByRef, LocalSlotConstraints.None) 150constraints As LocalSlotConstraints,