Contenuto principale

Cpp.AstNodeProperties Class

R2026b

Namespace: Cpp

Represents the syntax tree nodes of your code

Since R2026a

Description

AstNodeProperties class is a superclass that represent a syntax tree node. This class implements predicates of a generic AST node that can be accessed and invoked by its child classes.

This class represent nodes of both an abstract syntax tree (AST) and the concrete syntax tree (CST). The CST preserves anonymous nodes such as operators, keywords, brackets, and parentheses. The AST omits such syntactic details and represents the abstract structure. Because this class represents both kinds of syntax trees, some predicate of this class queries the AST while other predicates query the CST.

Predicates

expand all

Version History

Introduced in R2026a