add TSAbstractKeyword (#1505)

master
Danny Arnold 2017-05-04 18:48:24 +02:00 committed by Christopher Chedeau
parent bdf6050434
commit c1a8ee011d
4 changed files with 12 additions and 0 deletions

View File

@ -2312,6 +2312,8 @@ function genericPrintNoParens(path, options, print, args) {
return concat(path.map(print, "body"))
case "TSConstKeyword":
return "const";
case "TSAbstractKeyword":
return "abstract";
// TODO
case "ClassHeritage":
// TODO

View File

@ -0,0 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`abstractKeyword.ts 1`] = `
abstract interface I {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
abstract interface I {}
`;

View File

@ -0,0 +1 @@
abstract interface I {}

View File

@ -0,0 +1 @@
run_spec(__dirname, { parser: "typescript" });