codeql/shared/tree-sitter-extractor
Taus ff35f9fb8c Shared: Clean up `NodeInfo` in shared extractor
I was perusing the shared extractor the other day, when I came across
the `NodeInfo` struct. I noticed that the `fields` and `subtypes` fields
on this struct had two seemingly identical ways of expressing the same
thing: `None` and `Some(empty)` (where `empty` is respectively the empty
map and the empty vector). As far as I can tell, there's no semantic
difference in either case, so we can just elide the option type entirely
and use the empty value directly. This has the nice side-effect of
cleaning up some of the other code.
2023-09-27 12:29:07 +00:00
..
src Shared: Clean up `NodeInfo` in shared extractor 2023-09-27 12:29:07 +00:00
tests Shared: Support glob patterns in shared extractor 2023-08-23 14:11:21 +01:00
.gitignore
Cargo.toml Shared: Bump extractor version 2023-08-23 14:11:22 +01:00
rust-toolchain.toml Shared: Pin rust version for shared extractor 2023-05-05 06:36:55 +00:00