Merge: typing: include a hook to enable more precise error information on 'expected...
authorJean Privat <jean@pryen.org>
Thu, 3 Mar 2016 07:35:01 +0000 (02:35 -0500)
committerJean Privat <jean@pryen.org>
Thu, 3 Mar 2016 07:35:01 +0000 (02:35 -0500)
commit37f6b091d36e9f3f42ecdef72a80c49749d206ab
tree2ccaf07b6292021651ae8d038dfcbf5a55e3e12c
parentae0334bdfbf2699fe69640f461f753ffd6c3bf13
parent958d841c57fd96b2dec9b61158f4da2eca6c9d7f
Merge: typing: include a hook to enable more precise error information on 'expected expression' errors

The point is to help to solve the second part of #1392

Before:

~~~
print (-1).to_s
^
test.nit:2,1--10: Error: expected an expression.
~~~

After:

~~~
print (-1).to_s
^
test.nit:2,1--10: Error: expected an expression to be the receiver of `to_s`
~~~

Pull-Request: #1963
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>