lua_semantics 0.9.0

semantic analysis and enhanced AST converter for lua_parser crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::Expression;

/// function call. `prefix(args)` or `prefix:method(args)`.
#[derive(Clone, Debug)]
pub struct ExprFunctionCall {
    pub prefix: Box<Expression>,
    pub method: Option<String>,
    pub args: Vec<Expression>,
}
impl ExprFunctionCall {
    pub fn new(prefix: Expression, method: Option<String>, args: Vec<Expression>) -> Self {
        Self {
            prefix: Box::new(prefix),
            method,
            args,
        }
    }
}