1 write to WithElement
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6475
this.
WithElement
= withElement;
25 references to WithElement
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Conversions.cs (18)
868
hasWithElement: _node.
WithElement
!= null,
987
var collectionCreation = bindCollectionConstructorConstruction(in this, _node.
WithElement
?.Syntax ?? _node.Syntax, constructor);
1040
var withElement = @this._node.
WithElement
;
1165
if (_node.
WithElement
!= null)
1170
_node.
WithElement
.Syntax.GetFirstToken().GetLocation(),
1180
if (_node.
WithElement
?.Arguments.Length > 0 &&
1185
_diagnostics.Add(ErrorCode.ERR_CollectionArgumentsMustBeEmpty, _node.
WithElement
.Syntax.GetFirstToken().GetLocation());
1196
var withElement = @this._node.
WithElement
;
1302
var analyzedArguments = @this._node.
WithElement
is null
1304
: AnalyzedArguments.GetInstance(@this._node.
WithElement
.Arguments, @this._node.
WithElement
.ArgumentRefKindsOpt, @this._node.
WithElement
.ArgumentNamesOpt);
1309
var syntax = @this._node.
WithElement
?.Syntax ?? @this._node.Syntax;
1397
WasCompilerGenerated = @this._node.
WithElement
is null,
2237
var withArguments = node.
WithElement
?.Arguments ?? [];
2245
? new BoundBadExpression(node.
WithElement
!.Syntax, LookupResultKind.Empty, symbols: [], naturalWithArguments, CreateErrorType())
2313
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)
6486
if (withElement != this.
WithElement
|| elements != this.Elements)
10640
this.Visit(node.
WithElement
);
12054
BoundUnconvertedWithElement? withElement = (BoundUnconvertedWithElement?)this.Visit(node.
WithElement
);
14346
BoundUnconvertedWithElement? withElement = (BoundUnconvertedWithElement?)this.Visit(node.
WithElement
);
16784
new TreeDumperNode("withElement", null, new TreeDumperNode[] { Visit(node.
WithElement
, null) }),