Skip to content

Migrate static Types class to TypeContext #28638

@brandjon

Description

@brandjon

Currently, hardcoded types like list are accessed on a namespace class Types. This makes it difficult to programmatically construct types with field/method APIs, e.g. adding append() as a method of list.

We should refactor the injectable types into an interface, and have BuiltinManager implement the interface. Then we can thread that object through parts of the code that need to construct such types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1I'll work on this now. (Assignee required)team-Starlark-InterpreterIssues involving the Starlark interpreter used by Bazeltype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions