aboutsummaryrefslogtreecommitdiff
path: root/src/location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location.cpp')
-rw-r--r--src/location.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/location.cpp b/src/location.cpp
index 933379c..3dba48f 100644
--- a/src/location.cpp
+++ b/src/location.cpp
@@ -2,30 +2,30 @@
2#include "build.tab.h" 2#include "build.tab.h"
3 3
4Location::Location() : 4Location::Location() :
5 sFile("none"), 5 sFile("none"),
6 iStartRow( -1 ), 6 iStartRow( -1 ),
7 iStartCol( -1 ), 7 iStartCol( -1 ),
8 iEndRow( -1 ), 8 iEndRow( -1 ),
9 iEndCol( -1 ) 9 iEndCol( -1 )
10{ 10{
11} 11}
12 12
13Location::Location( struct YYLTYPE &loc ) : 13Location::Location( struct YYLTYPE &loc ) :
14 sFile("???"), 14 sFile("???"),
15 iStartRow( loc.first_line ), 15 iStartRow( loc.first_line ),
16 iStartCol( loc.first_column ), 16 iStartCol( loc.first_column ),
17 iEndRow( loc.last_line ), 17 iEndRow( loc.last_line ),
18 iEndCol( loc.last_column ) 18 iEndCol( loc.last_column )
19{ 19{
20} 20}
21 21
22Location::Location( const Bu::String &sFile, int iStartRow, int iStartCol, 22Location::Location( const Bu::String &sFile, int iStartRow, int iStartCol,
23 int iEndRow, int iEndCol ) : 23 int iEndRow, int iEndCol ) :
24 sFile( sFile ), 24 sFile( sFile ),
25 iStartRow( iStartRow ), 25 iStartRow( iStartRow ),
26 iStartCol( iStartCol ), 26 iStartCol( iStartCol ),
27 iEndRow( iEndRow ), 27 iEndRow( iEndRow ),
28 iEndCol( iEndCol ) 28 iEndCol( iEndCol )
29{ 29{
30} 30}
31 31