Commit db70e0b3 authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[parser] Simplify ParseIdentifier

ParseAndClassifyIdentifier cannot result in invalid assignment patterns, so
don't check for them.

Change-Id: I038c651502e10d17b2da1c21527ef1b9e4cd16ea
Reviewed-on: https://chromium-review.googlesource.com/c/1270916
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56489}
parent a297c587
......@@ -1673,7 +1673,6 @@ typename ParserBase<Impl>::IdentifierT ParserBase<Impl>::ParseIdentifier(
auto result = ParseAndClassifyIdentifier(CHECK_OK_CUSTOM(NullIdentifier));
if (allow_restricted_identifiers == kDontAllowRestrictedIdentifiers) {
ValidateAssignmentPattern(CHECK_OK_CUSTOM(NullIdentifier));
ValidateBindingPattern(CHECK_OK_CUSTOM(NullIdentifier));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment