Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support finishing component types without compilation artifacts #7888

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/environ/src/component/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,13 @@ impl ComponentTypesBuilder {
}
}

/// Finishes this list of component types and returns the finished
/// structure.
pub fn finish_sans_reflection(mut self) -> ComponentTypes {
self.component_types.module_types = self.module_types.finish();
self.component_types
}

/// Finishes this list of component types and returns the finished
/// structure and the [`TypeComponentIndex`] corresponding to top-level component
/// with `imports` and `exports` specified.
Expand Down