Line |
Branch |
Exec |
Source |
1 |
|
|
|
2 |
|
|
#include <gyoji-context.hpp> |
3 |
|
|
|
4 |
|
|
using namespace Gyoji::context; |
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
59332 |
SourceReference::SourceReference( |
9 |
|
|
const std::string & _filename, |
10 |
|
|
size_t _line, |
11 |
|
|
size_t _column, |
12 |
|
|
size_t _length |
13 |
|
59332 |
) |
14 |
|
59332 |
: filename(_filename) |
15 |
|
59332 |
, line(_line) |
16 |
|
59332 |
, column(_column) |
17 |
|
59332 |
, length(_length) |
18 |
|
59332 |
{} |
19 |
|
22 |
SourceReference::SourceReference(const SourceReference & _other) |
20 |
|
22 |
: filename(_other.filename) |
21 |
|
22 |
, line(_other.line) |
22 |
|
22 |
, column(_other.column) |
23 |
|
22 |
, length(_other.length) |
24 |
|
22 |
{} |
25 |
|
59354 |
SourceReference::~SourceReference() |
26 |
|
59354 |
{} |
27 |
|
|
const std::string & |
28 |
|
10 |
SourceReference::get_filename() const |
29 |
|
10 |
{ return filename; } |
30 |
|
|
|
31 |
|
13940 |
size_t SourceReference::get_line() const |
32 |
|
13940 |
{ return line; } |
33 |
|
|
|
34 |
|
9252 |
size_t SourceReference::get_column() const |
35 |
|
9252 |
{ return column; } |
36 |
|
|
|
37 |
|
20 |
size_t SourceReference::get_length() const |
38 |
|
20 |
{ return length; } |
39 |
|
|
|
40 |
|
|
|