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

SamboyCoding / Cpp2IL / 11023494789

24 Sep 2024 11:30PM UTC coverage: 28.383% (-0.1%) from 28.517%
11023494789

push

github

SamboyCoding
Core: A bunch of changes to WASM sig calculation.

This still doesn't work properly. Make it make sense. Please.

1238 of 6094 branches covered (20.32%)

Branch coverage included in aggregate %.

15 of 86 new or added lines in 13 files covered. (17.44%)

2 existing lines in 2 files now uncovered.

3341 of 10039 relevant lines covered (33.28%)

102017.76 hits per line

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

0.0
/Cpp2IL.Core/Model/Contexts/NativeMethodAnalysisContext.cs
1
using System;
2
using System.Reflection;
3
using LibCpp2IL;
4

5
namespace Cpp2IL.Core.Model.Contexts;
6

7
public sealed class NativeMethodAnalysisContext : MethodAnalysisContext
8
{
9
    public override ulong UnderlyingPointer { get; }
×
10

11
    public override string DefaultName { get; }
×
12

13
    public override bool IsStatic => true;
×
14

15
    public override bool IsVoid { get; }
×
16

17
    public override MethodAttributes Attributes => MethodAttributes.Public | MethodAttributes.Static | MethodAttributes.HideBySig;
×
18

19
    protected override int CustomAttributeIndex => -1;
×
20

21
    public NativeMethodAnalysisContext(TypeAnalysisContext parent, ulong address, bool voidReturn) : base(null, parent)
×
22
    {
23
        if (address == 0)
×
24
            throw new ArgumentOutOfRangeException(nameof(address));
×
25

26
        IsVoid = voidReturn;
×
27
        UnderlyingPointer = address;
×
28
        if (LibCpp2IlMain.Binary?.TryGetExportedFunctionName(UnderlyingPointer, out var name) ?? false)
×
29
        {
30
            DefaultName = name;
×
31
        }
32
        else
33
        {
34
            DefaultName = $"NativeMethod_0x{UnderlyingPointer:X}";
×
35
        }
36

NEW
37
        rawMethodBody = AppContext.InstructionSet.GetRawBytesForMethod(this, false);
×
38
    }
×
39
}
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