2 instantiations of BoundDup
Microsoft.CodeAnalysis.CSharp (2)
CodeGen\Optimizer.cs (1)
2134
return new
BoundDup
(node.Syntax, node.LocalSymbol.RefKind, node.Type);
Generated\BoundNodes.xml.Generated.cs (1)
942
var result = new
BoundDup
(this.Syntax, refKind, type, this.HasErrors);
20 references to BoundDup
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (1)
5754
var dupRefKind = ((
BoundDup
)expression).RefKind;
CodeGen\EmitAddress.cs (3)
38
Debug.Assert(((
BoundDup
)expression).RefKind != RefKind.None, "taking address of a stack value?");
39
return EmitDupAddress((
BoundDup
)expression, addressKind);
298
private LocalDefinition EmitDupAddress(
BoundDup
dup, AddressKind addressKind)
CodeGen\EmitExpression.cs (6)
135
EmitDupExpression((
BoundDup
)expression, used);
777
private void EmitDupExpression(
BoundDup
expression, bool used)
2226
return ((
BoundDup
)receiver).RefKind != RefKind.None;
2883
var
left = (
BoundDup
)assignmentTarget;
3110
Debug.Assert(((
BoundDup
)expression).RefKind != RefKind.None);
Generated\BoundNodes.xml.Generated.cs (10)
938
public
BoundDup
Update(RefKind refKind, TypeSymbol? type)
942
var
result = new BoundDup(this.Syntax, refKind, type, this.HasErrors);
8868
return VisitDup((
BoundDup
)node, arg);
9322
public virtual R VisitDup(
BoundDup
node, A arg) => this.DefaultVisit(node, arg);
9558
public virtual BoundNode? VisitDup(
BoundDup
node) => this.DefaultVisit(node);
9814
public override BoundNode? VisitDup(
BoundDup
node) => null;
10886
public override BoundNode? VisitDup(
BoundDup
node)
12419
public override BoundNode? VisitDup(
BoundDup
node)
12426
BoundDup
updatedNode = node.Update(node.RefKind, infoAndType.Type);
15092
public override TreeDumperNode VisitDup(
BoundDup
node, object? arg) => new TreeDumperNode("dup", null, new TreeDumperNode[]