2 writes to _cancellationToken
Microsoft.CodeAnalysis.Features (2)
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
58
_cancellationToken
= cancellationToken;
77
_cancellationToken
= cancellationToken;
24 references to _cancellationToken
Microsoft.CodeAnalysis.Features (24)
GenerateType\AbstractGenerateTypeService.Editor.cs (18)
280
var newSemanticModel = await newDocument.GetSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
281
var enclosingNamespace = newSemanticModel.GetEnclosingNamespace(0,
_cancellationToken
);
300
_cancellationToken
).ConfigureAwait(false);
317
var cleanupOptions = await codeGenResult.GetCodeCleanupOptionsAsync(
_cancellationToken
).ConfigureAwait(false);
318
codeGenResult = await formattingService.FormatNewDocumentAsync(codeGenResult, _semanticDocument.Document, cleanupOptions,
_cancellationToken
).ConfigureAwait(false);
324
var newRoot = await codeGenResult.GetSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
334
_cancellationToken
).ConfigureAwait(false);
389
_state.SimpleName.SpanStart,
_cancellationToken
);
398
_cancellationToken
).ConfigureAwait(false);
409
var root = await generateTypeOptionsResult.ExistingDocument.GetSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
425
_cancellationToken
).ConfigureAwait(false);
434
_cancellationToken
).ConfigureAwait(false);
444
_cancellationToken
).ConfigureAwait(false);
445
var newRoot = await codeGenResult.GetSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
457
_cancellationToken
).ConfigureAwait(false);
557
_cancellationToken
)
565
var types = argumentList.Select(a => _service.DetermineArgumentType(_semanticDocument.SemanticModel, a,
_cancellationToken
));
609
var fieldNamingRule = await _semanticDocument.Document.GetApplicableNamingRuleAsync(SymbolKind.Field, Accessibility.Private,
_cancellationToken
).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (6)
178
if (_service.TryGenerateProperty(property, _semanticDocument.SemanticModel, typeInference,
_cancellationToken
, out var generatedProperty))
190
var availableTypeParameters = _service.GetAvailableTypeParameters(_state, _semanticDocument.SemanticModel, _intoNamespace,
_cancellationToken
);
192
var parameterNames = _service.GenerateParameterNames(_semanticDocument.SemanticModel, argumentList,
_cancellationToken
);
270
=> _service.GetAccessibility(_state, _semanticDocument.SemanticModel, _intoNamespace,
_cancellationToken
);
309
=> _service.GetTypeParameters(_state, _semanticDocument.SemanticModel,
_cancellationToken
);
322
var availableInnerTypeParameters = _service.GetTypeParameters(_state, _semanticDocument.SemanticModel,
_cancellationToken
);