summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-07-29 22:16:01 +0000
committerDamien George <damien.p.george@gmail.com>2015-07-29 22:16:01 +0000
commitcfc4c338015cb65a35228706c44485dd57ec238e (patch)
tree9a67097337b9872f8889e908fa38f86d49103618 /docs/library
parent28596edf074f227ff5897ca280d77d38cccf4c85 (diff)
downloadmicropython-cfc4c338015cb65a35228706c44485dd57ec238e.tar.gz
micropython-cfc4c338015cb65a35228706c44485dd57ec238e.zip
py/compile: Give more precise line number for compile errors.
Previous to this patch there were some cases where line numbers for errors were 0 (unknown). Now the compiler attempts to give a better line number where possible, in some cases giving the line number of the closest statement, and other cases the line number of the inner-most scope of the error (eg the line number of the start of the function). This helps to give good (and sometimes exact) line numbers for ViperTypeError exceptions. This patch also makes sure that the first compile error (eg SyntaxError) that is encountered is reported (previously it was the last one that was reported).
Diffstat (limited to 'docs/library')
0 files changed, 0 insertions, 0 deletions