xshade-parser 0.1.2

Parser and untyped AST for the xshade language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use ::ast::*;

#[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct FunctionDeclaration {
    pub span: Span,
    pub function_name: Identifier,
    pub type_arguments: Vec<Identifier>,
    pub arguments: Vec<FunctionArgumentDeclaration>,
    pub return_type_name: TypeIdentifier,
    pub block: BlockDeclaration,
}

impl Spanned for FunctionDeclaration {
    fn get_span(&self) -> Span {
        self.span
    }
}