Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Label abstract function expression nodes (fixes #80) #165

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ast-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,6 @@ module.exports = function(ast, extra) {
// Declarations

case SyntaxKind.FunctionDeclaration:

var functionDeclarationType = "FunctionDeclaration";
if (node.modifiers && node.modifiers.length) {
var isDeclareFunction = node.modifiers.some(function(modifier) {
Expand Down Expand Up @@ -1134,6 +1133,7 @@ module.exports = function(ast, extra) {
});
if (isAbstractMethod) {
methodDefinitionType = "TSAbstractMethodDefinition";
method.type = "TSAbstractFunctionExpression";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = {
"name": "createSocket"
},
"value": {
"type": "FunctionExpression",
"type": "TSAbstractFunctionExpression",
"id": null,
"generator": false,
"expression": false,
Expand Down