Bash++
Bash++ compiler internal documentation
Public Member Functions | Public Attributes | List of all members
FilePosition Struct Reference

Represents a position in a source file by line and column. More...

#include <EntityMap.h>

Public Member Functions

 operator uint64_t () const
 
 FilePosition (uint32_t line, uint32_t column)
 

Public Attributes

uint32_t line
 
uint32_t column
 

Detailed Description

Represents a position in a source file by line and column.

This struct is used as the key type in the EntityMap to represent positions in source files. It is represented as a single unsigned 64-bit integer for efficient storage and comparison. The high 32 bits represent the line number, and the low 32 bits represent the column number.

Constructor & Destructor Documentation

◆ FilePosition()

FilePosition::FilePosition ( uint32_t  line,
uint32_t  column 
)
inline

Member Function Documentation

◆ operator uint64_t()

FilePosition::operator uint64_t ( ) const
inline

Member Data Documentation

◆ column

uint32_t FilePosition::column

◆ line

uint32_t FilePosition::line

The documentation for this struct was generated from the following file: