Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Source_File Struct Reference

Registered source file with cached line starts. More...

#include <ah-source.H>

Collaboration diagram for Aleph::Source_File:
[legend]

Public Attributes

Source_File_Id id = 0
 Stable file identifier.
 
std::string name
 User-facing file name or path.
 
std::string text
 Full file contents.
 
DynArray< Source_Offset > line_starts
 Byte offsets for each line start.
 

Detailed Description

Registered source file with cached line starts.

Users typically access files indirectly through Source_Manager, but the record is public so downstream tooling can inspect file metadata when needed.

Definition at line 150 of file ah-source.H.

Member Data Documentation

◆ id

Source_File_Id Aleph::Source_File::id = 0

Stable file identifier.

Definition at line 152 of file ah-source.H.

Referenced by Aleph::Source_Manager::add_virtual_file().

◆ line_starts

DynArray<Source_Offset> Aleph::Source_File::line_starts

Byte offsets for each line start.

Definition at line 155 of file ah-source.H.

◆ name

std::string Aleph::Source_File::name

User-facing file name or path.

Definition at line 153 of file ah-source.H.

Referenced by Aleph::Source_Manager::file_name().

◆ text

std::string Aleph::Source_File::text

Full file contents.

Definition at line 154 of file ah-source.H.

Referenced by Aleph::Source_Manager::file_size(), and Aleph::Source_Manager::file_text().


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