12 references to IsConstructor
Microsoft.CodeAnalysis.CSharp (12)
Compiler\MethodCompiler.cs (1)
2020
if (reportNullableDiagnostics && method.
IsConstructor
() && method.IsImplicitlyDeclared && nullableInitialState is object)
FlowAnalysis\NullableWalker.cs (7)
615
if ((_symbol as MethodSymbol)?.
IsConstructor
() != true || _useConstructorExitWarnings)
646
if (method.
IsConstructor
())
812
if (method.
IsConstructor
())
1511
Debug.Assert(method.
IsConstructor
());
2246
&& constructor.
IsConstructor
()
2783
if (method.
IsConstructor
() && method.IsStatic == backingField.IsStatic)
2950
else if (methodSymbol.
IsConstructor
())
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
286
Debug.Assert(_factory.CurrentFunction.
IsConstructor
());
Symbols\MemberSymbolExtensions.cs (1)
632
return methodSymbol.
IsConstructor
()
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2219
(method1.
IsConstructor
() ? method1.ContainingType.Name : method1.Name);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1032
Debug.Assert(!this.
IsConstructor
()); // Constructors should use IsNullableEnabledForConstructorsAndInitializers() instead.