Small bugs.
This commit is contained in:
parent
ac9ff6ecec
commit
de8e2ba397
@ -1,42 +1,42 @@
|
||||
pub mod node {
|
||||
include!(concat!(env!("OUT_DIR"), "/src/ast/node.rs"));
|
||||
|
||||
|
||||
impl Default for Parameters {
|
||||
fn default() -> Self {
|
||||
Self::new(vec![])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl Default for GenericParameters {
|
||||
fn default() -> Self {
|
||||
Self::new(Box::new(IdentifierList::new(vec![])))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl Default for GenericArguments {
|
||||
fn default() -> Self {
|
||||
Self::new(Box::new(TypeUseList::new(vec![])))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl Default for ImplementsList {
|
||||
fn default() -> Self {
|
||||
Self::new(vec![])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl ReturnType {
|
||||
pub fn void() -> Self {
|
||||
Self::new(Box::new(TypeUse::PrimitiveType(PrimitiveType::Void)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl Default for ClassConstructor {
|
||||
fn default() -> Self {
|
||||
Self::new(vec![])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl Default for ClosureParameters {
|
||||
fn default() -> Self {
|
||||
Self::new(vec![])
|
||||
|
||||
@ -143,13 +143,17 @@ ReturnType:
|
||||
# Top-level constructs
|
||||
CompilationUnit:
|
||||
children:
|
||||
- parent_mod
|
||||
- parent_mod:
|
||||
optional: true
|
||||
- use_statements:
|
||||
rule: UseStatement
|
||||
vec: true
|
||||
- module_level_declarations:
|
||||
rule: ModuleLevelDeclaration
|
||||
vec: true
|
||||
- eoi:
|
||||
rule: EOI
|
||||
skip: true
|
||||
ParentMod:
|
||||
children:
|
||||
- mod_kw:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user