1 write to UsingDirectiveReference
Microsoft.CodeAnalysis.CSharp (1)
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
20
this.
UsingDirectiveReference
= usingDirective?.GetReference();
8 references to UsingDirectiveReference
Microsoft.CodeAnalysis.CSharp (8)
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
24
public UsingDirectiveSyntax? UsingDirective => (UsingDirectiveSyntax?)
UsingDirectiveReference
?.GetSyntax();
Binder\WithUsingNamespacesAndTypesBinder.cs (4)
102
MarkImportDirective(nsOrType.
UsingDirectiveReference
, callerIsSemanticModel);
117
MarkImportDirective(nsOrType.
UsingDirectiveReference
, callerIsSemanticModel);
149
MarkImportDirective(nsOrType.
UsingDirectiveReference
, callerIsSemanticModel);
180
MarkImportDirective(typeOrNamespace.
UsingDirectiveReference
, callerIsSemanticModel);
Compilation\CSharpSemanticModel.cs (1)
5426
imports.Usings.SelectAsArray(static n => new ImportedNamespaceOrType(n.NamespaceOrType.GetPublicSymbol(), n.
UsingDirectiveReference
)),
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
879
uniqueUsings.AddAll(globalUsingNamespacesOrTypes.Where(n => n.
UsingDirectiveReference
?.SyntaxTree != tree).Select(n => n.NamespaceOrType));
1003
if (@using.
UsingDirectiveReference
!.SyntaxTree != declarationSyntax.SyntaxTree)