DeclContext

enum DeclContext

The declaration context a wrapper's target appeared in. Tags match parse_decl_tokens_in: file, block, then the nominal bodies.

Cases

case top_level

A file-level declaration.

case block

A declaration nested in an executable block.

case struct_body

A member of a struct body.

case enum_body

A member or variant in an enum body.

case protocol_body

A requirement or nested declaration in a protocol body.

case extend_body

A member in an extension body.