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