Structsยง
- Bool
Node ๐Data - File
Reference ๐With Import
Functionsยง
- add_
enum_ ๐def - Adds the definition of the new enum before the target node.
- augment_
references_ ๐with_ imports - bool_
expr_ ๐to_ enum_ expr - Converts an expression of type
boolto one of the new enum type. - convert_
bool_ ๐to_ enum - find_
assignment_ ๐usage - find_
assoc_ ๐const_ usage - find_
bool_ ๐node - Attempts to find an appropriate node to apply the action to.
- find_
method_ ๐call_ expr_ usage - find_
negated_ ๐usage - find_
record_ ๐expr_ usage - find_
record_ ๐pat_ field_ usage - make_
bool_ ๐enum - node_
to_ ๐insert_ before - Finds where to put the new enum definition. Tries to find the ast node at the nearest module or at top-level, otherwise just returns the input node.
- replace_
bool_ ๐expr - replace_
usages ๐ - Replaces all usages of the target identifier, both when read and written to.