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