aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.h
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-07 23:22:24 +0800
committerLiana Husikyan <liana@ethdev.com>2015-05-07 23:22:24 +0800
commit4fdfbaa3674a1597d1f192075700ac5951772193 (patch)
treee34cb6580fda2a9ae6de5ecb30ae3f38d5619336 /CompilerStack.h
parent83c504ec89965fe87d502cd945b4c6656c8d7703 (diff)
downloaddexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.tar
dexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.tar.gz
dexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.tar.bz2
dexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.tar.lz
dexon-solidity-4fdfbaa3674a1597d1f192075700ac5951772193.tar.xz
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.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:
/**