Skip to content

Portable PDB: StateMachineScopeDebugInformation API is incorrect #461

@tmat

Description

@tmat

The current API is:

class StateMachineScopeDebugInformation
{
  public InstructionOffset Start { get; set; }
  public InstructionOffset End { get; set; }
  CustomDebugInformationKind Kind { get; }
}

but should be something like:

class HoistedScope
{
  public InstructionOffset Start { get; set; }
  public InstructionOffset End { get; set; }
}

class StateMachineHoistedScopesDebugInformation
{
  public Collection<HoistedScope> Scopes { get; set; }
  CustomDebugInformationKind Kind { get; }
}

See spec: https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#StateMachineHoistedLocalScopes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions