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)
184nameNode, _syntaxFacts, 267_syntaxFacts.GetNameAndArityOfSimpleName(nameNode, out var name, out var arity); 292if (_owner.CanAddImportForMethod(_diagnosticId, _syntaxFacts, _node, out var nameNode) && 354if (_owner.CanAddImportForMethod(_diagnosticId, _syntaxFacts, _node, out var nameNode) && 362_syntaxFacts.GetNameAndArityOfSimpleName(nameNode, out var name, out var arity); 386s => _owner.IsViableExtensionMethod(s.Symbol, expression, _semanticModel, _syntaxFacts, cancellationToken)); 413if (_owner.CanAddImportForMethod(_diagnosticId, _syntaxFacts, _node, out _) && 414!_syntaxFacts.IsSimpleName(_node) && 469if (_owner.CanAddImportForGetAwaiter(_diagnosticId, _syntaxFacts, _node)) 471var type = GetAwaitInfo(_semanticModel, _syntaxFacts, _node); 494if (_owner.CanAddImportForGetEnumerator(_diagnosticId, _syntaxFacts, _node)) 496var type = GetCollectionExpressionType(_semanticModel, _syntaxFacts, _node); 519if (_owner.CanAddImportForGetAsyncEnumerator(_diagnosticId, _syntaxFacts, _node)) 521var type = GetCollectionExpressionType(_semanticModel, _syntaxFacts, _node);
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (6)
78while (_syntaxFacts.IsQualifiedName(current.Parent)) 91nameNode, _syntaxFacts, 100if (_syntaxFacts.IsIdentifierName(rootNode)) 103result.Add(_syntaxFacts.GetIdentifierOfIdentifierName(rootNode).ValueText); 106else if (_syntaxFacts.IsQualifiedName(rootNode)) 111_syntaxFacts.GetPartsOfQualifiedName(rootNode, out var left, out _, out var right);