Translate all 30+ type definitions from src/ast.rs (727 lines Rust) into Lux ADTs in projects/lux-compiler/ast.lux. Types ported: Span, Ident, Visibility, Version, VersionConstraint, BehavioralProperty, WhereClause, ModulePath, ImportDecl, Program, Declaration, FunctionDecl, Parameter, EffectDecl, EffectOp, TypeDecl, TypeDef, RecordField, Variant, VariantFields, Migration, HandlerDecl, HandlerImpl, LetDecl, TraitDecl, TraitMethod, TraitBound, ImplDecl, TraitConstraint, ImplMethod, TypeExpr, Expr (19 variants), Literal, LiteralKind, BinaryOp, UnaryOp, Statement, MatchArm, Pattern. Passes `lux check` and `lux run`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6.1 KiB
6.1 KiB