feat(tdl): Add NamedVar AST node. - #185
Conversation
Co-authored-by: sitaowang1998 <sitaowang1998@outlook.com>
WalkthroughThis change introduces the Changes
Sequence Diagram(s)sequenceDiagram
participant Test
participant NamedVar
participant Identifier
participant Type
Test->>Identifier: create()
Test->>Type: create()
Test->>NamedVar: NamedVar::create(Identifier, Type)
NamedVar->>Identifier: validate type
NamedVar->>Type: validate type
NamedVar-->>Test: Result<NamedVar>
Test->>NamedVar: serialize_to_str()
NamedVar->>Identifier: serialize_to_str()
NamedVar->>Type: serialize_to_str()
NamedVar-->>Test: formatted string
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Note 🔌 MCP (Model Context Protocol) integration is now available in Early Access!Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-authored-by: sitaowang1998 <sitaowang1998@outlook.com>
Description
This PR introduces the
NamedVarAST node for named variables. A named variable contains an ID (Identifier) and a type (Type).Checklist
breaking change.
Validation performed
Summary by CodeRabbit