diff options
author | LianaHus <liana@ethdev.com> | 2015-09-01 00:44:29 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-08 19:12:00 +0800 |
commit | 1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4 (patch) | |
tree | 6ecb1323bec51a67a53d63bfd250f4ccfcee926c /libsolidity/SourceReferenceFormatter.cpp | |
parent | 6f4a39c183a905b8e07da59c17bfd25c2febbf7f (diff) | |
download | dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.gz dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.bz2 dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.lz dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.xz dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.zst dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.zip |
renamed getter functions
Diffstat (limited to 'libsolidity/SourceReferenceFormatter.cpp')
-rw-r--r-- | libsolidity/SourceReferenceFormatter.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libsolidity/SourceReferenceFormatter.cpp b/libsolidity/SourceReferenceFormatter.cpp index 77805efc..339d5b23 100644 --- a/libsolidity/SourceReferenceFormatter.cpp +++ b/libsolidity/SourceReferenceFormatter.cpp @@ -46,7 +46,7 @@ void SourceReferenceFormatter::printSourceLocation( tie(endLine, endColumn) = _scanner.translatePositionToLineColumn(_location.end); if (startLine == endLine) { - string line = _scanner.getLineAtPosition(_location.start); + string line = _scanner.lineAtPosition(_location.start); _stream << line << endl; for_each( line.cbegin(), @@ -62,7 +62,7 @@ void SourceReferenceFormatter::printSourceLocation( } else _stream << - _scanner.getLineAtPosition(_location.start) << + _scanner.lineAtPosition(_location.start) << endl << string(startColumn, ' ') << "^\n" << @@ -90,12 +90,12 @@ void SourceReferenceFormatter::printExceptionInformation( { SourceLocation const* location = boost::get_error_info<errinfo_sourceLocation>(_exception); auto secondarylocation = boost::get_error_info<errinfo_secondarySourceLocation>(_exception); - Scanner const* scanner = nullptr; + Scanner const* scannerPtr = nullptr; if (location) { - scanner = &_compiler.getScanner(*location->sourceName); - printSourceName(_stream, *location, *scanner); + scannerPtr = &_compiler.scanner(*location->sourceName); + printSourceName(_stream, *location, *scannerPtr); } _stream << _name; @@ -104,19 +104,19 @@ void SourceReferenceFormatter::printExceptionInformation( if (location) { - scanner = &_compiler.getScanner(*location->sourceName); - printSourceLocation(_stream, *location, *scanner); + scannerPtr = &_compiler.scanner(*location->sourceName); + printSourceLocation(_stream, *location, *scannerPtr); } if (secondarylocation && !secondarylocation->infos.empty()) { for (auto info: secondarylocation->infos) { - scanner = &_compiler.getScanner(*info.second.sourceName); + scannerPtr = &_compiler.scanner(*info.second.sourceName); _stream << info.first << " "; - printSourceName(_stream, info.second, *scanner); + printSourceName(_stream, info.second, *scannerPtr); _stream << endl; - printSourceLocation(_stream, info.second, *scanner); + printSourceLocation(_stream, info.second, *scannerPtr); } _stream << endl; } |