Class MakeCfgNodes::Nodes::StructExprCfgNode
A struct expression. For example:
let first = Foo { a: 1, b: 2 };
let second = Foo { a: 2, ..first };
let n = Foo { a: 1, b: 2 }.b;
Foo { a: m, .. } = second;
Import path
import codeql.rust.controlflow.internal.generated.CfgNodesDirect supertypes
Predicates
| getStructExpr | Gets the underlying |
| getStructExprFieldList | Gets the struct expression field list of this struct expression, if it exists. |
| hasStructExprFieldList | Holds if |
Inherited predicates
| getAstNode | from CfgNode | |
| getExpr | Gets the underlying | from ExprCfgNode |
| getLocation | from CfgNode | |
| toString | from CfgNode |