DocumentableID

enum DocumentableID

A typed reference into DocumentableCollection.items.

Every payload is a zero-based item index. The case records the expected Documentable case so callers cannot accidentally treat, for example, a parameter entry as a type entry.

Cases

case builtin(Int)

Refers to a compiler-provided builtin type entry.

case function(Int)

Refers to a top-level function entry.

case global(Int)

Refers to a top-level binding entry.

case method(Int)

Refers to a method entry owned by a nominal declaration.

case nominal(Int)

Refers to a struct or enum entry.

case property(Int)

Refers to a stored-property entry.

case type(Int)

Refers to a type spelling used by another entry.

case variant(Int)

Refers to an enum-variant entry.

case effect_declaration(Int)

Refers to a top-level effect declaration.

case effect(Int)

Refers to an effect name used by a function entry.

case parameter(Int)

Refers to a function-parameter entry.