A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::catalogue::Origin Struct Reference

Where an entry was declared, for an entry that was found by reading source. More...

#include <cpp/a11/flow/catalogue.h>

Public Attributes

std::string file
 The path as the host gave it to the scanner: absolute if the root was, relative if it was.
 
int line = 1
 
int column = 1
 

Friends

bool operator== (const Origin &, const Origin &)=default
 

Detailed Description

Where an entry was declared, for an entry that was found by reading source.

Absent for everything that arrived from a live registry or from the embedded snapshot: a registry knows what it holds and not where the text that put it there was written. Present for what discover::Discover read out of a project, which is what lets "go to symbol" leave the flow and land on the ActionSchema itself.

1-based line and column, the convention every other position in these formats uses.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const Origin &  ,
const Origin &   
)
friend

Member Data Documentation

◆ column

int a11::flow::catalogue::Origin::column = 1

◆ file

std::string a11::flow::catalogue::Origin::file

The path as the host gave it to the scanner: absolute if the root was, relative if it was.

Passed through rather than normalised, because the host has to open the answer in the terms it asked in.

◆ line

int a11::flow::catalogue::Origin::line = 1

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