CodeQL library for Rust
codeql/rust-all 0.2.25 (changelog, source)
Search

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.CfgNodes

Direct supertypes

Predicates

getStructExpr

Gets the underlying StructExpr.

getStructExprFieldList

Gets the struct expression field list of this struct expression, if it exists.

hasStructExprFieldList

Holds if getStructExprFieldList() exists.

Inherited predicates

getAstNodefrom CfgNode
getExpr

Gets the underlying Expr.

from ExprCfgNode
getLocationfrom CfgNode
toStringfrom CfgNode

Charpred