circom-lsp-program-structure 2.1.5

Support crate for circom-lsp
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::ast::*;

impl AST {
    pub fn get_includes(&self) -> &Vec<String> {
        &self.includes
    }

    pub fn get_version(&self) -> &Option<Version> {
        &self.compiler_version
    }

    pub fn get_definitions(&self) -> &Vec<Definition> {
        &self.definitions
    }
    pub fn decompose(self) -> (Meta, Option<Version>, Vec<String>, Vec<Definition>, Option<MainComponent>) {
        (self.meta, self.compiler_version, self.includes, self.definitions, self.main_component)
    }
}