1 write to UsingDirectiveReference
Microsoft.CodeAnalysis.CSharp (1)
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
20
this.
UsingDirectiveReference
= usingDirective?.GetReference();
7 references to UsingDirectiveReference
Microsoft.CodeAnalysis.CSharp (7)
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
24
public UsingDirectiveSyntax? UsingDirective => (UsingDirectiveSyntax?)
UsingDirectiveReference
?.GetSyntax();
Binder\WithUsingNamespacesAndTypesBinder.cs (3)
100
MarkImportDirective(nsOrType.
UsingDirectiveReference
, callerIsSemanticModel);
115
MarkImportDirective(nsOrType.
UsingDirectiveReference
, callerIsSemanticModel);
153
MarkImportDirective(typeOrNamespace.
UsingDirectiveReference
, callerIsSemanticModel);
Compilation\CSharpSemanticModel.cs (1)
5331
imports.Usings.SelectAsArray(static n => new ImportedNamespaceOrType(n.NamespaceOrType.GetPublicSymbol(), n.
UsingDirectiveReference
)),
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
831
uniqueUsings.AddAll(globalUsingNamespacesOrTypes.Where(n => n.
UsingDirectiveReference
?.SyntaxTree != tree).Select(n => n.NamespaceOrType));
955
if (@using.
UsingDirectiveReference
!.SyntaxTree != declarationSyntax.SyntaxTree)