1 write to WithElement
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6510
this.
WithElement
= withElement;
26 references to WithElement
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Conversions.cs (19)
918
hasWithElement: _node.
WithElement
!= null,
1030
Debug.Assert(_node.
WithElement
is null);
1038
var collectionCreation = bindCollectionConstructorConstruction(in this, _node.
WithElement
?.Syntax ?? _node.Syntax, constructor);
1091
var withElement = @this._node.
WithElement
;
1225
if (_node.
WithElement
!= null)
1230
_node.
WithElement
.Syntax.GetFirstToken().GetLocation(),
1240
if (_node.
WithElement
?.Arguments.Length > 0 &&
1245
_diagnostics.Add(ErrorCode.ERR_CollectionArgumentsMustBeEmpty, _node.
WithElement
.Syntax.GetFirstToken().GetLocation());
1256
var withElement = @this._node.
WithElement
;
1362
var analyzedArguments = @this._node.
WithElement
is null
1364
: AnalyzedArguments.GetInstance(@this._node.
WithElement
.Arguments, @this._node.
WithElement
.ArgumentRefKindsOpt, @this._node.
WithElement
.ArgumentNamesOpt);
1369
var syntax = @this._node.
WithElement
?.Syntax ?? @this._node.Syntax;
1457
WasCompilerGenerated = @this._node.
WithElement
is null,
2301
var withArguments = node.
WithElement
?.Arguments ?? [];
2309
? new BoundBadExpression(node.
WithElement
!.Syntax, LookupResultKind.Empty, symbols: [], naturalWithArguments, CreateErrorType())
2377
node.
WithElement
, node.
WithElement
?.Syntax ?? node.Syntax, targetType, constructor: out _, isExpanded: out _, diagnostics))
Binder\Semantics\Conversions\Conversions.cs (2)
194
node.
WithElement
, node.
WithElement
?.Syntax ?? syntax, targetType, out constructor, out isExpanded, BindingDiagnosticBag.Discarded))
Generated\BoundNodes.xml.Generated.cs (5)
6521
if (withElement != this.
WithElement
|| elements != this.Elements)
10781
this.Visit(node.
WithElement
);
12212
BoundUnconvertedWithElement? withElement = (BoundUnconvertedWithElement?)this.Visit(node.
WithElement
);
14520
BoundUnconvertedWithElement? withElement = (BoundUnconvertedWithElement?)this.Visit(node.
WithElement
);
16995
new TreeDumperNode("withElement", null, new TreeDumperNode[] { Visit(node.
WithElement
, null) }),