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