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)
942var result = new BoundDup(this.Syntax, refKind, type, this.HasErrors);
20 references to BoundDup
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (1)
5754var 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)
938public BoundDup Update(RefKind refKind, TypeSymbol? type) 942var result = new BoundDup(this.Syntax, refKind, type, this.HasErrors); 8868return VisitDup((BoundDup)node, arg); 9322public virtual R VisitDup(BoundDup node, A arg) => this.DefaultVisit(node, arg); 9558public virtual BoundNode? VisitDup(BoundDup node) => this.DefaultVisit(node); 9814public override BoundNode? VisitDup(BoundDup node) => null; 10886public override BoundNode? VisitDup(BoundDup node) 12419public override BoundNode? VisitDup(BoundDup node) 12426BoundDup updatedNode = node.Update(node.RefKind, infoAndType.Type); 15092public override TreeDumperNode VisitDup(BoundDup node, object? arg) => new TreeDumperNode("dup", null, new TreeDumperNode[]