1 write to Parts
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7464this.Parts = parts;
38 references to Parts
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder.ValueChecks.cs (1)
4531foreach (var part in interpolatedString.Parts)
Binder\Binder_InterpolatedString.cs (13)
243Debug.Assert(unconvertedInterpolatedString.Parts.All(static part => part.Type is null or { SpecialType: SpecialType.System_String })); 248if (unconvertedInterpolatedString.Parts.Length <= 4 && AllInterpolatedStringPartsAreStrings(unconvertedInterpolatedString.Parts)) 294=> !unconvertedInterpolatedString.Parts.ContainsAwaitExpression() 295&& unconvertedInterpolatedString.Parts.All(p => p is not BoundStringInsert { Value.Type.TypeKind: TypeKind.Dynamic }); 337partsArrayBuilder.Add(unconvertedInterpolatedString.Parts); 438ImmutableArray.Create(unconvertedInterpolatedString.Parts), 469partsArrayBuilder.Add(unconvertedInterpolatedString.Parts); 686for (int i = 0; i < unconvertedInterpolatedString.Parts.Length; i++) 688var part = unconvertedInterpolatedString.Parts[i]; 706partsBuilder = ArrayBuilder<BoundExpression>.GetInstance(unconvertedInterpolatedString.Parts.Length); 707partsBuilder.AddRange(unconvertedInterpolatedString.Parts, i); 724return partsBuilder?.ToImmutableAndFree() ?? unconvertedInterpolatedString.Parts;
FlowAnalysis\AbstractFlowPass.cs (4)
2530if (node.Parts.IsEmpty) 2539parts = node.Parts.AsSpan(); 2543VisitRvalue(node.Parts[0]); 2545parts = node.Parts.AsSpan()[1..];
Generated\BoundNodes.xml.Generated.cs (10)
7488if (parts != this.Parts || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7516if (!interpolationData.Equals(this.InterpolationData) || parts != this.Parts || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10279this.VisitList(node.Parts); 10284this.VisitList(node.Parts); 11583ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 11589ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 14079ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 14096ImmutableArray<BoundExpression> parts = this.VisitList(node.Parts); 16231new TreeDumperNode("parts", null, from x in node.Parts select Visit(x, null)), 16241new TreeDumperNode("parts", null, from x in node.Parts select Visit(x, null)),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
166partsBuilder.AddRange(interpolatedString.Parts);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
29BoundInterpolatedString { InterpolationData: { } d, Parts: { } p } => (d, p),
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (6)
189foreach (var part in node.Parts) 211int n = node.Parts.Length - 1; 218var part = node.Parts[i]; 285return LowerPartsToString(data, node.Parts, node.Syntax, node.Type); 294int length = node.Parts.Length; 304var part = node.Parts[i];
Operations\CSharpOperationFactory.cs (2)
2146ImmutableArray<IInterpolatedStringContentOperation> parts = CreateBoundInterpolatedStringContentOperation(boundInterpolatedString.Parts, positionInfo ?? boundInterpolatedString.InterpolationData?.PositionInfo[0]); 2328var parts = interpolatedString.Parts.SelectAsArray(