pub fn parse_with_context(
    code: &str,
    file: &Path,
) -> anyhow::Result<(Vec<Declaration>, Vec<PathBuf>)> {
    let mut ast = Vec::new();
    let mut file_index_table = Vec::new();
    parse_with_context_recursively(
        &mut ast,
        code,
        file,
        &mut file_index_table,
        &mut HashSet::new(),
    )?;
    Ok((ast, file_index_table))
}
//Parse file, adding CodeRef and includes
Parse file, adding CodeRef and includes
Parse file adding CodeRef and includes
pub fn parse_with_context(
    code: &str,
    file: &Path,
) -> anyhow::Result<(Vec<Declaration>, Vec<PathBuf>)> {
    let mut ast = Vec::new();
    let mut file_index_table = Vec::new();
    parse_with_context_recursively(
        &mut ast,
        code,
        file,
        &mut file_index_table,
        &mut HashSet::new(),
    )?;
    Ok((ast, file_index_table))
}
pub fn parse_with_context ( code : & str , file : & Path , ) -> anyhow :: Result < ( Vec < Declaration > , Vec < PathBuf > ) > { let mut ast = Vec :: new ( ) ; let mut file_index_table = Vec :: new ( ) ; parse_with_context_recursively ( & mut ast , code , file , & mut file_index_table , & mut HashSet :: new ( ) , ) ? ; Ok ( ( ast , file_index_table ) ) }
Parse file, adding CodeRef and includes
Parse file adding CodeRef and includes
code
&str
file
&Path
code
&str
file
&Path