Skip to content

Obtaining a MutableStmtGraph from Source #774

Answered by swissiety
lbettels asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lbettels,
It is - just pass the StmtGraph you get from the Body into the constructor
new MutableStmtGraph( existing_possibly_immutable_StmtGraph );

depending on your use case you could implement and configure a BodyInterceptor as well - this would hook into the process before returning a Body via View - then no additional rebuilding of the MutableStmtGraph is required as it could reuse the MutableStmtGraph instance that is passed via the BodyBuilder

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lbettels
Comment options

Answer selected by lbettels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants