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

Commit

Permalink
Fix: Nested type arguments are not preserved (fixes #204) (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pajn authored and soda0289 committed Apr 1, 2017
1 parent 5a324a3 commit 1cee2e3
Show file tree
Hide file tree
Showing 7 changed files with 473 additions and 6 deletions.
5 changes: 4 additions & 1 deletion lib/ast-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,10 @@ module.exports = function(ast, extra) {
typeArgument.end
],
loc: getLocFor(typeArgumentStart, typeArgument.end, ast),
id: convertChild(typeArgument.typeName || typeArgument)
id: convertChild(typeArgument.typeName || typeArgument),
typeParameters: (typeArgument.typeArguments)
? convertTypeArgumentsToTypeParameters(typeArgument.typeArguments)
: null
};
})
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ module.exports = {
}
},
"name": "S"
}
},
"typeParameters": null
},
{
"type": "GenericTypeAnnotation",
Expand Down Expand Up @@ -188,7 +189,8 @@ module.exports = {
}
},
"name": "T"
}
},
"typeParameters": null
}
]
}
Expand Down Expand Up @@ -398,4 +400,4 @@ module.exports = {
}
}
]
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ module.exports = {
}
},
"name": "S"
}
},
"typeParameters": null
}
]
}
Expand Down Expand Up @@ -327,4 +328,4 @@ module.exports = {
}
}
]
};
};
Loading

0 comments on commit 1cee2e3

Please sign in to comment.