Added inference of array length
This commit is contained in:
@@ -108,6 +108,10 @@ impl ArrayExpr {
|
||||
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
|
||||
super::children(self)
|
||||
}
|
||||
|
||||
pub fn repeat(&self) -> Option<&Expr> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// ArrayType
|
||||
|
||||
@@ -395,7 +395,8 @@ Grammar(
|
||||
collections: [["exprs", "Expr"]]
|
||||
),
|
||||
"ArrayExpr": (
|
||||
collections: [["exprs", "Expr"]]
|
||||
collections: [["exprs", "Expr"]],
|
||||
options:[["repeat","Expr"]]
|
||||
),
|
||||
"ParenExpr": (options: ["Expr"]),
|
||||
"PathExpr": (options: ["Path"]),
|
||||
|
||||
Reference in New Issue
Block a user