Module attr

Source
Expand description

Format attributes and meta items.

Modulesยง

doc_comment ๐Ÿ”’

Traitsยง

MetaVisitor ๐Ÿ”’

Functionsยง

argument_shape ๐Ÿ”’
attr_prefix ๐Ÿ”’
filter_inline_attrs ๐Ÿ”’
Returns attributes that are within outer_span.
format_derive ๐Ÿ”’
get_attrs_from_stmt ๐Ÿ”’
Returns attributes on the given statement.
get_span_without_attrs ๐Ÿ”’
has_newlines_before_after_comment ๐Ÿ”’
is_derive ๐Ÿ”’
rewrite_initial_doc_comments ๐Ÿ”’
Rewrite the any doc comments which come before any other attributes.
take_while_with_pred ๐Ÿ”’
Returns the first group of attributes that fills the given predicate. We consider two doc comments are in different group if they are separated by normal comments.