Fix crash when parsing invalid class declaration element
This commit is contained in:
parent
9afdd1e607
commit
91c4b75bc1
1 changed files with 3 additions and 1 deletions
|
@ -1062,7 +1062,9 @@ after_vars:
|
||||||
case NodeKind::TypeKeyword:
|
case NodeKind::TypeKeyword:
|
||||||
// TODO
|
// TODO
|
||||||
default:
|
default:
|
||||||
throw UnexpectedTokenDiagnostic(File, T0, std::vector<NodeKind> { NodeKind::LetKeyword, NodeKind::TypeKeyword });
|
DE.add<UnexpectedTokenDiagnostic>(File, T0, std::vector<NodeKind> { NodeKind::LetKeyword, NodeKind::TypeKeyword });
|
||||||
|
skipToLineFoldEnd();
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue