• Joyee Cheung's avatar
    [parser] use ParsePropertyInfo as out parameter in object/class literals · 535542a8
    Joyee Cheung authored
    This patch refactors the parsing of object literal properties and
    class literal properties, putting the out parameters into a pointer of
    struct `ParsePropertyInfo`. This struct is also aware of its potition
    so `ParsePropertyName()` can also use this information to error
    when parsing a private name in an object literal. It also makes
    sure that the `ClassLiteralProperty::Kind` are all inferred
    from the `ParsePropertyKind` and get used right away instead of
    being passed around as out parameters.
    
    Bug: v8:8330
    Change-Id: I4c52592dfcaa3c8df30c4aba4c46e5c675acb394
    Reviewed-on: https://chromium-review.googlesource.com/c/1347904
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57876}
    535542a8
Name
Last commit
Last update
..
OWNERS Loading commit data...
expression-classifier.h Loading commit data...
expression-scope-reparenter.cc Loading commit data...
expression-scope-reparenter.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
keywords-gen.h Loading commit data...
keywords.txt Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
pattern-rewriter.cc Loading commit data...
preparsed-scope-data-impl.h Loading commit data...
preparsed-scope-data.cc Loading commit data...
preparsed-scope-data.h Loading commit data...
preparser-logger.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner-inl.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...