1 instantiation of Releaser
Microsoft.CodeAnalysis (1)
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
31
return new
Releaser
(obj);
35 references to Releaser
Microsoft.CodeAnalysis (35)
DiagnosticAnalyzer\AnalyzerExecutor.cs (9)
325
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
375
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
480
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
527
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
576
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
616
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
842
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
975
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
1076
using
var
_ = PooledDelegates.GetPooledFunction((d, ct, arg) => arg.self.IsSupportedDiagnostic(arg.analyzer, d, ct), (self: this, analyzer), out Func<Diagnostic, CancellationToken, bool> isSupportedDiagnostic);
src\Dependencies\PooledObjects\PooledDelegates.cs (26)
22
private static
Releaser
GetPooledDelegate<TPooled, TArg, TUnboundDelegate, TBoundDelegate>(TUnboundDelegate unboundDelegate, TArg argument, out TBoundDelegate boundDelegate)
37
/// until the returned <see cref="
Releaser
"/> is disposed.
62
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
63
public static
Releaser
GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
69
/// until the returned <see cref="
Releaser
"/> is disposed.
95
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
96
public static
Releaser
GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
102
/// until the returned <see cref="
Releaser
"/> is disposed.
129
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
130
public static
Releaser
GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
136
/// until the returned <see cref="
Releaser
"/> is disposed.
164
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
165
public static
Releaser
GetPooledAction<T1, T2, T3, TArg>(Action<T1, T2, T3, TArg> unboundAction, TArg argument, out Action<T1, T2, T3> boundAction)
171
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
197
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
198
public static
Releaser
GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
206
public static
Releaser
GetPooledCreateValueCallback<TKey, TArg, TValue>(
216
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
243
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
244
public static
Releaser
GetPooledFunction<T1, TArg, TResult>(Func<T1, TArg, TResult> unboundFunction, TArg argument, out Func<T1, TResult> boundFunction)
250
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
278
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
279
public static
Releaser
GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction)
285
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
314
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
315
public static
Releaser
GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction)