Cooper.VarDecl (Cooper v0.1.0)

Copy Markdown

A parsed @name = value / @*name = value variable declaration (CASC.md §5.2). Resolution against a variable environment, and public/private visibility across imports, is Cooper.Loader/ Cooper.Resolver territory -- this struct only carries what the grammar can determine locally.

Summary

Types

t()

@type t() :: %Cooper.VarDecl{name: String.t(), public?: boolean(), value: term()}