top | up | prev | next

Span Struct

Definition at line 12 of Span.hpp

Constructors

Span()
Span(int fileIndex_, int line_, int start_)
Span(int fileIndex_, int line_, int start_, int end_)

Member Functions

bool Valid() const

Member Variables

int end
int fileIndex
int line
int start

Constructor Details

Span Constructor

soulng::lexer::Span::Span()

Definition at line 14 of Span.hpp :
14 : fileIndex(-1)line(-1)start(-1)end(-1) {}


Span Constructor

soulng::lexer::Span::Span(int fileIndex_, int line_, int start_)

Definition at line 15 of Span.hpp :
15 : fileIndex(fileIndex_)line(line_)start(start_)end(start) {}


Span Constructor

soulng::lexer::Span::Span(int fileIndex_, int line_, int start_, int end_)

Definition at line 16 of Span.hpp :
16 : fileIndex(fileIndex_)line(line_)start(start_)end(end_) {}


Member Function Details

Valid Member Function

bool soulng::lexer::Span::Valid() const

Definition at line 17 of Span.hpp :
17 { return fileIndex != -1 && line != -1 && start != -1 && end != -1; }


top | up | prev | next