Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Cpp2IL.Core/Model/Contexts/ReferencedTypeAnalysisContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ public abstract class ReferencedTypeAnalysisContext(AssemblyAnalysisContext refe
{
public override Il2CppTypeEnum Type => throw new NotImplementedException("Type must be set by derived classes");

protected override int CustomAttributeIndex => -1;

public override AssemblyAnalysisContext CustomAttributeAssembly => DeclaringAssembly;

public override string ToString()
{
return DefaultName;
Expand Down
2 changes: 1 addition & 1 deletion Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class TypeAnalysisContext : HasGenericParameters, ITypeInfoProvider, ICSh
/// </summary>
public List<TypeAnalysisContext> NestedTypes { get; internal set; } = [];

protected override int CustomAttributeIndex => Definition!.CustomAttributeIndex;
protected override int CustomAttributeIndex => Definition?.CustomAttributeIndex ?? -1;

public override AssemblyAnalysisContext CustomAttributeAssembly => DeclaringAssembly;

Expand Down
Loading