Description[strong] Declaration-after-use errors.
We cannot yet detect use-before-declaration in general, because for that we'd
need to analyze the context when compiling. But we can detect an error case
where we first see a use, then a declaration.
For this, I also added end position tracking (needed for error messages) to
VariableProxy.
Note: the position naming is completely inconsistent: start_position &
end_position, position & end_position, pos & end_pos, beg_pos & end_pos, to name
a few. This doesn't fix all of it, but tries to unify towards start_position &
end_position whenever possible w/ minimal changes.
BUG=
Committed: https://crrev.com/1eddcf5b712c4a3c366a9a011e5b5b61a9f78315
Cr-Commit-Position: refs/heads/master@{#26880}
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : . #Patch Set 4 : . #Patch Set 5 : . #Patch Set 6 : . #Patch Set 7 : . #Patch Set 8 : fixe #Patch Set 9 : rebased #Patch Set 10 : more fixes + tests #
Total comments: 12
Patch Set 11 : more #Patch Set 12 : more (classes) #Patch Set 13 : more #Patch Set 14 : rebased #Patch Set 15 : code review #Patch Set 16 : minimizing diff #
Total comments: 15
Patch Set 17 : code review #Patch Set 18 : minor cleanup + more tests #Patch Set 19 : one more test #Patch Set 20 : pos #Patch Set 21 : rebased (error handling is split off) #
Total comments: 15
Patch Set 22 : . #Patch Set 23 : computed prop names comment fix #
Messages
Total messages: 28 (9 generated)
|