mirror of
https://github.com/RustPython/Parser.git
synced 2025-09-11 21:06:16 +00:00
compile_with as recursive form
This commit is contained in:
parent
a9306971ae
commit
fa6c66272e
2 changed files with 56 additions and 38 deletions
|
@ -35,6 +35,8 @@ pub enum CompileErrorType {
|
|||
InvalidFutureFeature(String),
|
||||
FunctionImportStar,
|
||||
TooManyStarUnpack,
|
||||
EmptyWithItems,
|
||||
EmptyWithBody,
|
||||
}
|
||||
|
||||
impl fmt::Display for CompileErrorType {
|
||||
|
@ -70,6 +72,12 @@ impl fmt::Display for CompileErrorType {
|
|||
CompileErrorType::TooManyStarUnpack => {
|
||||
write!(f, "too many expressions in star-unpacking assignment")
|
||||
}
|
||||
CompileErrorType::EmptyWithItems => {
|
||||
write!(f, "empty items on With")
|
||||
}
|
||||
CompileErrorType::EmptyWithBody => {
|
||||
write!(f, "empty body on With")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue