diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-11-27 22:21:22 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-11-27 22:21:22 +0800 |
commit | 6ddfebafae2ec419ea40cd1907a700ba9812593c (patch) | |
tree | 6c2a00bdbb3ef4d549831103c6dcfc08eeecde2c /Parser.cpp | |
parent | c4a43c64c2878dea08dd2366ae6954173c4372cc (diff) | |
download | dexon-solidity-6ddfebafae2ec419ea40cd1907a700ba9812593c.tar dexon-solidity-6ddfebafae2ec419ea40cd1907a700ba9812593c.tar.gz dexon-solidity-6ddfebafae2ec419ea40cd1907a700ba9812593c.tar.bz2 dexon-solidity-6ddfebafae2ec419ea40cd1907a700ba9812593c.tar.lz dexon-solidity-6ddfebafae2ec419ea40cd1907a700ba9812593c.tar.xz dexon-solidity-6ddfebafae2ec419ea40cd1907a700ba9812593c.tar.zst dexon-solidity-6ddfebafae2ec419ea40cd1907a700ba9812593c.zip |
Solidity function AST nodes get documentation attribute
Diffstat (limited to 'Parser.cpp')
-rw-r--r-- | Parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -142,8 +142,9 @@ ASTPointer<FunctionDefinition> Parser::parseFunctionDefinition(bool _isPublic) } ASTPointer<Block> block = parseBlock(); nodeFactory.setEndPositionFromNode(block); - return nodeFactory.createNode<FunctionDefinition>(name, _isPublic, parameters, - isDeclaredConst, returnParameters, block); + return nodeFactory.createNode<FunctionDefinition>(name, _isPublic, m_scanner->getCurrentCommentLiteral(), + parameters, + isDeclaredConst, returnParameters, block); } ASTPointer<StructDefinition> Parser::parseStructDefinition() |