StubPlaceholder
A placeholder for a stub that does not exist. Can be populated using the `edit` method.
View source on GitHub
Inherits from
Methods
edit
Edits the source code of this placeholder node.
View source on GitHub
Parameters
new_srcrequiredThe new source code to replace the current source code.
fix_indentationdefault: FalseWhether to automatically fix the indentation of the new source code. Defaults to False.
prioritydefault: 0The priority of this edit operation. Higher priority edits are applied first. Defaults to 0.
dedupedefault: TrueWhether to deduplicate this edit against other pending edits. Defaults to True.
Returns
remove
Removes this element from its parent container.
View source on GitHub