Skip to content

Conversation

@zharinov
Copy link
Member

Summary

  • Add query/emit.rs - bytecode emission from TypeContext/LinkedQuery
  • Add bytecode/emit/typescript.rs - TypeScript generation from bytecode Module
  • Add emit() methods to Query and LinkedQuery
  • Add comprehensive tests in emit_tests.rs

This is purely additive - the existing type_check/emit_ts.rs path remains unchanged. A follow-up PR will switch consumers to the new bytecode path.

Test plan

  • cargo test -p plotnik-lib --features plotnik-langs passes (602 tests)
  • New emit tests verify bytecode structure and TypeScript output

@zharinov zharinov merged commit 29b9807 into master Dec 30, 2025
4 checks passed
@zharinov zharinov deleted the feat/bytecode-emit branch December 30, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants