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

SamboyCoding / Cpp2IL / 10648076198

31 Aug 2024 08:29PM UTC coverage: 29.124% (-0.002%) from 29.126%
10648076198

push

github

SamboyCoding
Core: Fix exception when converting InjectedParameterAnalysisContext to AsmResolver

1229 of 5825 branches covered (21.1%)

Branch coverage included in aggregate %.

1 of 3 new or added lines in 2 files covered. (33.33%)

3314 of 9774 relevant lines covered (33.91%)

104829.34 hits per line

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

53.85
/Cpp2IL.Core/Model/Contexts/InjectedParameterAnalysisContext.cs
1
using System.Reflection;
2
using Cpp2IL.Core.Utils;
3
using LibCpp2IL.BinaryStructures;
4

5
namespace Cpp2IL.Core.Model.Contexts;
6

7
public class InjectedParameterAnalysisContext : ParameterAnalysisContext
8
{
9
    public override TypeAnalysisContext ParameterTypeContext { get; }
2✔
10

NEW
11
    public override bool IsRef => ParameterTypeContext is ReferencedTypeAnalysisContext;
×
12

NEW
13
    public override ParameterAttributes ParameterAttributes => ParameterAttributes.None;
×
14

15
    public InjectedParameterAnalysisContext(string? name, Il2CppType type, int paramIndex, MethodAnalysisContext declaringMethod)
16
        : this(name, declaringMethod.DeclaringType!.DeclaringAssembly.ResolveIl2CppType(type) ?? throw new($"Type {type} could not be resolved."), paramIndex, declaringMethod)
×
17
    {
18
    }
×
19

20
    public InjectedParameterAnalysisContext(string? name, TypeAnalysisContext typeContext, int paramIndex, MethodAnalysisContext declaringMethod) : base(null, paramIndex, declaringMethod)
42,654✔
21
    {
22
        OverrideName = name ?? $"param_{paramIndex}";
42,654✔
23
        ParameterTypeContext = typeContext;
42,654✔
24
    }
42,654✔
25
}
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