Placeholder
A placeholder for a node that does not exist yet. Use bool checks (ie is node) to check if the node exists. You can call edit to replace the placeholder with a real node and it will automatically insert formatting.
View source on GitHub
Methods
edit
Replaces the content of a placeholder node with new source code.
View source on GitHub
Parameters
new_srcrequiredThe new source code to replace the placeholder with.
fix_indentationdefault: FalseWhether to automatically fix the
prioritydefault: 0Priority value for conflict resolution.
dedupedefault: TrueWhether to prevent duplicate insertions.
Returns
remove
Removes this element from its parent container.
View source on GitHub