svelte-compiler 0.1.0

Core compiler API for the Rust Svelte toolchain
Documentation
1
2
3
4
5
6
use crate::ast::modern::Root;
use crate::error::CompileError;

pub(crate) fn validate(source: &str, root: &Root) -> Option<CompileError> {
    crate::api::validation::validate_component_snippets(source, root)
}