assura-types 0.4.3

Type checking for the Assura contract language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Information flow, taint, and dependent type checks (thin wrappers).

use crate::TypeError;
use crate::checkers::*;

pub(crate) fn run_taint_checks(source: &assura_parser::ast::SourceFile) -> Vec<TypeError> {
    TaintChecker::check_file(source)
}

pub(crate) fn run_info_flow_checks(source: &assura_parser::ast::SourceFile) -> Vec<TypeError> {
    InfoFlowChecker::check_source(source)
}

#[cfg(test)]
#[path = "info_flow_tests.rs"]
mod tests;