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