Skip to main content

Module types

Module types 

Source
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