mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 00:27:29 +09:00
Refactor abortIfSyntaxParser after destructring
This commit is contained in:
parent
51183e0be2
commit
43c3ab5a0e
1 changed files with 9 additions and 9 deletions
|
|
@ -757,7 +757,15 @@ ParserBase::reportNoOffset(ParseReportKind kind, bool strict, unsigned errorNumb
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
bool
|
inline bool
|
||||||
|
Parser<FullParseHandler>::abortIfSyntaxParser()
|
||||||
|
{
|
||||||
|
handler.disableSyntaxParser();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
inline bool
|
||||||
Parser<SyntaxParseHandler>::abortIfSyntaxParser()
|
Parser<SyntaxParseHandler>::abortIfSyntaxParser()
|
||||||
{
|
{
|
||||||
abortedSyntaxParse = true;
|
abortedSyntaxParse = true;
|
||||||
|
|
@ -4524,14 +4532,6 @@ Parser<ParseHandler>::arrayBindingPattern(DeclarationKind kind, YieldHandling yi
|
||||||
return literal;
|
return literal;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
|
||||||
bool
|
|
||||||
Parser<SyntaxParseHandler>::checkDestructuringAssignmentPattern(Node pattern,
|
|
||||||
PossibleError* possibleError /* = nullptr */)
|
|
||||||
{
|
|
||||||
return abortIfSyntaxParser();
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename ParseHandler>
|
template <typename ParseHandler>
|
||||||
typename ParseHandler::Node
|
typename ParseHandler::Node
|
||||||
Parser<ParseHandler>::destructuringDeclaration(DeclarationKind kind, YieldHandling yieldHandling,
|
Parser<ParseHandler>::destructuringDeclaration(DeclarationKind kind, YieldHandling yieldHandling,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue