2 writes to _service
Microsoft.CodeAnalysis.Features (2)
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
53
_service
= service;
72
_service
= service;
18 references to _service
Microsoft.CodeAnalysis.Features (18)
GenerateType\AbstractGenerateTypeService.Editor.cs (11)
100
var documentName = GetTypeName(_state) +
_service
.DefaultFileExtension;
166
var rootNamespace =
_service
.GetRootNamespace(_semanticDocument.SemanticModel.Compilation.Options).Trim();
199
targetLanguageService =
_service
;
362
updatedSolution = await
_service
.TryAddUsingsOrImportToDocumentAsync(
420
enclosingNamespaceGeneratedTypeToAddAndLocation = await
_service
.GetOrGenerateEnclosingNamespaceSymbolAsync(
451
updatedSolution = await
_service
.TryAddUsingsOrImportToDocumentAsync(
485
else if (!
_service
.IsSimpleName(_state.NameOrMemberAccessExpression))
497
?
_service
.GetRootNamespace(_generateTypeOptionsResult.Project.CompilationOptions).Trim()
565
var types = argumentList.Select(a =>
_service
.DetermineArgumentType(_semanticDocument.SemanticModel, a, _cancellationToken));
625
_service
.IsConversionImplicit(_semanticDocument.SemanticModel.Compilation, parameterType, field.Type);
633
_service
.IsConversionImplicit(_semanticDocument.SemanticModel.Compilation, parameterType, property.Type);
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (7)
118
if (!
_service
.TryGetArgumentList(_state.ObjectCreationExpressionOpt, out var argumentList))
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);