Skip to content

Commit 9732468

Browse files
committed
fix lastDoc assignation
1 parent 403d982 commit 9732468

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/nodes/block.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ Block.prototype.consumeChild = function(ast) {
7272

7373
// handle class definition
7474
if (ast.kind === 'doc') {
75-
this._lastDoc = item;
76-
75+
this._lastDoc = ast;
7776
} else {
7877

7978
// attach last doc node to current node

0 commit comments

Comments
 (0)