1 write to _syntaxFacts
Microsoft.CodeAnalysis.Features (1)
AddImport\SymbolReferenceFinder.cs (1)
68_syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
24 references to _syntaxFacts
Microsoft.CodeAnalysis.Features (24)
AddImport\SymbolReferenceFinder.cs (18)
183nameNode, _syntaxFacts, 266_syntaxFacts.GetNameAndArityOfSimpleName(nameNode, out var name, out var arity); 291if (_owner.CanAddImportForMember(_diagnosticId, _syntaxFacts, _node, out var nameNode) && 355if (_owner.CanAddImportForMember(_diagnosticId, _syntaxFacts, _node, out var nameNode) && 363_syntaxFacts.GetNameAndArityOfSimpleName(nameNode, out var name, out var arity); 393if (_syntaxFacts.IsInvocationExpression(expression)) 397_syntaxFacts.IsMemberAccessExpression(expression) ? _syntaxFacts.GetExpressionOfMemberAccessExpression(expression, allowImplicitTarget: true) : 398_syntaxFacts.IsMemberBindingExpression(expression) ? _syntaxFacts.GetTargetOfMemberBinding(expression) : null; 425if (_owner.CanAddImportForMember(_diagnosticId, _syntaxFacts, _node, out _) && 426!_syntaxFacts.IsSimpleName(_node) && 471if (_owner.CanAddImportForGetAwaiter(_diagnosticId, _syntaxFacts, _node)) 473var type = GetAwaitInfo(_semanticModel, _syntaxFacts, _node); 493if (_owner.CanAddImportForGetEnumerator(_diagnosticId, _syntaxFacts, _node)) 495var type = GetCollectionExpressionType(_semanticModel, _syntaxFacts, _node); 515if (_owner.CanAddImportForGetAsyncEnumerator(_diagnosticId, _syntaxFacts, _node)) 517var type = GetCollectionExpressionType(_semanticModel, _syntaxFacts, _node);
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (6)
80while (_syntaxFacts.IsQualifiedName(current.Parent)) 93nameNode, _syntaxFacts, 102if (_syntaxFacts.IsIdentifierName(rootNode)) 105result.Add(_syntaxFacts.GetIdentifierOfIdentifierName(rootNode).ValueText); 108else if (_syntaxFacts.IsQualifiedName(rootNode)) 113_syntaxFacts.GetPartsOfQualifiedName(rootNode, out var left, out _, out var right);