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