Skip to content

How does one handle the $container property while manually rewriting the AST? #1767

Answered by msujew
soft-guy asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @soft-guy,

we have a utility function AstUtils.linkContentToContainer that you can use for this exact purpose. During the AST construction, you can just ignore the $container property (for example, by setting it to undefined!), and then use the linked function to let the framework take over the assignment.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by soft-guy
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