7 instantiations of IntermediateType
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
UtilityTest\SpecializedTasksTests.cs (7)
76Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 90Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 109Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 132return new IntermediateType(); 159return new IntermediateType(); 524Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 544return new IntermediateType();
44 references to IntermediateType
Microsoft.CodeAnalysis.Workspaces.UnitTests (44)
UtilityTest\SpecializedTasksTests.cs (44)
76Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 77Func<IntermediateType, StateType, ResultType> transform = (_, _) => new(); 83Assert.Throws<ArgumentNullException>("transform", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync<StateType, IntermediateType, ResultType>(func, null!, arg, cancellationToken)); 90Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 91Func<IntermediateType, StateType, ResultType> transform = (_, _) => new(); 109Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 110Func<IntermediateType, StateType, ResultType> transform = (_, _) => 128Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 134Func<IntermediateType, StateType, ResultType> transform = (_, _) => new(); 155Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 161Func<IntermediateType, StateType, ResultType> transform = (_, _) => 186Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(cancellationToken)); 187Func<IntermediateType, StateType, ResultType> transform = (_, _) => 211Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 218Func<IntermediateType, StateType, ResultType> transform = (_, _) => 243Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(unexpectedCts.Token)); 244Func<IntermediateType, StateType, ResultType> transform = (_, _) => 271Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 278Func<IntermediateType, StateType, ResultType> transform = (_, _) => 310Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(unexpectedCts.Token)); 311Func<IntermediateType, StateType, ResultType> transform = (_, _) => 338Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 345Func<IntermediateType, StateType, ResultType> transform = (_, _) => 369Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => throw fault; 370Func<IntermediateType, StateType, ResultType> transform = (_, _) => 391Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromException<IntermediateType>(fault)); 392Func<IntermediateType, StateType, ResultType> transform = (_, _) => 414Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 420Func<IntermediateType, StateType, ResultType> transform = (_, _) => 446Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => throw fault; 447Func<IntermediateType, StateType, ResultType> transform = (_, _) => 471Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromException<IntermediateType>(fault)); 472Func<IntermediateType, StateType, ResultType> transform = (_, _) => 497Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 503Func<IntermediateType, StateType, ResultType> transform = (_, _) => 524Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType()); 525Func<IntermediateType, StateType, ResultType> transform = (_, _) => throw fault; 540Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) => 546Func<IntermediateType, StateType, ResultType> transform = (_, _) => throw fault;