12 references to IsConstructor
Microsoft.CodeAnalysis.CSharp (12)
Compiler\MethodCompiler.cs (1)
2072if (reportNullableDiagnostics && method.IsConstructor() && method.IsImplicitlyDeclared && nullableInitialState is object)
FlowAnalysis\NullableWalker.cs (7)
658if ((_symbol as MethodSymbol)?.IsConstructor() != true || _useConstructorExitWarnings) 689if (method.IsConstructor()) 854if (method.IsConstructor()) 1553Debug.Assert(method.IsConstructor()); 2307&& constructor.IsConstructor() 2845if (method.IsConstructor() && method.IsStatic == backingField.IsStatic) 3012else if (methodSymbol.IsConstructor())
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
311Debug.Assert(_factory.CurrentFunction.IsConstructor());
Symbols\MemberSymbolExtensions.cs (1)
644return methodSymbol.IsConstructor()
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2294(method1.IsConstructor() ? method1.ContainingType.Name : method1.Name);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1026Debug.Assert(!this.IsConstructor()); // Constructors should use IsNullableEnabledForConstructorsAndInitializers() instead.