Skip to content

Commit

Permalink
PersistedAssemblyBuilder missing methods on generated types (#109320)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakex64 authored Dec 5, 2024
1 parent 9970e70 commit c3e1bc3
Show file tree
Hide file tree
Showing 5 changed files with 673 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ public void DefineMethodOverride(System.Reflection.MethodInfo methodInfoBody, Sy
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr) { throw null; }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
protected override System.Reflection.PropertyInfo GetPropertyImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Type? returnType, System.Type[]? types, System.Reflection.ParameterModifier[]? modifiers) { throw null; }
protected override System.Reflection.PropertyInfo? GetPropertyImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Type? returnType, System.Type[]? types, System.Reflection.ParameterModifier[]? modifiers) { throw null; }
protected override bool HasElementTypeImpl() { throw null; }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
public override object? InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder? binder, object? target, object?[]? args, System.Reflection.ParameterModifier[]? modifiers, System.Globalization.CultureInfo? culture, string[]? namedParameters) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1381,5 +1381,19 @@ protected override ISymbolDocumentWriter DefineDocumentCore(string url, Guid lan
{
return new SymbolDocumentWriter(url, language);
}

internal List<TypeBuilderImpl> GetNestedTypeBuilders(TypeBuilderImpl declaringType)
{
List<TypeBuilderImpl> nestedTypes = new List<TypeBuilderImpl>();
foreach (TypeBuilderImpl typeBuilder in _typeDefinitions)
{
if (typeBuilder.DeclaringType == declaringType)
{
nestedTypes.Add(typeBuilder);
}
}

return nestedTypes;
}
}
}
Loading

0 comments on commit c3e1bc3

Please sign in to comment.