1 write to _node
Microsoft.CodeAnalysis.Features (1)
AddImport\SymbolReferenceFinder.cs (1)
64
_node
= node;
21 references to _node
Microsoft.CodeAnalysis.Features (21)
AddImport\SymbolReferenceFinder.cs (20)
78
var set = _owner.GetImportNamespacesInScope(_semanticModel,
_node
, cancellationToken);
82
for (var containingNamespace = _semanticModel.GetEnclosingNamespace(
_node
.SpanStart, cancellationToken);
180
if (!_owner.CanAddImportForTypeOrNamespace(_diagnosticId,
_node
, out var nameNode))
265
if (_owner.CanAddImportForNamespace(_diagnosticId,
_node
, out var nameNode))
292
if (_owner.CanAddImportForMethod(_diagnosticId, _syntaxFacts,
_node
, out var nameNode) &&
354
if (_owner.CanAddImportForMethod(_diagnosticId, _syntaxFacts,
_node
, out var nameNode) &&
413
if (_owner.CanAddImportForMethod(_diagnosticId, _syntaxFacts,
_node
, out _) &&
414
!_syntaxFacts.IsSimpleName(
_node
) &&
415
_owner.IsAddMethodContext(
_node
, _semanticModel))
426
methodSymbols,
_node
.Parent, cancellationToken);
445
if (_owner.CanAddImportForQuery(_diagnosticId,
_node
))
447
var type = _owner.GetQueryClauseInfo(_semanticModel,
_node
, cancellationToken);
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
);
544
if (_owner.CanAddImportForDeconstruct(_diagnosticId,
_node
))
546
var type = _owner.GetDeconstructInfo(_semanticModel,
_node
, cancellationToken);
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (1)
31
if (!_owner.CanAddImportForTypeOrNamespace(_diagnosticId,
_node
, out var nameNode))