Skip to content

API for "what names does this type reference" #7526

@CouleeApps

Description

@CouleeApps

What is the feature you'd like to have?
I want an API to, given a Type, get the list of NamedTypeReferences that the type and its children contain. I also want an API for, given a Type, get the list of all NamedTypeReferences that it references and that the targets of those NamedTypeReferences in a given BinaryView also reference, basically all dependencies of a type.

Is your feature request related to a problem?
I (and various users) want to look up dependencies for types that I have without needing to write an entire BFS implementation over all the type models.

Are any alternative solutions acceptable?
This can be implemented by hand already but it is rather tricky and subject to breaking on future type system updates.

Additional information
See BinaryNinjaCore::Type::MapNamedTypeReferences and its uses

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: APIIssue needs changes to the APIEffort: LowIssues require < 1 week of workImpact: LowIssue is a papercut or has a good, supported workaround

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions