sun::types::NullPointerType

sun::types::NullPointerType

class · Source (opens in a new tab)

class sun::types::NullPointerType : public sun::types::Type

Null pointer type - represents the null literal Compatible with any pointer type for assignment and comparison.

Inherits

Public Functions

NullPointerType

public · function · Source (opens in a new tab)

sun::types::NullPointerType::NullPointerType()=default

Creates an instance with its default state.

equals

public · function · Source (opens in a new tab)

bool sun::types::NullPointerType::equals(const Type &other) const override

Reports whether the other type has the same semantic identity.

Related: Type

getKind

public · function · Source (opens in a new tab)

Kind sun::types::NullPointerType::getKind() const override

Returns the type category used for semantic checks and dispatch.

Related: Kind

toLLVMType

public · function · Source (opens in a new tab)

llvm::Type * sun::types::NullPointerType::toLLVMType(llvm::LLVMContext &ctx) const override

Returns opaque pointer (null is a pointer value).

toString

public · function · Source (opens in a new tab)

std::string sun::types::NullPointerType::toString() const override

Returns a readable representation for diagnostics and debugging.

Public Fields

StaticKind

public · variable · static · Source (opens in a new tab)

Kind sun::types::NullPointerType::StaticKind = Kind::NullPointer

No documentation comment.

Related: Kind, Kind::NullPointer