1 write to Document
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionContext.cs (1)
149
Document
= document;
60 references to Document
Microsoft.AspNetCore.App.Analyzers (4)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
96
var root = await context.
Document
.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
124
var semanticModel = await context.
Document
.GetSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (2)
95
var root = await context.
Document
.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
108
var semanticModel = await context.
Document
.GetSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.App.CodeFixes (3)
Dependencies\ExtensionMethodsCompletionProvider.cs (3)
29
if (!context.
Document
.SupportsSemanticModel)
34
var root = await context.
Document
.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
47
var semanticModel = await context.
Document
.GetSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (15)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
55
var document = context.
Document
;
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
62
var document = context.
Document
;
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
45
var document = completionContext.
Document
;
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
65
var document = context.
Document
;
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
107
var state = await ItemGetter.CreateAsync(this, context.
Document
, context.Position, context.CancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
43
var document = context.
Document
;
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
47
var document = context.
Document
;
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
57
var document = context.
Document
;
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
100
var document = context.
Document
;
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
44
var document = context.
Document
;
Completion\CompletionProviders\SnippetCompletionProvider.cs (2)
76
var document = context.
Document
;
174
if (context.CompletionOptions.ShouldShowNewSnippetExperience(context.
Document
))
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
44
var document = context.
Document
;
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
126
await IsTriggerInArgumentListAsync(completionContext.
Document
, position - 1, cancellationToken).ConfigureAwait(false) == true)
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
44
var document = completionContext.
Document
;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
116
context.CompletionListSpan = await GetTextChangeSpanAsync(context.
Document
, context.CompletionListSpan, context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (1)
23
var document = context.
Document
;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\MockCompletionProvider.vb (1)
32
Dim items = _getItems(context.
Document
, context.Position, context.CancellationToken)
Microsoft.CodeAnalysis.Features (32)
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
92
foreach (var language in GetLanguageProviders(context.
Document
.Project.Services))
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
82
var document = context.
Document
;
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
83
context.
Document
, context.Position, context.Trigger, context.CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (7)
60
var syntaxTree = await context.
Document
.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
61
var syntaxFactsService = context.
Document
.GetRequiredLanguageService<ISyntaxFactsService>();
71
if (await CheckTypeInfoOfAttributeAsync(context.
Document
, attributeSyntaxNode, context.CancellationToken).ConfigureAwait(false))
135
var currentProject = context.
Document
.Project;
137
foreach (var project in context.
Document
.Project.Solution.Projects)
167
context.
Document
, context.CompletionListSpan, cancellationToken).ConfigureAwait(false);
179
var project = completionContext.
Document
.Project;
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
37
context.AddItems(await context.
Document
.GetUnionItemsFromDocumentAndLinkedDocumentsAsync(
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
25
var document = context.
Document
;
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
24
var state = await ItemGetter.CreateAsync(this, context.
Document
, context.Position, context.CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (1)
42
var document = context.
Document
;
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
31
var document = completionContext.
Document
;
Completion\Providers\AbstractPreprocessorCompletionProvider.cs (1)
20
var originatingDocument = context.
Document
;
Completion\Providers\AbstractSuggestionModeCompletionProvider.cs (1)
19
context.
Document
, context.Position, context.CompletionListSpan, context.Trigger, context.CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
214
supportedPlatformData = new SupportedPlatformData(completionContext.
Document
.Project.Solution, invalidProjects, totalProjects);
256
var document = completionContext.
Document
;
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (2)
25
=> syntaxContext.IsRightOfNameSeparator && IsAddingImportsSupported(completionContext.
Document
, completionContext.CompletionOptions);
43
var syntaxFacts = completionContext.
Document
.GetRequiredLanguageService<ISyntaxFactsService>();
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
42
var document = completionContext.
Document
;
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (2)
38
var typeImportCompletionService = completionContext.
Document
.GetRequiredLanguageService<ITypeImportCompletionService>();
46
var aliasTargetNamespaceToTypeNameMap = GetAliasTypeDictionary(completionContext.
Document
, syntaxContext, cancellationToken);
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (1)
35
var document = context.
Document
;
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
41
var helper = GetFileSystemCompletionHelper(context.
Document
, Glyph.CSharpFile, [".csx"], s_rules);
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (2)
51
var resolver = context.
Document
.Project.CompilationOptions.MetadataReferenceResolver as RuntimeMetadataReferenceResolver;
69
var helper = GetFileSystemCompletionHelper(context.
Document
, Glyph.Assembly, RuntimeMetadataReferenceResolver.AssemblyExtensions, s_rules);
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (2)
68
if (!context.CompletionOptions.ShouldShowNewSnippetExperience(context.
Document
))
73
var document = context.
Document
;
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
72
var document = context.
Document
;
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
75
context.
Document
, position, context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
58
Dim document = context.
Document
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
46
Dim document = context.
Document
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
47
Dim document = context.
Document