Expand description
Type annotation parsing for Shape
This module handles parsing of type annotations including:
- Basic types (number, string, boolean, etc.)
- Complex types (arrays, objects, tuples, functions)
- Generic types and union types
- Optional types
Functionsยง
- parse_
basic_ type - Parse basic types (primitives and special types)
- parse_
builtin_ type_ decl - Parse a declaration-only builtin type definition.
- parse_
comptime_ field_ overrides - Parse comptime field overrides for type aliases
- parse_
enum_ def - Parse enum definition
- parse_
function_ type - Parse function type signature
- parse_
generic_ type - Parse generic type with arguments
- parse_
interface_ def - Parse interface definition
- parse_
native_ struct_ type_ def - Parse native-layout type definition.
- parse_
object_ type - Parse object type with fields
- parse_
object_ type_ member - Parse a single object type member (field)
- parse_
struct_ type_ def - Parse struct type definition
- parse_
trait_ def - Parse trait definition
- parse_
type_ alias_ def - Parse type alias definition
- parse_
type_ annotation - Parse a type annotation
- parse_
type_ param - Parse a single type parameter
- parse_
type_ param_ list - Parse list of type parameters
- parse_
type_ params