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)
100var documentName = GetTypeName(_state) + _service.DefaultFileExtension; 166var rootNamespace = _service.GetRootNamespace(_semanticDocument.SemanticModel.Compilation.Options).Trim(); 199targetLanguageService = _service; 362updatedSolution = await _service.TryAddUsingsOrImportToDocumentAsync( 420enclosingNamespaceGeneratedTypeToAddAndLocation = await _service.GetOrGenerateEnclosingNamespaceSymbolAsync( 451updatedSolution = await _service.TryAddUsingsOrImportToDocumentAsync( 485else if (!_service.IsSimpleName(_state.NameOrMemberAccessExpression)) 497? _service.GetRootNamespace(_generateTypeOptionsResult.Project.CompilationOptions).Trim() 565var 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)
118if (!_service.TryGetArgumentList(_state.ObjectCreationExpressionOpt, out var argumentList)) 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);