27 return std::to_string(
line) +
":" + std::to_string(
column);
Represents a position within source content.
std::size_t line
1-based line number
std::size_t column
1-based column number
bool operator==(const SourcePosition &other) const =default
Compares two positions for equality.
std::string to_string() const
Formats the position as "line:column".