aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.h
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerStack.h')
-rw-r--r--CompilerStack.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/CompilerStack.h b/CompilerStack.h
index 3eff7577..2ad791f2 100644
--- a/CompilerStack.h
+++ b/CompilerStack.h
@@ -132,8 +132,10 @@ public:
/// scanning the source code - this is useful for printing exception information.
static bytes staticCompile(std::string const& _sourceCode, bool _optimize = false);
- /// helper function for printing logs. Do only use in error cases, it's quite expensive.
- std::pair<int, int> positionFromSourceLocation(SourceLocation const& _sourceLocation) const;
+ /// Helper function for logs printing. Do only use in error cases, it's quite expensive.
+ /// line and columns are numbered starting from 1 with following order:
+ /// start line, start column, end line, end column
+ std::tuple<int, int, int, int> positionFromSourceLocation(SourceLocation const& _sourceLocation) const;
private:
/**