Decl

struct Decl

A parsed declaration with file-interface visibility and source range.

is_public records the written modifier before type checking verifies that the public contract exposes only public types. Nested members and variants use the same representation as top-level declarations.

Properties

let kind: DeclKind

The parsed declaration grammar and child nodes.

let is_public: Bool

Whether the declaration is publicly visible.

let start: Int

The inclusive starting byte offset in the source.

let end: Int

The exclusive ending byte offset in the source.