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

Expose a FunctionBuilder through LocalFunction #54

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

alexcrichton
Copy link
Collaborator

This should allow to continue to build expressions for a function even
after it exists

@alexcrichton alexcrichton force-pushed the builder-methods branch 2 times, most recently from 78ce925 to 93dfa67 Compare February 15, 2019 16:21
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!


/// Get access to a `FunctionBuilder` to continue adding expressions to
/// this function.
pub fn builder(&self) -> &FunctionBuilder {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One can't use a shared ref to a function builder to add expressions though, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True! I figured it'd be good to expose in terms of idioms although we can always remove it later

This should allow to continue to build expressions for a function even
after it exists
@alexcrichton alexcrichton merged commit 0d6a098 into rustwasm:master Feb 15, 2019
@alexcrichton alexcrichton deleted the builder-methods branch February 15, 2019 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants