sun::ast::QualifiedNameAST
class · Source (opens in a new tab)
class sun::ast::QualifiedNameAST : public sun::ast::ExprASTQualified name expression: Module.name or Namespace::name.
Inherits
- sun::ast::ExprAST (public)
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 overrideReturns the node label used in syntax-tree graph visualizations.
getFullName
public · function · Source (opens in a new tab)
std::string sun::ast::QualifiedNameAST::getFullName() constGet 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() constGet the final name (last part).
getNamespacePath
public · function · Source (opens in a new tab)
std::vector< std::string > sun::ast::QualifiedNameAST::getNamespacePath() constGet 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() constReturns the qualified-name components.
getType
public · function · Source (opens in a new tab)
ASTNodeType sun::ast::QualifiedNameAST::getType() const overrideReturns 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 overrideReturns 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::partsNo documentation comment.