mirror of
https://github.com/danog/parser.git
synced 2024-12-02 09:27:50 +01:00
chore: fmt
This commit is contained in:
parent
054b10667b
commit
3ae4555d81
@ -791,9 +791,7 @@ impl Parser {
|
|||||||
self.right_brace(state)?;
|
self.right_brace(state)?;
|
||||||
then
|
then
|
||||||
} else {
|
} else {
|
||||||
vec![
|
vec![self.statement(state)?]
|
||||||
self.statement(state)?
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut else_ifs: Vec<ElseIf> = Vec::new();
|
let mut else_ifs: Vec<ElseIf> = Vec::new();
|
||||||
@ -838,9 +836,7 @@ impl Parser {
|
|||||||
|
|
||||||
self.right_brace(state)?;
|
self.right_brace(state)?;
|
||||||
} else {
|
} else {
|
||||||
r#else = vec![
|
r#else = vec![self.statement(state)?];
|
||||||
self.statement(state)?
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Statement::If {
|
Statement::If {
|
||||||
|
@ -62,11 +62,7 @@ fn third_party_4_nikic_php_parser() {
|
|||||||
"nikic/PHP-Parser",
|
"nikic/PHP-Parser",
|
||||||
"https://github.com/nikic/PHP-Parser",
|
"https://github.com/nikic/PHP-Parser",
|
||||||
"4.x",
|
"4.x",
|
||||||
&[
|
&["lib/PhpParser", "grammar", "test"],
|
||||||
"lib/PhpParser",
|
|
||||||
"grammar",
|
|
||||||
"test"
|
|
||||||
],
|
|
||||||
&[],
|
&[],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user