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
//! Linearity and typestate checks.

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

pub(crate) fn run_linearity_checks(source: &assura_parser::ast::SourceFile) -> Vec<TypeError> {
    run_linearity_checks_source(source)
}

pub(crate) fn run_typestate_checks(source: &assura_parser::ast::SourceFile) -> Vec<TypeError> {
    run_typestate_checks_source(source)
}

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