Re-enable AstNode.

This commit is contained in:
Tom Alexander
2023-10-29 21:33:43 -04:00
parent 1f3b5262b8
commit afe62de2b6
2 changed files with 205 additions and 205 deletions

View File

@@ -9,6 +9,7 @@ use organic::types::Element;
use organic::types::Object;
use super::ast_node::IAstNode;
use super::ast_node::IntoIAstNode;
use super::RefRegistry;
type IdCounter = u16;
@@ -117,8 +118,7 @@ async fn convert_reference_contents<'orig, 'parse>(
let contents = {
let mut ret = Vec::new();
for obj in contents.iter() {
// TODO
// ret.push(obj.into_ast_node(registry).await?);
ret.push(obj.into_ast_node(registry.clone()).await?);
}
ret
};
@@ -133,8 +133,7 @@ async fn convert_definition_contents<'orig, 'parse>(
let contents = {
let mut ret = Vec::new();
for obj in contents.iter() {
// TODO
// ret.push(obj.into_ast_node(registry).await?);
ret.push(obj.into_ast_node(registry.clone()).await?);
}
ret
};