1 implementation of Constructor
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5926public IMethodSymbol? Constructor { get; }
22 references to Constructor
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (2)
704 if (operation.Constructor == null) 707 return ProcessMethodCall (operation, operation.Constructor, null, operation.Arguments, state);
Microsoft.Analyzers.Extra (3)
CallAnalysis\CallAnalyzer.Handlers.cs (3)
85if (op.Constructor != null) 87if (_state.Ctors.TryGetValue(op.Constructor.OriginalDefinition, out var handlers)) 89if (op.Arguments.Length == op.Constructor.Parameters.Length)
Microsoft.Analyzers.Local (3)
CallAnalysis\CallAnalyzer.Handlers.cs (3)
85if (op.Constructor != null) 87if (_state.Ctors.TryGetValue(op.Constructor.OriginalDefinition, out var handlers)) 89if (op.Arguments.Length == op.Constructor.Parameters.Length)
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
63IObjectCreationOperation creation => creation.Constructor,
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
63IObjectCreationOperation creation => creation.Constructor,
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
5987IOperation initializedInstance = new ObjectCreationOperation(operation.Constructor, initializer: null, visitedArgs, semanticModel: null,
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
461var constructor = ((IObjectCreationOperation)operationContext.Operation).Constructor?.OriginalDefinition;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
375Constructor: IMethodSymbol { IsImplicitlyDeclared: true }
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
375Constructor: IMethodSymbol { IsImplicitlyDeclared: true }
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
461var constructor = ((IObjectCreationOperation)operationContext.Operation).Constructor?.OriginalDefinition;
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\ControlFlowGraphVerifier.cs (1)
909Constructor.ContainingType: INamedTypeSymbol ctorContainingType,
Compilation\OperationTreeVerifier.cs (1)
1443LogString($" (Constructor: {operation.Constructor?.ToTestDisplayString() ?? "<null>"})");
Compilation\TestOperationVisitor.cs (1)
1023var constructor = operation.Constructor;
Diagnostics\OperationTestAnalyzer.cs (1)
1124if (creation.Constructor == null)
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (1)
30if (operation.Constructor.Parameters.Length <= ordinal)
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (1)
30if (operation.Constructor.Parameters.Length <= ordinal)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (1)
30if (operation.Constructor.Parameters.Length <= ordinal)