From 1250df334aff08bd2a16250b3972535fbac63722 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Mar 2026 01:03:59 +0100 Subject: Add extra_data to FileData --- oryxc/src/compiler.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'oryxc') diff --git a/oryxc/src/compiler.rs b/oryxc/src/compiler.rs index d4010e0..a151d94 100644 --- a/oryxc/src/compiler.rs +++ b/oryxc/src/compiler.rs @@ -41,10 +41,11 @@ use crate::{ pub struct FileId(usize); pub struct FileData { - name: Arc, - buffer: Arc, - tokens: Arc>>, - ast: Arc>>, + name: Arc, + buffer: Arc, + tokens: Arc>>, + ast: Arc>>, + extra_data: Arc>>, } impl FileData { @@ -57,10 +58,11 @@ impl FileData { buffer.push_str(unsafe { str::from_utf8_unchecked(&PAD) }); return Ok(Self { - name: name.into(), - buffer: buffer.into(), - tokens: Arc::new_uninit(), - ast: Arc::new_uninit(), + name: name.into(), + buffer: buffer.into(), + tokens: Arc::new_uninit(), + ast: Arc::new_uninit(), + extra_data: Arc::new_uninit(), }); } } -- cgit v1.2.3