diff options
author | chriseth <chris@ethereum.org> | 2018-02-21 01:39:00 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-21 07:41:39 +0800 |
commit | e2bf5de8a278e04623c7bb34a925372039095ba7 (patch) | |
tree | b0d463b41860016abcb67ce152c726a8be5b9089 /libsolidity/inlineasm/AsmParser.h | |
parent | f5f00b4ee9e6e9038e3b84986ab3ff78504331fd (diff) | |
download | dexon-solidity-e2bf5de8a278e04623c7bb34a925372039095ba7.tar.gz dexon-solidity-e2bf5de8a278e04623c7bb34a925372039095ba7.tar.zst dexon-solidity-e2bf5de8a278e04623c7bb34a925372039095ba7.zip |
Expect end of string at end of top-level block for assembly parser.
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.h')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmParser.h b/libsolidity/inlineasm/AsmParser.h index 015aeef3..41117228 100644 --- a/libsolidity/inlineasm/AsmParser.h +++ b/libsolidity/inlineasm/AsmParser.h @@ -41,8 +41,9 @@ public: ParserBase(_errorReporter), m_flavour(_flavour) {} /// Parses an inline assembly block starting with `{` and ending with `}`. + /// @param _reuseScanner if true, do check for end of input after the `}`. /// @returns an empty shared pointer on error. - std::shared_ptr<Block> parse(std::shared_ptr<Scanner> const& _scanner); + std::shared_ptr<Block> parse(std::shared_ptr<Scanner> const& _scanner, bool _reuseScanner); protected: using ElementaryOperation = boost::variant<assembly::Instruction, assembly::Literal, assembly::Identifier>; |