• Leszek Swirski's avatar
    [parser] Declarations store Variables not proxies · 92841799
    Leszek Swirski authored
    Storing a VariableProxy in declarations means that a declaration and
    initialisation assignment are tightly coupled to use the same var. In
    particular, this means that Var declarations in with scopes have to
    clone the VariableProxy to split the declaration and initializer LHS
    lookup.
    
    This patch changes declarations to point directly to the Variable, not
    the VariableProxy. This will allow future refactoring to decouple
    declarations and initialisations.
    
    Change-Id: I0baa77bfd12fe175f9521d292740d7d712cffd37
    Reviewed-on: https://chromium-review.googlesource.com/c/1406683Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#58843}
    92841799
Name
Last commit
Last update
..
OWNERS Loading commit data...
ast-function-literal-id-reindexer.cc Loading commit data...
ast-function-literal-id-reindexer.h Loading commit data...
ast-source-ranges.h Loading commit data...
ast-traversal-visitor.h Loading commit data...
ast-value-factory.cc Loading commit data...
ast-value-factory.h Loading commit data...
ast.cc Loading commit data...
ast.h Loading commit data...
modules.cc Loading commit data...
modules.h Loading commit data...
prettyprinter.cc Loading commit data...
prettyprinter.h Loading commit data...
scopes.cc Loading commit data...
scopes.h Loading commit data...
source-range-ast-visitor.cc Loading commit data...
source-range-ast-visitor.h Loading commit data...
variables.cc Loading commit data...
variables.h Loading commit data...