-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,14 +29,16 @@ namespace System.Reflection | |
{ | ||
internal partial struct TypeNameParser | ||
{ | ||
private static readonly TypeNameParseOptions s_typeNameParseOptions = new() { MaxNodes = Int32.MaxValue }; | ||
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 debug Mono_Runtime)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm64 debug Mono_Runtime)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono_LLVMJIT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono_LLVMJIT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-riscv64 Release AllSubsets_Mono)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono_LLVMJIT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build osx-arm64 debug Mono_Runtime)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_Minijit_RuntimeTests minijit)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build osx-x64 debug Mono_Runtime)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAot_RuntimeTests llvmaot)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 checked CLR_Tools_Tests)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-armel checked CoreCLR_NonPortable)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm checked CoreCLR_ReleaseLibraries)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-riscv64 checked CoreCLR)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime-coreclr outerloop (Build linux-arm debug)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime-coreclr outerloop (Build linux_musl-x64 debug)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime-coreclr outerloop (Build linux_musl-arm64 debug)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime-coreclr outerloop (Build linux-arm64 debug)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime-coreclr outerloop (Build linux-arm release)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime (Build freebsd-x64 Debug CoreCLR)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
Check failure on line 32 in src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs Azure Pipelines / runtime-coreclr outerloop (Build linux-x64 debug)src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs#L32
|
||
|
||
private ModuleDesc _module; | ||
private bool _throwIfNotFound; | ||
private Func<ModuleDesc, string, MetadataType> _canonResolver; | ||
|
||
public static TypeDesc ResolveType(ModuleDesc module, string name, bool throwIfNotFound, | ||
Func<ModuleDesc, string, MetadataType> canonResolver) | ||
{ | ||
if (!TypeName.TryParse(name.AsSpan(), out TypeName parsed)) | ||
if (!TypeName.TryParse(name.AsSpan(), out TypeName parsed, s_typeNameParseOptions)) | ||
{ | ||
ThrowHelper.ThrowTypeLoadException(name, module); | ||
} | ||
|