Skip to content

Plans for a Node creation API #3746

@KaanOzkan

Description

@KaanOzkan

We're currently adding Prism support to Sorbet for type checking. As part of this work, we need to programmatically create Prism nodes to translate RBS comments into equivalent Sorbet sig method calls.

Currently, we're using the exposed structs and functions directly: https://github.com/Shopify/sorbet/blob/73a82ff66355946c5e5e011bc5432e6228b84266/parser/prism/Factory.cc

Given the issue to reduce the public API scope, we wanted to check: would a public node creation API be something you'd be open to? We're happy to contribute to the design and implementation if it fits Prism's direction.

More context can be found in the Sorbet PR that introduces node creation: sorbet/sorbet#9667 🙇

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions