1 write to _syntaxFacts
Microsoft.CodeAnalysis.Features (1)
AddImport\SymbolReferenceFinder.cs (1)
69
_syntaxFacts
= document.GetLanguageService<ISyntaxFactsService>();
20 references to _syntaxFacts
Microsoft.CodeAnalysis.Features (20)
AddImport\SymbolReferenceFinder.cs (14)
184
nameNode,
_syntaxFacts
,
267
_syntaxFacts
.GetNameAndArityOfSimpleName(nameNode, out var name, out var arity);
292
if (_owner.CanAddImportForMethod(_diagnosticId,
_syntaxFacts
, _node, out var nameNode) &&
354
if (_owner.CanAddImportForMethod(_diagnosticId,
_syntaxFacts
, _node, out var nameNode) &&
362
_syntaxFacts
.GetNameAndArityOfSimpleName(nameNode, out var name, out var arity);
386
s => _owner.IsViableExtensionMethod(s.Symbol, expression, _semanticModel,
_syntaxFacts
, cancellationToken));
413
if (_owner.CanAddImportForMethod(_diagnosticId,
_syntaxFacts
, _node, out _) &&
414
!
_syntaxFacts
.IsSimpleName(_node) &&
469
if (_owner.CanAddImportForGetAwaiter(_diagnosticId,
_syntaxFacts
, _node))
471
var type = GetAwaitInfo(_semanticModel,
_syntaxFacts
, _node);
494
if (_owner.CanAddImportForGetEnumerator(_diagnosticId,
_syntaxFacts
, _node))
496
var type = GetCollectionExpressionType(_semanticModel,
_syntaxFacts
, _node);
519
if (_owner.CanAddImportForGetAsyncEnumerator(_diagnosticId,
_syntaxFacts
, _node))
521
var type = GetCollectionExpressionType(_semanticModel,
_syntaxFacts
, _node);
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (6)
78
while (
_syntaxFacts
.IsQualifiedName(current.Parent))
91
nameNode,
_syntaxFacts
,
100
if (
_syntaxFacts
.IsIdentifierName(rootNode))
103
result.Add(
_syntaxFacts
.GetIdentifierOfIdentifierName(rootNode).ValueText);
106
else if (
_syntaxFacts
.IsQualifiedName(rootNode))
111
_syntaxFacts
.GetPartsOfQualifiedName(rootNode, out var left, out _, out var right);