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