• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SamboyCoding / Cpp2IL / 26005967564

17 May 2026 11:34PM UTC coverage: 35.273% (-0.06%) from 35.33%
26005967564

Pull #552

github

web-flow
Merge d03ec7dd9 into 6af99f218
Pull Request #552: Fix name overrides for constructed types

1974 of 6975 branches covered (28.3%)

Branch coverage included in aggregate %.

2 of 53 new or added lines in 12 files covered. (3.77%)

1 existing line in 1 file now uncovered.

4495 of 11365 relevant lines covered (39.55%)

252024.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Cpp2IL.Core/Model/Contexts/CustomModifierTypeAnalysisContext.cs
1
using System;
2
using LibCpp2IL.BinaryStructures;
3

4
namespace Cpp2IL.Core.Model.Contexts;
5

6
public class CustomModifierTypeAnalysisContext(TypeAnalysisContext elementType, TypeAnalysisContext modifierType, bool required, AssemblyAnalysisContext referencedFrom)
7
    : WrappedTypeAnalysisContext(elementType, referencedFrom)
×
8
{
9
    public TypeAnalysisContext ModifierType { get; } = modifierType;
×
10

11
    public bool Required { get; } = required;
×
12

NEW
13
    public sealed override Il2CppTypeEnum Type => Required ? Il2CppTypeEnum.IL2CPP_TYPE_CMOD_REQD : Il2CppTypeEnum.IL2CPP_TYPE_CMOD_OPT;
×
14

NEW
15
    public sealed override string DefaultName => Required
×
NEW
16
        ? $"{ElementType.DefaultName} modreq({ModifierType.DefaultFullName})"
×
NEW
17
        : $"{ElementType.DefaultName} modopt({ModifierType.DefaultFullName})";
×
18

19
    public sealed override string? OverrideName
20
    {
NEW
21
        get => Required
×
NEW
22
            ? $"{ElementType.Name} modreq({ModifierType.FullName})"
×
NEW
23
            : $"{ElementType.Name} modopt({ModifierType.FullName})";
×
NEW
24
        set => throw new NotSupportedException();
×
25
    }
26

27
    public sealed override bool IsValueType => ElementType.IsValueType;
×
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc