Module context

Module context 

Source

Modulesยง

early ๐Ÿ”’
late ๐Ÿ”’
private ๐Ÿ”’

Macrosยง

attribute_parsers ๐Ÿ”’

Structsยง

AcceptContext
Context given to every attribute parser when accepting
AttributeParser
Context created once, for example as part of the ast lowering context, through which all attributes can be lowered.
Early
used when parsing attributes for miscellaneous things before ast lowering
FinalizeContext ๐Ÿ”’
Context given to every attribute parser during finalization.
GroupTypeInner ๐Ÿ”’
GroupTypeInnerAccept ๐Ÿ”’
Late
used when parsing attributes during ast lowering
SharedContext
Context given to every attribute parser during finalization.

Enumsยง

AllowedResult ๐Ÿ”’
AllowedTargets ๐Ÿ”’
MaybeWarn ๐Ÿ”’
OmitDoc
ShouldEmit

Constantsยง

ALL_TARGETS ๐Ÿ”’
This is the list of all targets to which a attribute can be applied This is used for:

Traitsยง

Stage

Functionsยง

allowed_targets_applied ๐Ÿ”’
Takes a list of allowed_targets for an attribute, and the target the attribute was applied to. Does some heuristic-based filtering to remove uninteresting targets, and formats the targets into a string
filter_targets ๐Ÿ”’
parse_single_integer ๐Ÿ”’
Parse a single integer.

Type Aliasesยง

AcceptFn ๐Ÿ”’
FinalizeFn ๐Ÿ”’
GroupType ๐Ÿ”’