1 write to Parts
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7782
this.
Parts
= parts;
35 references to Parts
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (1)
5663
foreach (var part in interpolatedString.
Parts
)
Binder\Binder_InterpolatedString.cs (13)
245
Debug.Assert(unconvertedInterpolatedString.
Parts
.All(static part => part.Type is null or { SpecialType: SpecialType.System_String }));
249
if ((unconvertedInterpolatedString.
Parts
.Length > 4 || !AllInterpolatedStringPartsAreStrings(unconvertedInterpolatedString.
Parts
)) &&
432
=> !unconvertedInterpolatedString.
Parts
.ContainsAwaitExpression()
433
&& unconvertedInterpolatedString.
Parts
.All(p => p is not BoundStringInsert { Value.Type.TypeKind: TypeKind.Dynamic });
476
partsArrayBuilder.Add(unconvertedInterpolatedString.
Parts
);
584
ImmutableArray.Create(unconvertedInterpolatedString.
Parts
),
615
partsArrayBuilder.Add(unconvertedInterpolatedString.
Parts
);
854
for (int i = 0; i < unconvertedInterpolatedString.
Parts
.Length; i++)
856
var part = unconvertedInterpolatedString.
Parts
[i];
874
partsBuilder = ArrayBuilder<BoundExpression>.GetInstance(unconvertedInterpolatedString.
Parts
.Length);
875
partsBuilder.AddRange(unconvertedInterpolatedString.
Parts
, i);
892
return partsBuilder?.ToImmutableAndFree() ?? unconvertedInterpolatedString.
Parts
;
FlowAnalysis\AbstractFlowPass.cs (4)
2722
if (node.
Parts
.IsEmpty)
2731
parts = node.
Parts
.AsSpan();
2735
VisitRvalue(node.
Parts
[0]);
2737
parts = node.
Parts
.AsSpan()[1..];
Generated\BoundNodes.xml.Generated.cs (10)
7806
if (parts != this.
Parts
|| constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
7834
if (!interpolationData.Equals(this.InterpolationData) || parts != this.
Parts
|| constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
10658
this.VisitList(node.
Parts
);
10663
this.VisitList(node.
Parts
);
12017
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
12023
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
14616
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
14633
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
16851
new TreeDumperNode("parts", null, from x in node.
Parts
select Visit(x, null)),
16861
new TreeDumperNode("parts", null, from x in node.
Parts
select Visit(x, null)),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
168
partsBuilder.AddRange(interpolatedString.
Parts
);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
29
BoundInterpolatedString { InterpolationData: { BuilderType: not null } d,
Parts
: { } p } => (d, p),
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (3)
149
return LowerPartsToString(data, node.
Parts
, node.Syntax, node.Type);
158
int length = node.
Parts
.Length;
168
var part = node.
Parts
[i];
Operations\CSharpOperationFactory.cs (2)
2263
ImmutableArray<IInterpolatedStringContentOperation> parts = CreateBoundInterpolatedStringContentOperation(boundInterpolatedString.
Parts
, positionInfo);
2445
var parts = interpolatedString.
Parts
.SelectAsArray(