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