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)
941
var result = new
BoundDup
(this.Syntax, refKind, type, this.HasErrors);
20 references to BoundDup
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (1)
5778
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)
937
public
BoundDup
Update(RefKind refKind, TypeSymbol? type)
941
var
result = new BoundDup(this.Syntax, refKind, type, this.HasErrors);
8867
return VisitDup((
BoundDup
)node, arg);
9321
public virtual R VisitDup(
BoundDup
node, A arg) => this.DefaultVisit(node, arg);
9557
public virtual BoundNode? VisitDup(
BoundDup
node) => this.DefaultVisit(node);
9813
public override BoundNode? VisitDup(
BoundDup
node) => null;
10885
public override BoundNode? VisitDup(
BoundDup
node)
12418
public override BoundNode? VisitDup(
BoundDup
node)
12425
BoundDup
updatedNode = node.Update(node.RefKind, infoAndType.Type);
15091
public override TreeDumperNode VisitDup(
BoundDup
node, object? arg) => new TreeDumperNode("dup", null, new TreeDumperNode[]