2 implementations of GetTypeByMetadataName
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\AssemblySymbol.cs (1)
99INamedTypeSymbol? IAssemblySymbol.GetTypeByMetadataName(string metadataName)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
779Private Function IAssemblySymbol_GetTypeByMetadataName(metadataName As String) As INamedTypeSymbol Implements IAssemblySymbol.GetTypeByMetadataName
41 references to GetTypeByMetadataName
ConfigurationSchemaGenerator (2)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
ILLink.RoslynAnalyzer (2)
CompilationExtensions.cs (2)
46 type ??= compilation.Assembly.GetTypeByMetadataName (fullyQualifiedMetadataName); 52 var currentType = referencedAssembly.GetTypeByMetadataName (fullyQualifiedMetadataName);
Microsoft.CodeAnalysis (3)
Compilation\Compilation.cs (3)
1259addIfNotNull(Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName)); 1265addIfNotNull(corLib.GetTypeByMetadataName(fullyQualifiedMetadataName)); 1275addIfNotNull(referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AssemblyAndNamespaceTests.cs (1)
438Assert.Null(comp.Assembly.GetTypeByMetadataName("System.Threading.Tasks.Task"));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
112var generatedSymbol = generatedCompilation.Assembly.GetTypeByMetadataName(symbolName);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (2)
181var namedTypeSymbol = assemblySymbol.GetTypeByMetadataName(symbolMetadataName); 209namedTypeSymbol = assemblySymbol.GetTypeByMetadataName(namedTypeName);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
779Private Function IAssemblySymbol_GetTypeByMetadataName(metadataName As String) As INamedTypeSymbol Implements IAssemblySymbol.GetTypeByMetadataName
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
406Assert.Null(comp.Assembly.GetTypeByMetadataName("System.Array")) 407Assert.Equal("E", comp.Assembly.GetTypeByMetadataName("A.B.C+D+E").Name)
Microsoft.Extensions.Logging.Generators (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Microsoft.Extensions.Options.SourceGeneration (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Microsoft.Gen.Logging (2)
src\Generators\Shared\RoslynExtensions.cs (2)
50type ??= compilation.Assembly?.GetTypeByMetadataName(fullyQualifiedMetadataName); 65var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Microsoft.Gen.Metrics (2)
src\Generators\Shared\RoslynExtensions.cs (2)
50type ??= compilation.Assembly?.GetTypeByMetadataName(fullyQualifiedMetadataName); 65var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Microsoft.Interop.ComInterfaceGenerator (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Microsoft.Interop.LibraryImportGenerator (6)
Analyzers\ConvertToLibraryImportFixer.cs (4)
594GetTypeByMetadataName($"System.Runtime.CompilerServices.CallConvCdecl"), 596GetTypeByMetadataName($"System.Runtime.CompilerServices.CallConvStdcall"), 598GetTypeByMetadataName($"System.Runtime.CompilerServices.CallConvThiscall"), 600GetTypeByMetadataName($"System.Runtime.CompilerServices.CallConvFastcall"),
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Microsoft.Interop.SourceGeneration (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
Mvc.Analyzers.Test (1)
TopLevelParameterNameAnalyzerTest.cs (1)
410var modelType = compilation.Assembly.GetTypeByMetadataName("Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles.TestController");
System.Private.CoreLib.Generators (2)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (2)
141INamedTypeSymbol? bypassReadyToRunAttribute = context.Compilation.Assembly.GetTypeByMetadataName("System.Runtime.BypassReadyToRunAttribute"); 142INamedTypeSymbol? compExactlyDependsOn = context.Compilation.Assembly.GetTypeByMetadataName("System.Runtime.CompilerServices.CompExactlyDependsOnAttribute");
System.Text.Json.SourceGeneration (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);
System.Text.RegularExpressions.Generator (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (2)
44type ??= compilation.Assembly.GetTypeByMetadataName(fullyQualifiedMetadataName); 53var currentType = referencedAssembly.GetTypeByMetadataName(fullyQualifiedMetadataName);