Commit 108128d
committed
c++, contracts: Improve postcondition locations.
We should now point to the postcondition var if relevant:
3 | post (r: r > 5)
| ~~~~~~^~~~~~~~~
We now apply a wrapper when deferring parses - so that the identifier can
be re-created in the actual parse. We also check for this in the relevant
places.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>1 parent e233158 commit 108128d
2 files changed
+26
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
| 2852 | + | |
2852 | 2853 | | |
2853 | | - | |
2854 | | - | |
2855 | | - | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
2856 | 2857 | | |
2857 | 2858 | | |
2858 | 2859 | | |
2859 | 2860 | | |
2860 | 2861 | | |
2861 | 2862 | | |
2862 | | - | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2863 | 2870 | | |
2864 | 2871 | | |
2865 | 2872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31502 | 31502 | | |
31503 | 31503 | | |
31504 | 31504 | | |
| 31505 | + | |
| 31506 | + | |
31505 | 31507 | | |
31506 | 31508 | | |
31507 | 31509 | | |
| |||
31588 | 31590 | | |
31589 | 31591 | | |
31590 | 31592 | | |
31591 | | - | |
| 31593 | + | |
31592 | 31594 | | |
31593 | | - | |
| 31595 | + | |
31594 | 31596 | | |
31595 | 31597 | | |
31596 | | - | |
| 31598 | + | |
| 31599 | + | |
31597 | 31600 | | |
31598 | | - | |
31599 | | - | |
31600 | | - | |
| 31601 | + | |
| 31602 | + | |
| 31603 | + | |
| 31604 | + | |
| 31605 | + | |
31601 | 31606 | | |
31602 | 31607 | | |
31603 | 31608 | | |
| |||
31649 | 31654 | | |
31650 | 31655 | | |
31651 | 31656 | | |
31652 | | - | |
| 31657 | + | |
31653 | 31658 | | |
31654 | | - | |
| 31659 | + | |
| 31660 | + | |
31655 | 31661 | | |
31656 | 31662 | | |
31657 | 31663 | | |
31658 | 31664 | | |
31659 | 31665 | | |
31660 | 31666 | | |
31661 | | - | |
| 31667 | + | |
31662 | 31668 | | |
31663 | 31669 | | |
31664 | 31670 | | |
| |||
0 commit comments