#![doc = include_str!("readme.md")]
use crate::{ast::NoteDocument, language::NotedownLanguage};
use oak_core::{Builder, BuilderCache, TextEdit, source::Source};
pub struct NoteBuilder<'config> {
pub(crate) config: &'config NotedownLanguage,
}
impl<'config> NoteBuilder<'config> {
pub fn new(config: &'config NotedownLanguage) -> Self {
Self { config }
}
}
impl<'config> Builder<NotedownLanguage> for NoteBuilder<'config> {
fn build<'a, S: Source + ?Sized>(&self, _source: &S, _edits: &[TextEdit], _cache: &'a mut impl BuilderCache<NotedownLanguage>) -> oak_core::builder::BuildOutput<NotedownLanguage> {
oak_core::errors::OakDiagnostics { result: Ok(NoteDocument {}), diagnostics: Vec::new() }
}
}