Documentation menu

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_srcrequired

The new source code to replace the placeholder with.

fix_indentationdefault: False

Whether to automatically fix the

prioritydefault: 0

Priority value for conflict resolution.

dedupedefault: True

Whether to prevent duplicate insertions.

Returns

remove

Removes this element from its parent container.

View source on GitHub

Returns