Contenuto principale

Cpp.NumberLiteral Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the number_literal nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.NumberLiteral represents the node number_literal in the syntax tree of your code.

void test_numbers() {
    int a = 42;
    double b = 3.14;
    long c = 0xFF;
}

The code shows three number literal tokens 42, 3.14, and 0xFF which correspond to number_literal nodes and are represented by Cpp.NumberLiteral in PQL.

Predicates

expand all

Version History

Introduced in R2026a