1 write to Parts
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7783
this.
Parts
= parts;
35 references to Parts
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (1)
5645
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)
2726
if (node.
Parts
.IsEmpty)
2735
parts = node.
Parts
.AsSpan();
2739
VisitRvalue(node.
Parts
[0]);
2741
parts = node.
Parts
.AsSpan()[1..];
Generated\BoundNodes.xml.Generated.cs (10)
7807
if (parts != this.
Parts
|| constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
7835
if (!interpolationData.Equals(this.InterpolationData) || parts != this.
Parts
|| constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
10695
this.VisitList(node.
Parts
);
10700
this.VisitList(node.
Parts
);
12054
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
12060
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
14653
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
14670
ImmutableArray<BoundExpression> parts = this.VisitList(node.
Parts
);
16888
new TreeDumperNode("parts", null, from x in node.
Parts
select Visit(x, null)),
16898
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(