Skip to content

Commit 4354bba

Browse files
committed
If a block ends with an expression, skip it
1 parent 6ac984a commit 4354bba

22 files changed

Lines changed: 4183 additions & 604 deletions

File tree

backends/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ authors = ["Samuel Moelius <sam@moeli.us>"]
99
license = "AGPL-3.0"
1010
repository = "https://github.com/trailofbits/necessist"
1111

12+
build = "build/main.rs"
13+
1214
[dependencies]
1315
necessist-core = { version = "=0.6.0", path = "../core" }
1416

@@ -63,6 +65,7 @@ tempfile = "3.10"
6365

6466
[build-dependencies]
6567
heck = "0.5"
68+
proc-macro2 = "1.0"
6669
syn = "2.0"
6770

6871
[lints]

backends/assets/README.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
The file pt.rs, in the same directory as this README, is from the following location:
1+
The file solang_parser_pt.rs, in the same directory as this README, is from the following location:
22

33
https://github.com/xermicus/solang/blob/6677ff21d607b74037db6f8c4abbd5334ebbddb3/solang-parser/src/pt.rs
44

55
The file is used by build.rs to generate a Solang AST visitor implementation.
6+
7+
The file syn_expr.rs is from the following location:
8+
9+
https://github.com/dtolnay/syn/blob/7f2dce7ede0e0d8c973a88f76e61544393be2d3a/src/expr.rs
10+
11+
The file is used by build.rs to define the `expression_with_block` function.

0 commit comments

Comments
 (0)