struct axl::lex::SrcPos

#include <axl_lex_SrcPos.h>

struct SrcPos: public axl::lex::LineCol
{
    // fields

    sl::StringRef m_filePath;

    // construction

    SrcPos();

    SrcPos(
        const sl::StringRef& filePath,
        const LineCol& lineCol
        );

    SrcPos(
        const sl::StringRef& filePath,
        int line,
        int col
        );

    // methods

    SrcPos&
    operator=(const LineCol& lineCol);
};

Inherited Members

public:
    // fields

    int m_line;
    int m_col;

    // methods

    void
    clear();

    void
    count(const sl::StringRef& string);

    void
    incrementalCount(const sl::StringRef& string);