aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2016-01-07 13:58:43 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-01-07 20:19:50 +0000
commitd640bd3cecaa9ff8a1a3df4a339eebc9b786af3d (patch)
treeac90f0f3d13ccc476781554509acae16a6cc57a7 /src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java
parent763f1397155fc7c12e1f1071a1bc942f91b867c4 (diff)
Remove syntactic sugar when assigning to a dict item.
e.g. a['key'] = value is handled through a proper lvalue, instead of using syntactic sugar. Benefits include: - better error messages (reference to the '+' operator was cryptic) - more robust, e.g. it is compatible with the += operator - can be used in a tuple, e.g. a[1], a[2] = 3, 4 - it is a step towards mutable dict -- MOS_MIGRATED_REVID=111597545
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java')
0 files changed, 0 insertions, 0 deletions