Interface Cast

interface Cast {
    castKind:
        | "IntegralCast"
        | "LValueToRValue"
        | "FunctionToPointerDecay"
        | "IntegralToBoolean"
        | "IntegralToFloating"
        | "NoOp"
        | "ArrayToPointerDecay"
        | "BitCast"
        | "NullToPointer"
        | "PointerToIntegral"
        | "BuiltinFnToFnPtr"
        | "ToVoid";
    id: string;
    inner: Node[];
    kind: "CStyleCastExpr"
    | "ImplicitCastExpr";
    name?: string;
    range?: { begin: clang.Location; end: clang.Location };
    type: {
        desugaredQualType?: string;
        qualType: string;
        typeAliasDeclId?: string;
    };
}

Hierarchy (View Summary)

Properties

castKind:
    | "IntegralCast"
    | "LValueToRValue"
    | "FunctionToPointerDecay"
    | "IntegralToBoolean"
    | "IntegralToFloating"
    | "NoOp"
    | "ArrayToPointerDecay"
    | "BitCast"
    | "NullToPointer"
    | "PointerToIntegral"
    | "BuiltinFnToFnPtr"
    | "ToVoid"
id: string

Hexadecimal ID for the node, e.g. "0x..."

inner: Node[]
kind: "CStyleCastExpr" | "ImplicitCastExpr"

The kind of the node

name?: string
range?: { begin: clang.Location; end: clang.Location }
type: { desugaredQualType?: string; qualType: string; typeAliasDeclId?: string }