class SourceSpan

Defined at line 18 of file ../../tools/fidl/fidlc/src/source_span.h

A SourceSpan represents a span of a source file. It consists of a std::string_view, and a

reference to the SourceFile that is backing the std::string_view.

Public Methods

std::string_view SourceLine (SourceFile::Position * position_out)
void SourceSpan (std::string_view data, const SourceFile & source_file)

Defined at line 20 of file ../../tools/fidl/fidlc/src/source_span.h

void SourceSpan ()

Defined at line 23 of file ../../tools/fidl/fidlc/src/source_span.h

bool valid ()

Defined at line 25 of file ../../tools/fidl/fidlc/src/source_span.h

const std::string_view & data ()

Defined at line 27 of file ../../tools/fidl/fidlc/src/source_span.h

SourceFile::Position position ()
std::string position_str ()
const SourceFile & source_file ()

Defined at line 28 of file ../../tools/fidl/fidlc/src/source_span.h

bool operator== (const SourceSpan & rhs)

identity

Defined at line 39 of file ../../tools/fidl/fidlc/src/source_span.h

bool operator< (const SourceSpan & rhs)

supports sorted sets or ordering by SourceSpan, based on filename,

start position, and then end position.

Defined at line 45 of file ../../tools/fidl/fidlc/src/source_span.h