add suffixed to Identifer and QualifiedIdentifier

This commit is contained in:
Luke Boswell 2024-03-26 14:17:48 +11:00
parent 0a3b9c34b3
commit 3c3e523b45
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
115 changed files with 1587 additions and 1085 deletions

View file

@ -73,7 +73,8 @@ impl ReplState {
match value_def {
ValueDef::Annotation(
Loc {
value: Pattern::Identifier(ident),
// TODO is this right for suffixed
value: Pattern::Identifier { ident, suffixed: _ },
..
},
_,
@ -87,7 +88,8 @@ impl ReplState {
}
ValueDef::Body(
Loc {
value: Pattern::Identifier(ident),
// TODO is this right for suffixed
value: Pattern::Identifier { ident, suffixed: _ },
..
},
_,
@ -95,7 +97,8 @@ impl ReplState {
| ValueDef::AnnotatedBody {
body_pattern:
Loc {
value: Pattern::Identifier(ident),
// TODO is this right for suffixed
value: Pattern::Identifier { ident, suffixed: _ },
..
},
..
@ -131,6 +134,7 @@ impl ReplState {
ValueDef::ExpectFx { .. } => {
todo!("handle receiving an `expect-fx` - what should the repl do for that?")
}
ValueDef::Stmt(_) => todo!(),
}
}
ParseOutcome::TypeDef(TypeDef::Alias {