2 writes to _semanticDocument
Microsoft.CodeAnalysis.Features (2)
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
54
_semanticDocument
= document;
73
_semanticDocument
= document;
48 references to _semanticDocument
Microsoft.CodeAnalysis.Features (48)
GenerateType\AbstractGenerateTypeService.Editor.cs (30)
108
_semanticDocument
.Project,
109
_semanticDocument
.Project,
129
if (
_semanticDocument
.Project.Language != _generateTypeOptionsResult.Project.Language)
149
_semanticDocument
.Project,
156
_semanticDocument
.Project,
166
var rootNamespace = _service.GetRootNamespace(
_semanticDocument
.SemanticModel.Compilation.Options).Trim();
197
if (
_semanticDocument
.Project.Language == LanguageNames.VisualBasic)
310
: [..
_semanticDocument
.Document.Folders];
312
if (newDocument.Project.Language ==
_semanticDocument
.Document.Project.Language)
318
codeGenResult = await formattingService.FormatNewDocumentAsync(codeGenResult,
_semanticDocument
.Document, cleanupOptions, _cancellationToken).ConfigureAwait(false);
363
updatedSolution, modifiedRoot: null,
_semanticDocument
.Document, _state.SimpleName,
388
var enclosingNamespace =
_semanticDocument
.SemanticModel.GetEnclosingNamespace(
391
var solution =
_semanticDocument
.Project.Solution;
395
new CodeGenerationContext(afterThisLocation:
_semanticDocument
.SyntaxTree.GetLocation(_state.SimpleName.Span))),
437
var solution =
_semanticDocument
.Project.Solution;
453
generateTypeOptionsResult.ExistingDocument.Id ==
_semanticDocument
.Document.Id ? newRoot : null,
454
_semanticDocument
.Document,
506
if ((
_semanticDocument
.Project == _generateTypeOptionsResult.Project &&
_semanticDocument
.Project.Language == LanguageNames.CSharp) ||
526
if ((
_semanticDocument
.Project == _generateTypeOptionsResult.Project &&
_semanticDocument
.Project.Language == LanguageNames.VisualBasic) ||
527
(
_semanticDocument
.Project != _generateTypeOptionsResult.Project && _targetProjectChangeInLanguage == TargetProjectChangeInLanguage.NoChange && _generateTypeOptionsResult.Project.Language == LanguageNames.VisualBasic) ||
550
var solution =
_semanticDocument
.Project.Solution;
565
var types = argumentList.Select(a => _service.DetermineArgumentType(
_semanticDocument
.SemanticModel, a, _cancellationToken));
571
var syntaxFacts =
_semanticDocument
.Document.GetRequiredLanguageService<ISyntaxFactsService>();
578
var compilation =
_semanticDocument
.SemanticModel.Compilation;
609
var fieldNamingRule = await
_semanticDocument
.Document.GetApplicableNamingRuleAsync(SymbolKind.Field, Accessibility.Private, _cancellationToken).ConfigureAwait(false);
625
_service.IsConversionImplicit(
_semanticDocument
.SemanticModel.Compilation, parameterType, field.Type);
633
_service.IsConversionImplicit(
_semanticDocument
.SemanticModel.Compilation, parameterType, property.Type);
655
return
_semanticDocument
.SemanticModel.Compilation.Assembly.IsSameAssemblyOrHasFriendAccessTo(
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (18)
149
var syntaxFacts =
_semanticDocument
.Document.GetLanguageService<ISyntaxFactsService>();
156
c => GenerateConstructorHelpers.CanDelegateTo(
_semanticDocument
, parameters, expressions, c));
162
var factory =
_semanticDocument
.Document.GetLanguageService<SyntaxGenerator>();
175
var typeInference =
_semanticDocument
.Document.GetLanguageService<ITypeInferenceService>();
178
if (_service.TryGenerateProperty(property,
_semanticDocument
.SemanticModel, typeInference, _cancellationToken, out var generatedProperty))
188
var factory =
_semanticDocument
.Document.GetLanguageService<SyntaxGenerator>();
190
var availableTypeParameters = _service.GetAvailableTypeParameters(_state,
_semanticDocument
.SemanticModel, _intoNamespace, _cancellationToken);
192
var parameterNames = _service.GenerateParameterNames(
_semanticDocument
.SemanticModel, argumentList, _cancellationToken);
198
var syntaxFacts =
_semanticDocument
.Document.GetLanguageService<ISyntaxFactsService>();
206
_semanticDocument
.SemanticModel.Compilation, availableTypeParameters);
223
_semanticDocument
.SemanticModel,
236
var factory =
_semanticDocument
.Document.GetLanguageService<SyntaxGenerator>();
237
var exceptionType =
_semanticDocument
.SemanticModel.Compilation.ExceptionType();
258
var serializableType =
_semanticDocument
.SemanticModel.Compilation.SerializableAttributeType();
270
=> _service.GetAccessibility(_state,
_semanticDocument
.SemanticModel, _intoNamespace, _cancellationToken);
302
_semanticDocument
.SemanticModel.Compilation, GetAvailableTypeParameters()) as INamedTypeSymbol;
309
=> _service.GetTypeParameters(_state,
_semanticDocument
.SemanticModel, _cancellationToken);
322
var availableInnerTypeParameters = _service.GetTypeParameters(_state,
_semanticDocument
.SemanticModel, _cancellationToken);