Commit Graph
16 Commits
Author SHA1 Message Date
chriseth 8eb0d5edf6 Export used errors in the AST. 2021-04-19 14:15:50 +02:00
Christian Parpart 32ba5f5ae7 libsolidity: Extend the AST for named AST nodes in order to get precise locations for names.
The actual SourceLocation on an ASTNode is representing the whole
ASTNode whereas in an LSP (for example) you are also interested in the
SourceLocation of a name of a construct (e.g. variable decarlation, function definition, ...).

This also properly encodes non-existend sources as `-1` in the JSON output (eliminating the use of `numeric_limits<size_t>::max()`).
2021-02-10 18:13:09 +01:00
Alex Beregszaszi c4fd7e4003 Remove/update tests 2020-11-25 11:40:33 +00:00
chriseth 9743390a53 Update tests. 2020-07-07 12:16:18 +02:00
hrkrshnn 4a001d568e Removed null members from JSON output 2020-05-20 16:56:33 +05:30
Alexander Arlt 52b9a92ff8 Update existing tests. 2020-05-13 18:16:59 +02:00
chriseth 236eff8416 Export immutability. 2020-04-07 17:30:54 +02:00
Gaith Hallak 0396bc7beb Modify the tests to include the function selector 2019-12-16 15:16:54 +03:00
Mathias Baumann e999409c89 Sync & update AST exporting according to AST changes 2019-12-09 10:42:24 +00:00
chriseth c326641341 Update missed tests for removal of superFunction. 2019-12-05 09:37:52 +01:00
Alexander Arlt cd3ad73b5a Update tests. 2019-11-01 14:54:47 -05:00
Gaith Hallak 9d34d7de2f Remove trailing spaces from JSON output 2019-10-02 18:01:47 +03:00
chriseth 9c72f25cce Merge pull request #7368 from ethereum/errorReporter
Switch to new error reporter.
2019-09-06 15:53:29 +02:00
Daniel Kirchner 998f7de2c8 Change command line test from --ast to --ast-json. 2019-09-06 13:46:18 +02:00
Daniel Kirchner f84371b2e0 Fix command line tests for new error reporter. 2019-09-06 13:31:57 +02:00
rocky 7fd7cc1e76 Produce AST even when there are parser errors 2019-08-07 15:25:53 +02:00