4 references to DisposeMethodName
Microsoft.CodeAnalysis (1)
Symbols\ISymbolExtensions.cs (1)
158
IMethodSymbol? disposeMethod = TryFindPublicVoidParameterlessMethod(scopeType, WellKnownMemberNames.
DisposeMethodName
);
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Statements.cs (1)
761
hasAwait ? WellKnownMemberNames.DisposeAsyncMethodName : WellKnownMemberNames.
DisposeMethodName
,
Binder\LockBinder.cs (2)
94
var disposeMethod = TryFindPublicVoidParameterlessMethod(scopeType, WellKnownMemberNames.
DisposeMethodName
);
97
Error(diagnostics, ErrorCode.ERR_MissingPredefinedMember, syntax, $"{LockTypeFullName}+{WellKnownMemberNames.LockScopeTypeName}", WellKnownMemberNames.
DisposeMethodName
);