39 references to MetadataTypeName
Microsoft.CodeAnalysis (29)
MetadataReader\MetadataDecoder.cs (12)
516
MetadataTypeName
mdName = @namespace.Length > 0
517
?
MetadataTypeName
.FromNamespaceAndTypeName(@namespace, name)
518
:
MetadataTypeName
.FromTypeName(name);
543
ref
MetadataTypeName
fullName,
635
MetadataTypeName
mdName;
664
mdName =
MetadataTypeName
.FromTypeName(name);
671
?
MetadataTypeName
.FromNamespaceAndTypeName(namespaceName, name)
672
:
MetadataTypeName
.FromTypeName(name);
696
MetadataTypeName
localTypeName =
MetadataTypeName
.FromNamespaceAndTypeName(mdName.NamespaceName, mdName.TypeName, forcedArity: 0);
2135
protected abstract TypeSymbol SubstituteNoPiaLocalType(TypeDefinitionHandle typeDef, ref
MetadataTypeName
name, string interfaceGuid, string scope, string identifier);
2137
protected abstract TypeSymbol LookupTopLevelTypeDefSymbol(string moduleName, ref
MetadataTypeName
emittedName, out bool isNoPiaLocalType);
MetadataReader\MetadataTypeName.cs (6)
92
public static
MetadataTypeName
FromFullName(string fullName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1)
101
MetadataTypeName
name;
119
public static
MetadataTypeName
FromNamespaceAndTypeName(
133
MetadataTypeName
name;
151
public static
MetadataTypeName
FromTypeName(string typeName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1)
161
MetadataTypeName
name;
MetadataReader\MetadataTypeName.Key.cs (1)
28
internal Key(in
MetadataTypeName
mdTypeName)
MetadataReader\TypeNameDecoder.cs (7)
33
protected abstract TypeSymbol LookupTopLevelTypeDefSymbol(ref
MetadataTypeName
emittedName, out bool isNoPiaLocalType);
38
protected abstract TypeSymbol LookupTopLevelTypeDefSymbol(int referencedAssemblyIndex, ref
MetadataTypeName
emittedName);
39
protected abstract TypeSymbol LookupNestedTypeDefSymbol(TypeSymbol container, ref
MetadataTypeName
emittedName);
158
var
mdName =
MetadataTypeName
.FromFullName(fullName.TopLevelType);
174
mdName =
MetadataTypeName
.FromTypeName(fullName.NestedTypes[i]);
238
private TypeSymbol LookupTopLevelTypeDefSymbol(ref
MetadataTypeName
emittedName, int referencedAssemblyIndex, out bool isNoPiaLocalType)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (3)
83
var
metadataName = fullyQualifiedMetadataName.Contains('+')
84
?
MetadataTypeName
.FromFullName(fullyQualifiedMetadataName.Split(s_nestedTypeNameSeparators).Last())
85
:
MetadataTypeName
.FromFullName(fullyQualifiedMetadataName);
Microsoft.CodeAnalysis.CSharp (4)
Emitter\Model\PEAssemblyBuilder.cs (1)
576
var
attributeMetadataName = MetadataTypeName.FromFullName(description.FullName);
Symbols\AssemblySymbol.cs (1)
348
var
emittedName = MetadataTypeName.FromFullName(fullyQualifiedMetadataName);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
209
var
metadataName = MetadataTypeName.FromNamespaceAndTypeName("System.Runtime.CompilerServices", typeName, useCLSCompliantNameArityEncoding: true, forcedArity: 0);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
768
var
name = MetadataTypeName.FromFullName(forwarder.Key);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Security.cs (1)
50
var
emittedName = MetadataTypeName.FromNamespaceAndTypeName("System.Security.Permissions", "HostProtectionAttribute");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Retargeting\NoPia.cs (4)
323
var
fullName_I1 = MetadataTypeName.FromFullName("I1");
324
var
fullName_I2 = MetadataTypeName.FromFullName("NS1.I2");
325
var
fullName_S1 = MetadataTypeName.FromFullName("S1");
326
var
fullName_S2 = MetadataTypeName.FromFullName("NS1.S2");
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
538
var
name = MetadataTypeName.FromFullName(type.GetMetadataName());