diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-07 23:22:24 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-05-07 23:22:24 +0800 |
commit | 4fdfbaa3674a1597d1f192075700ac5951772193 (patch) | |
tree | e34cb6580fda2a9ae6de5ecb30ae3f38d5619336 /CompilerStack.h | |
parent | 83c504ec89965fe87d502cd945b4c6656c8d7703 (diff) | |
download | dexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.tar.gz dexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.tar.zst dexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.zip |
adde the positions for the end of SourceLocation
Diffstat (limited to 'CompilerStack.h')
-rw-r--r-- | CompilerStack.h | 6 |
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: /** |