12 references to IsConstructor
Microsoft.CodeAnalysis.CSharp (12)
Compiler\MethodCompiler.cs (1)
2021if (reportNullableDiagnostics && method.IsConstructor() && method.IsImplicitlyDeclared && nullableInitialState is object)
FlowAnalysis\NullableWalker.cs (7)
611if ((_symbol as MethodSymbol)?.IsConstructor() != true || _useConstructorExitWarnings) 642if (method.IsConstructor()) 808if (method.IsConstructor()) 1496Debug.Assert(method.IsConstructor()); 2231&& constructor.IsConstructor() 2768if (method.IsConstructor() && method.IsStatic == backingField.IsStatic) 2935else if (methodSymbol.IsConstructor())
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
286Debug.Assert(_factory.CurrentFunction.IsConstructor());
Symbols\MemberSymbolExtensions.cs (1)
570return methodSymbol.IsConstructor()
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2220(method1.IsConstructor() ? method1.ContainingType.Name : method1.Name);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1032Debug.Assert(!this.IsConstructor()); // Constructors should use IsNullableEnabledForConstructorsAndInitializers() instead.