Lyricdev
GitHub

enum Decl

pub enum Decl :: [Debug]

Conforms to Debug.

A declaration, each kind a variant.

Variants

Fn(FnDecl)
Struct(StructDecl)
Class(ClassDecl)
Enum(EnumDecl)
Interface(InterfaceDecl)
Extend(ExtendDecl)
Let(LetDecl)
Field(FieldDecl)
AssocType(AssocType)
Alias(AliasDecl)
Import(ImportDecl)

Methods

pub fn span(): Span

Returns where this declaration stands.

pub fn toSource(): string
pub fn children(): Node[]

Returns the nodes directly inside this one, in source order.