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