1 write to NamespaceOrType
Microsoft.CodeAnalysis.CSharp (1)
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
19this.NamespaceOrType = namespaceOrType;
22 references to NamespaceOrType
Microsoft.CodeAnalysis.CSharp (22)
Binder\ImportChain.cs (1)
79NamespaceOrTypeSymbol namespaceOrType = nsOrType.NamespaceOrType;
Binder\Imports.cs (5)
54Usings.Select(u => u.NamespaceOrType.ToString())).Concat( 102var previousTarget = previousUsing.NamespaceOrType; 217return x.NamespaceOrType.Equals(y.NamespaceOrType); 222return obj.NamespaceOrType.GetHashCode();
Binder\WithUsingNamespacesAndTypesBinder.cs (7)
56MetadataTypeName.FromNamespaceAndTypeName(typeOrNamespace.NamespaceOrType.ToString(), name), 61qualifierOpt = typeOrNamespace.NamespaceOrType; 92switch (nsOrType.NamespaceOrType.Kind) 97((NamespaceSymbol)nsOrType.NamespaceOrType).GetExtensionMethods(methods, name, arity, options); 112((NamedTypeSymbol)nsOrType.NamespaceOrType).GetExtensionMethods(methods, name, arity, options); 141ImmutableArray<Symbol> candidates = Binder.GetCandidateMembers(typeOrNamespace.NamespaceOrType, name, options, originalBinder: originalBinder); 209foreach (var member in namespaceSymbol.NamespaceOrType.GetMembersUnordered())
Compilation\CSharpCompilation.cs (2)
1589uniqueUsings.AddAll(usingsFromoptions.UsingNamespacesOrTypes.Select(static unt => unt.NamespaceOrType)); 1593if (uniqueUsings.Add(previousUsing.NamespaceOrType))
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (1)
143NamespaceOrTypeSymbol target = @using.NamespaceOrType;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (6)
326uniqueUsings.AddAll(namespacesOrTypes.Select(n => n.NamespaceOrType)); 332if (!uniqueUsings.Add(namespaceOrType.NamespaceOrType)) 334diagnostics.Add(ErrorCode.HDN_DuplicateWithGlobalUsing, namespaceOrType.UsingDirective!.NamespaceOrType.Location, namespaceOrType.NamespaceOrType); 868uniqueUsings.AddAll(globalUsingNamespacesOrTypes.Select(n => n.NamespaceOrType)); 879uniqueUsings.AddAll(globalUsingNamespacesOrTypes.Where(n => n.UsingDirectiveReference?.SyntaxTree != tree).Select(n => n.NamespaceOrType)); 1013NamespaceOrTypeSymbol target = @using.NamespaceOrType;