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