use crate::syntax::builders::parameter::build_parameter_node;
use crate::syntax::{SyntaxGraphArgs, SyntaxGraphError};
use crate::utilities::text_nodes::node_to_str;
use crate::NodeId;
pub fn reader(
args: &mut SyntaxGraphArgs<'_>,
n_id: NodeId,
) -> Result<Option<NodeId>, SyntaxGraphError> {
let graph = args.ast_graph;
let variable = node_to_str(graph, n_id);
build_parameter_node(args, n_id, Some(variable), None, None, &[], None, None).map(Some)
}