1 implementation of IArrayCreationOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6037internal sealed partial class ArrayCreationOperation : Operation, IArrayCreationOperation
37 references to IArrayCreationOperation
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
97 public override MultiValue VisitArrayCreation (IArrayCreationOperation operation, StateValue state)
Microsoft.Analyzers.Extra (6)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (6)
401var arrayCreation = (IArrayCreationOperation)paramsArg.Value; 450var arrayCreation = (IArrayCreationOperation)paramsArg.Value; 506var arrayCreation = (IArrayCreationOperation)arg.Value;
Microsoft.CodeAnalysis (6)
Generated\OperationKind.Generated.cs (1)
98/// <summary>Indicates an <see cref="IArrayCreationOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
10976public override IOperation VisitArrayCreation(IArrayCreationOperation operation, object? argument) 11452public virtual void VisitArrayCreation(IArrayCreationOperation operation) => DefaultVisit(operation); 11591public virtual TResult? VisitArrayCreation(IArrayCreationOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (2)
6305if (argument is { ArgumentKind: ArgumentKind.ParamArray, Value: IArrayCreationOperation array }) 6470public override IOperation VisitArrayCreation(IArrayCreationOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
1204private IArrayCreationOperation CreateBoundArrayCreationOperation(BoundArrayCreation boundArrayCreation)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (2)
62var arrayCreationOperation = (IArrayCreationOperation)context.Operation;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (5)
91private static IArrayCreationOperation GetArrayCreationOperation(SemanticModel semanticModel, Diagnostic diagnostic, CancellationToken cancellationToken) 119.OfType<IArrayCreationOperation>() 124return (IArrayCreationOperation)operation; 126static IArrayCreationOperation FindArrayCreationOperationAncestor(IOperation operation) 130if (operation is IArrayCreationOperation arrayOperation)
Microsoft.CodeAnalysis.CSharp.Features (7)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (2)
62var arrayCreationOperation = (IArrayCreationOperation)context.Operation;
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (5)
91private static IArrayCreationOperation GetArrayCreationOperation(SemanticModel semanticModel, Diagnostic diagnostic, CancellationToken cancellationToken) 119.OfType<IArrayCreationOperation>() 124return (IArrayCreationOperation)operation; 126static IArrayCreationOperation FindArrayCreationOperationAncestor(IOperation operation) 130if (operation is IArrayCreationOperation arrayOperation)
Microsoft.CodeAnalysis.Features (1)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
504&& argumentExpressionOperation is IArrayCreationOperation { Initializer: { } initializer }
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\OperationTreeVerifier.cs (2)
1609public override void VisitArrayCreation(IArrayCreationOperation operation) 1611LogString(nameof(IArrayCreationOperation));
Compilation\TestOperationVisitor.cs (1)
1136public override void VisitArrayCreation(IArrayCreationOperation operation)
Diagnostics\EmptyArrayAnalyzer.cs (2)
66IArrayCreationOperation arrayCreation = (IArrayCreationOperation)operationContext.Operation;
Diagnostics\OperationTestAnalyzer.cs (3)
562if (argument.Value is IArrayCreationOperation arrayArgument) 1106if (argument.Value is IArrayCreationOperation arrayValue) 1133if (argument.Value is IArrayCreationOperation arrayValue)