1 implementation of FormatString
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8444
public IOperation?
FormatString
{ get; }
13 references to FormatString
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
7054
if (interpolation.
FormatString
!= null)
7056
Debug.Assert(interpolation.
FormatString
is ILiteralOperation or IConversionOperation { Operand: ILiteralOperation });
7057
rewrittenFormatString = VisitRequired(interpolation.
FormatString
, argument: null);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
43
if (interpolation.
FormatString
== null)
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
43
if (interpolation.
FormatString
== null)
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\OperationTreeVerifier.cs (4)
1925
Visit(operation.
FormatString
, "FormatString");
1927
if (operation.
FormatString
!= null && operation.
FormatString
.Kind != OperationKind.Literal)
1929
Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.
FormatString
).Operand.Kind);
Compilation\TestOperationVisitor.cs (4)
1306
if (operation.
FormatString
!= null)
1308
if (operation.
FormatString
.Kind != OperationKind.Literal)
1310
Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.
FormatString
).Operand.Kind);
1312
children = children.Concat(new[] { operation.
FormatString
});