diff options
author | Laurent Le Brun <laurentlb@google.com> | 2015-03-19 10:12:49 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-03-20 14:34:30 +0000 |
commit | 024238256de1c2ffa3e75cff5900e9df21322ae7 (patch) | |
tree | 47555ca1a1d51b00d0e2234ad0f85ade2e50e452 /src/test/java/com/google/devtools/build/lib/syntax | |
parent | 5ea2c89608f883ec57ca09d85954847376fe7e0b (diff) |
Refactoring: Introduce a new class LValue.
This CL is just moving code from AssignmentStatement to a new class. The goal
is to share code dealing with LValues.
LValues can be found here:
- lvalue = 2
- [for lvalue in exp]
- {a: b for lvalue in exp]
- for lvalue in exp: pass
The LValue itself can have different forms:
- a
- a, b
- a[0]
- a, (b, c)
- [a[0], (b, c)]
- a[1:5]
Although we may not handle everything, we need to make sure that the same
things can be used in variable assignment and in for loops.
--
MOS_MIGRATED_REVID=89015483
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax')
0 files changed, 0 insertions, 0 deletions