1 write to _semanticModel
Microsoft.CodeAnalysis.Features (1)
AddImport\SymbolReferenceFinder.cs (1)
61
_semanticModel
= semanticModel;
22 references to _semanticModel
Microsoft.CodeAnalysis.Features (22)
AddImport\SymbolReferenceFinder.cs (22)
77
var set = _owner.GetImportNamespacesInScope(
_semanticModel
, _node, cancellationToken);
81
for (var containingNamespace =
_semanticModel
.GetEnclosingNamespace(_node.SpanStart, cancellationToken);
92
=>
_semanticModel
.Compilation.GetCompilationNamespace(containingNamespace) ?? containingNamespace;
207
var editorBrowserInfo = new EditorBrowsableInfo(
_semanticModel
.Compilation);
213
s.Symbol.IsEditorBrowsable(Options.MemberDisplayOptions.HideAdvancedMembers,
_semanticModel
.Compilation, editorBrowserInfo));
243
if (!symbol.IsAccessibleWithin(
_semanticModel
.Compilation.Assembly))
307
var symbol =
_semanticModel
.GetSymbolInfo(expression, cancellationToken).GetAnySymbol();
343
m.IsAccessibleWithin(self.
_semanticModel
.Compilation.Assembly), this);
394
return (
_semanticModel
.GetEnclosingNamedType(expression.SpanStart, cancellationToken), isStatic: false);
402
var symbol =
_semanticModel
.GetSymbolInfo(leftExpression, cancellationToken).GetAnySymbol();
403
var semanticInfo =
_semanticModel
.GetTypeInfo(leftExpression, cancellationToken);
413
s.Symbol.IsAccessibleWithin(
_semanticModel
.Compilation.Assembly));
427
_owner.IsAddMethodContext(_node,
_semanticModel
, out var objectCreationExpression))
429
var objectCreationType =
_semanticModel
.GetTypeInfo(objectCreationExpression, cancellationToken).Type;
449
var type = _owner.GetQueryClauseInfo(
_semanticModel
, _node, cancellationToken);
473
var type = GetAwaitInfo(
_semanticModel
, _syntaxFacts, _node);
495
var type = GetCollectionExpressionType(
_semanticModel
, _syntaxFacts, _node);
517
var type = GetCollectionExpressionType(
_semanticModel
, _syntaxFacts, _node);
539
var type = _owner.GetDeconstructInfo(
_semanticModel
, _node, cancellationToken);
596
if (!method.IsAccessibleWithin(
_semanticModel
.Compilation.Assembly))
618
if (!member.IsAccessibleWithin(
_semanticModel
.Compilation.Assembly))
632
var symbolInfo =
_semanticModel
.GetSymbolInfo(nameNode, cancellationToken);