주요 콘텐츠

Cpp.AssignmentExpression Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the assignment_expression nodes in the syntax tree of your code

Since R2026a

Description

The PQL class AssignmentExpression represents the node assignment_expression in the syntax tree of your code.

// demo.cpp
#include <vector>
int main() {
    int a = 0;
    int b = 1;
    a = b + 1;
    b += 2;
    a *= b;
    int arr[4];
    arr[1] = 5;
    return a;
}

The C++ demo contains several assignment_expression occurrences such as a = b + 1, b += 2, a *= b, and arr[1] = 5, each corresponding to the assignment_expression node.

Predicates

expand all

Version History

Introduced in R2026a