summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r--giscanner/sourcescanner.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index a2db2e74..e4c670b0 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -24,7 +24,7 @@ import subprocess
import tempfile
from .libtoolimporter import LibtoolImporter
-
+from .message import Position
(CSYMBOL_TYPE_INVALID,
CSYMBOL_TYPE_ELLIPSIS,
@@ -198,6 +198,11 @@ class SourceSymbol(object):
def line(self):
return self._symbol.line
+ @property
+ def position(self):
+ return Position(self._symbol.source_filename,
+ self._symbol.line)
+
class SourceScanner(object):