1 implementation of IInterpolatedStringOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6577internal sealed partial class InterpolatedStringOperation : Operation, IInterpolatedStringOperation
31 references to IInterpolatedStringOperation
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (1)
52else if (children[0] is IInterpolatedStringOperation inter)
Microsoft.CodeAnalysis (14)
Generated\OperationKind.Generated.cs (1)
118/// <summary>Indicates an <see cref="IInterpolatedStringOperation"/>.</summary>
Generated\Operations.Generated.cs (8)
3651/// True if the AppendLiteral or AppendFormatted calls in nested <see cref="IInterpolatedStringOperation.Parts" /> return <see langword="bool" />. When that is true, each part 3655/// when this is true and <see cref="HandlerCreationHasSuccessParameter" /> is true, then the first part in nested <see cref="IInterpolatedStringOperation.Parts" /> is conditionally 3663/// The interpolated string expression or addition operation that makes up the content of this string. This is either an <see cref="IInterpolatedStringOperation" /> 3682/// The interpolated string expression or addition operation on the left side of the operator. This is either an <see cref="IInterpolatedStringOperation" /> 3687/// The interpolated string expression or addition operation on the right side of the operator. This is either an <see cref="IInterpolatedStringOperation" /> 11026public override IOperation VisitInterpolatedString(IInterpolatedStringOperation operation, object? argument) 11462public virtual void VisitInterpolatedString(IInterpolatedStringOperation operation) => DefaultVisit(operation); 11601public virtual TResult? VisitInterpolatedString(IInterpolatedStringOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (5)
6894if (creation.Content is IInterpolatedStringOperation interpolatedString) 6908case IInterpolatedStringOperation interpolatedString1: 6919case IInterpolatedStringOperation interpolatedString1: 6933static void appendStringCalls(IInterpolatedStringOperation interpolatedString, ArrayBuilder<IInterpolatedStringAppendOperation> appendCalls) 7025public override IOperation VisitInterpolatedString(IInterpolatedStringOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (2)
160var interpolatedStringOperation = AncestorsAndSelf(operation).OfType<IInterpolatedStringOperation>().FirstOrDefault();
Microsoft.CodeAnalysis.CSharp (2)
Operations\CSharpOperationFactory.cs (2)
1547static IInterpolatedStringOperation createInterpolatedStringOperand( 2254private IInterpolatedStringOperation CreateBoundInterpolatedStringExpressionOperation(BoundInterpolatedString boundInterpolatedString, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo = null)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1151if (originalSemanticModel.GetOperation(currentOld, cancellationToken) is not IInterpolatedStringOperation oldInterpolationOperation) 1154if (rewrittenSemanticModel.GetOperation(currentNew, cancellationToken) is not IInterpolatedStringOperation newInterpolationOperation)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1151if (originalSemanticModel.GetOperation(currentOld, cancellationToken) is not IInterpolatedStringOperation oldInterpolationOperation) 1154if (rewrittenSemanticModel.GetOperation(currentNew, cancellationToken) is not IInterpolatedStringOperation newInterpolationOperation)
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (2)
160var interpolatedStringOperation = AncestorsAndSelf(operation).OfType<IInterpolatedStringOperation>().FirstOrDefault();
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\OperationTreeVerifier.cs (2)
1880public override void VisitInterpolatedString(IInterpolatedStringOperation operation) 1882LogString(nameof(IInterpolatedStringOperation));
Compilation\TestOperationVisitor.cs (4)
1281public override void VisitInterpolatedString(IInterpolatedStringOperation operation) 1324Assert.True(operation.Content is IInterpolatedStringAdditionOperation or IInterpolatedStringOperation); 1333Assert.True(operation.Left is IInterpolatedStringAdditionOperation or IInterpolatedStringOperation); 1334Assert.True(operation.Right is IInterpolatedStringAdditionOperation or IInterpolatedStringOperation);