mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Rust: rename MatchExpr.expr to scrutinee in all layers
This doesn't require `ql.name` and is simpler while we don't have to write upgrade scripts. The `ql.name` mechanism might get useful once we do have to write upgrade scripts, as that doesn't change the dbscheme.
This commit is contained in:
@@ -28,6 +28,7 @@ fn class_name(type_name: &String) -> String {
|
||||
fn property_name(type_name: &String, field_name: &String) -> String {
|
||||
match (type_name.as_str(), field_name.as_str()) {
|
||||
("Path", "segment") => "part".to_owned(),
|
||||
("MatchExpr", "expr") => "scrutinee".to_owned(),
|
||||
(_, "then_branch") => "then".to_owned(),
|
||||
(_, "else_branch") => "else_".to_owned(),
|
||||
_ => field_name.to_owned(),
|
||||
|
||||
Reference in New Issue
Block a user