Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ external/
!CHANGELOG.md
*.vsix
editors/vscode/package-lock.json

# Local build artifacts
/refcell_eq
170 changes: 112 additions & 58 deletions core/ast/src/builder.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//! - [`arena::Arena`] - Central storage for all AST nodes with O(1) lookups
//! - [`builder::Builder`] - Builds AST from tree-sitter concrete syntax tree
//! - [`nodes`] - AST node type definitions (`SourceFile`, `FunctionDefinition`, etc.)
//! - [`parser_context::ParserContext`] - Multi-file parsing context (WIP)
//! - [`parser_context::ParserContext`] - Multi-file parsing context
//!
//! # Key Features
//!
Expand Down
2 changes: 1 addition & 1 deletion core/ast/src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ ast_nodes! {
pub struct ModuleDefinition {
pub visibility: Visibility,
pub name: Rc<Identifier>,
pub body: Option<Vec<Definition>>,
pub body: RefCell<Option<Vec<Definition>>>,
}

pub struct Argument {
Expand Down
2 changes: 1 addition & 1 deletion core/ast/src/nodes_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl ModuleDefinition {
location,
visibility,
name,
body,
body: RefCell::new(body),
}
}

Expand Down
Loading