1 implementation of IObjectOrCollectionInitializerOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6690internal sealed partial class ObjectOrCollectionInitializerOperation : Operation, IObjectOrCollectionInitializerOperation
50 references to IObjectOrCollectionInitializerOperation
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
157IObjectOrCollectionInitializerOperation initializer)
Microsoft.CodeAnalysis (28)
Generated\OperationKind.Generated.cs (1)
122/// <summary>Indicates an <see cref="IObjectOrCollectionInitializerOperation"/>.</summary>
Generated\Operations.Generated.cs (19)
1283IObjectOrCollectionInitializerOperation? Initializer { get; } 1316IObjectOrCollectionInitializerOperation? Initializer { get; } 1759IObjectOrCollectionInitializerOperation Initializer { get; } 1863IObjectOrCollectionInitializerOperation? Initializer { get; } 3400IObjectOrCollectionInitializerOperation? Initializer { get; } 3625IObjectOrCollectionInitializerOperation Initializer { get; } 5917internal ObjectCreationOperation(IMethodSymbol? constructor, IObjectOrCollectionInitializerOperation? initializer, ImmutableArray<IArgumentOperation> arguments, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, ConstantValue? constantValue, bool isImplicit) 5927public IObjectOrCollectionInitializerOperation? Initializer { get; } 5987internal TypeParameterObjectCreationOperation(IObjectOrCollectionInitializerOperation? initializer, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 5993public IObjectOrCollectionInitializerOperation? Initializer { get; } 6748internal MemberInitializerOperation(IOperation initializedMember, IObjectOrCollectionInitializerOperation initializer, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 6756public IObjectOrCollectionInitializerOperation Initializer { get; } 9650internal NoPiaObjectCreationOperation(IObjectOrCollectionInitializerOperation? initializer, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 9656public IObjectOrCollectionInitializerOperation? Initializer { get; } 10024internal WithOperation(IOperation operand, IMethodSymbol? cloneMethod, IObjectOrCollectionInitializerOperation initializer, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) 10034public IObjectOrCollectionInitializerOperation Initializer { get; } 11036public override IOperation VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation, object? argument) 11464public virtual void VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation) => DefaultVisit(operation); 11603public virtual TResult? VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (6)
6015private IOperation HandleObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation? initializer, IOperation objectCreation) 6032void visitInitializer(IObjectOrCollectionInitializerOperation initializerOperation, IOperation initializedInstance) 6290return memberInitializer.Initializer is IObjectOrCollectionInitializerOperation initializer 6357public override IOperation VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation, int? captureIdForResult) 7455var initializer = (IObjectOrCollectionInitializerOperation)children.Last();
Operations\OperationNodes.cs (2)
252public DynamicObjectCreationOperation(IObjectOrCollectionInitializerOperation? initializer, ImmutableArray<IOperation> arguments, ImmutableArray<string?> argumentNames, ImmutableArray<RefKind> argumentRefKinds, SemanticModel? semanticModel, SyntaxNode syntax, ITypeSymbol? type, bool isImplicit) : 258public IObjectOrCollectionInitializerOperation? Initializer { get; }
Microsoft.CodeAnalysis.CSharp (14)
Operations\CSharpOperationFactory.cs (14)
731IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(boundObjectCreationExpression.InitializerExpressionOpt); 739IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)Create(boundWithExpression.InitializerExpression); 749IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(boundDynamicObjectCreationExpression.InitializerExpressionOpt); 831private IObjectOrCollectionInitializerOperation CreateBoundObjectInitializerExpressionOperation(BoundObjectInitializerExpression boundObjectInitializerExpression) 840private IObjectOrCollectionInitializerOperation CreateBoundCollectionInitializerExpressionOperation(BoundCollectionInitializerExpression boundCollectionInitializerExpression) 1348IObjectOrCollectionInitializerOperation initializer = (IObjectOrCollectionInitializerOperation)Create(boundAssignmentOperator.Right); 1415IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(boundNewT.InitializerExpressionOpt); 1424IObjectOrCollectionInitializerOperation? initializer = (IObjectOrCollectionInitializerOperation?)Create(creation.InitializerExpressionOpt);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
374Initializer: IObjectOrCollectionInitializerOperation initializer,
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
374Initializer: IObjectOrCollectionInitializerOperation initializer,
Microsoft.CodeAnalysis.Features (2)
SignatureHelp\CommonSignatureHelpUtilities.cs (2)
160var parentOperation = semanticModel.GetOperation(initializer.Parent, cancellationToken) as IObjectOrCollectionInitializerOperation;
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (2)
1495public override void VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation) 1497LogString(nameof(IObjectOrCollectionInitializerOperation));
Compilation\TestOperationVisitor.cs (1)
1084public override void VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation)