Cpp.LabeledStatement Class
Namespace: Cpp
Superclasses: AstNodeProperties
Represents the labeled_statement nodes in the syntax tree of your code
Since R2026a
Description
The PQL class LabeledStatement represents the node labeled_statement in the syntax tree of your code.
int main() {
labeled_statement: {
label: "foo";
statement: {
return 0;
};
}
}
In this code, the labeled_statement node corresponds to a labeled statement in C++, where the label "foo" prefixes the inner statement.
Predicates
Version History
Introduced in R2026a