sun::ast::QualifiedNameAST

sun::ast::QualifiedNameAST

class · Source (opens in a new tab)

class sun::ast::QualifiedNameAST : public sun::ast::ExprAST

Qualified name expression: Module.name or Namespace::name.

Inherits

Public Functions

QualifiedNameAST

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

sun::ast::QualifiedNameAST::QualifiedNameAST(std::vector< std::string > parts)

Creates this syntax node and takes ownership of any supplied child expressions.

dotLabel

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

std::string sun::ast::QualifiedNameAST::dotLabel() const override

Returns the node label used in syntax-tree graph visualizations.

getFullName

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

std::string sun::ast::QualifiedNameAST::getFullName() const

Get fully qualified name as string with dot separator (e.g., "std.Vec").

getName

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

const std::string & sun::ast::QualifiedNameAST::getName() const

Get the final name (last part).

getNamespacePath

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

std::vector< std::string > sun::ast::QualifiedNameAST::getNamespacePath() const

Get the namespace/module path (all parts except the last).

getParts

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

const std::vector< std::string > & sun::ast::QualifiedNameAST::getParts() const

Returns the qualified-name components.

getType

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

ASTNodeType sun::ast::QualifiedNameAST::getType() const override

Returns the syntax-node kind used to dispatch tree visitors.

Related: ASTNodeType

toString

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

std::string sun::ast::QualifiedNameAST::toString() const override

Returns a readable representation for diagnostics and debugging.

Private Fields

parts

private · variable · Source (opens in a new tab)

std::vector<std::string> sun::ast::QualifiedNameAST::parts

No documentation comment.