Skip to content

Commit

Permalink
Merge pull request #386 from Washi1337/feature/stringbuilder-name-gen…
Browse files Browse the repository at this point in the history
…erator

Fast MemberNameGenerator
  • Loading branch information
Washi1337 committed Dec 7, 2022
2 parents ad735ec + 11ad3a2 commit 4682597
Show file tree
Hide file tree
Showing 25 changed files with 833 additions and 187 deletions.
2 changes: 1 addition & 1 deletion src/AsmResolver.DotNet/EventDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public bool IsRuntimeSpecialName
string? INameProvider.Name => Name;

/// <inheritdoc />
public string FullName => FullNameGenerator.GetEventFullName(Name, DeclaringType, EventType);
public string FullName => MemberNameGenerator.GetEventFullName(this);

/// <summary>
/// Gets or sets the delegate type of the event.
Expand Down
2 changes: 1 addition & 1 deletion src/AsmResolver.DotNet/ExportedType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public uint TypeDefId
string? ITypeDescriptor.Namespace => Namespace;

/// <inheritdoc />
public string FullName => this.GetTypeFullName();
public string FullName => MemberNameGenerator.GetTypeFullName(this);

/// <inheritdoc />
public ModuleDefinition? Module
Expand Down
2 changes: 1 addition & 1 deletion src/AsmResolver.DotNet/FieldDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public FieldDefinition(Utf8String name, FieldAttributes attributes, TypeSignatur
}

/// <inheritdoc />
public string FullName => FullNameGenerator.GetFieldFullName(Name, DeclaringType, Signature);
public string FullName => MemberNameGenerator.GetFieldFullName(this);

/// <summary>
/// Gets or sets the attributes associated to the field.
Expand Down
148 changes: 0 additions & 148 deletions src/AsmResolver.DotNet/FullNameGenerator.cs

This file was deleted.

Loading

0 comments on commit 4682597

Please sign in to comment.