fix(typescript): print static before accessibility, fixes #1855 (#1862)

This commit is contained in:
Lucas Azzola authored and Christopher Chedeau committed 2017-06-02 07:16:11 -07:00
1 parent eb9ba74665
commit ede078c0d3
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -460,12 +460,12 @@ function genericPrintNoParens(path, options, print, args) {
}
case "MethodDefinition":
case "TSAbstractMethodDefinition":
if (n.static) {
parts.push("static ");
}
if (n.accessibility) {
parts.push(n.accessibility + " ");
}
if (n.static) {
parts.push("static ");
}
if (n.type === "TSAbstractMethodDefinition") {
parts.push("abstract ");
}
@@ -52,7 +52,7 @@ declare class cls {
static static(p): number;
static q;
private fn();
static private fns();
private static fns();
}
`;