Uh oh!
There was an error while loading. Please reload this page.
Implement remaining ILGenertorImpl methods, excluding scope. Add max stack calculation for branching. - #96362
Conversation
ghost
commented
Dec 29, 2023
Tagging subscribers to this area: @dotnet/area-system-reflection-emit Issue Details
Contributes to #92975
|
| public override void UsingNamespace(string usingNamespace) => throw new NotImplementedException(); | ||
| public override void UsingNamespace(string usingNamespace) | ||
| { | ||
| // TODO: No-op, will be implemented wit PDB support |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| ilg.Emit(OpCodes.Ldarg_0); | ||
| ilg.Emit(OpCodes.Brfalse, lab); | ||
| // The label is marked with a larger stack depth, one. This IL is invalid. |
There was a problem hiding this comment.
So we don't detect \ throw on these cases, and CreateTypeInfo() doesn't either?
There was a problem hiding this comment.
These tests are imported from runtime ILGenerator tests
Personally, I am not sure this exact test makes sense, though runtime doesn't detect or throw ...
steveharter
commented
Dec 30, 2023
Note the test error: |
Uh oh!
There was an error while loading. Please reload this page.
Emit(OpCode opcode, SignatureHelper signature),EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, Type? returnType, Type[]? parameterTypes)andEmitCalli(OpCode opcode, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, Type[]? optionalParameterTypes)method+optionalParametersreference scenario, also refactored/fixed allModuleBuilder.Get***MetadataTokenimplementations as neededNotImplementedException) forBeginScope(),EndScope()andUsingNamespace(string usingNamespace), their implementations will be added with PDB support.BadImageFormatExceptionwhen loading generated assemblies withAssembly.LoadFrom(path)for run. Some tests now run the loaded assembly.Contributes to #92975