aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-11-27 22:21:22 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-11-27 22:21:22 +0800
commit6ddfebafae2ec419ea40cd1907a700ba9812593c (patch)
tree6c2a00bdbb3ef4d549831103c6dcfc08eeecde2c /Parser.cpp
parentc4a43c64c2878dea08dd2366ae6954173c4372cc (diff)
downloaddexon-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.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 276da072..3cf44014 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -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()