|
1 | 1 | original file
|
2 | 2 | -----------------------------------
|
3 | 3 | type constructorType<T> = new <T>(a: T) => T;
|
| 4 | +type abstractConstructorType<T> = abstract new <T>(a: T) => T; |
4 | 5 | -----------------------------------
|
5 | 6 |
|
6 | 7 | Grammar: TypeScript.tmLanguage
|
@@ -55,4 +56,59 @@ Grammar: TypeScript.tmLanguage
|
55 | 56 | ^
|
56 | 57 | source.ts meta.type.declaration.ts meta.type.function.return.ts entity.name.type.ts
|
57 | 58 | ^
|
58 |
| - source.ts punctuation.terminator.statement.ts |
| 59 | + source.ts punctuation.terminator.statement.ts |
| 60 | +>type abstractConstructorType<T> = abstract new <T>(a: T) => T; |
| 61 | + ^^^^ |
| 62 | + source.ts meta.type.declaration.ts storage.type.type.ts |
| 63 | + ^ |
| 64 | + source.ts meta.type.declaration.ts |
| 65 | + ^^^^^^^^^^^^^^^^^^^^^^^ |
| 66 | + source.ts meta.type.declaration.ts entity.name.type.alias.ts |
| 67 | + ^ |
| 68 | + source.ts meta.type.declaration.ts meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts |
| 69 | + ^ |
| 70 | + source.ts meta.type.declaration.ts meta.type.parameters.ts entity.name.type.ts |
| 71 | + ^ |
| 72 | + source.ts meta.type.declaration.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts |
| 73 | + ^ |
| 74 | + source.ts meta.type.declaration.ts |
| 75 | + ^ |
| 76 | + source.ts meta.type.declaration.ts keyword.operator.assignment.ts |
| 77 | + ^ |
| 78 | + source.ts meta.type.declaration.ts |
| 79 | + ^^^^^^^^ |
| 80 | + source.ts meta.type.declaration.ts meta.type.constructor.ts storage.modifier.ts |
| 81 | + ^ |
| 82 | + source.ts meta.type.declaration.ts |
| 83 | + ^^^ |
| 84 | + source.ts meta.type.declaration.ts meta.type.constructor.ts keyword.control.new.ts |
| 85 | + ^ |
| 86 | + source.ts meta.type.declaration.ts |
| 87 | + ^ |
| 88 | + source.ts meta.type.declaration.ts meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts |
| 89 | + ^ |
| 90 | + source.ts meta.type.declaration.ts meta.type.parameters.ts entity.name.type.ts |
| 91 | + ^ |
| 92 | + source.ts meta.type.declaration.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts |
| 93 | + ^ |
| 94 | + source.ts meta.type.declaration.ts meta.type.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts |
| 95 | + ^ |
| 96 | + source.ts meta.type.declaration.ts meta.type.function.ts meta.parameters.ts variable.parameter.ts |
| 97 | + ^ |
| 98 | + source.ts meta.type.declaration.ts meta.type.function.ts meta.parameters.ts meta.type.annotation.ts keyword.operator.type.annotation.ts |
| 99 | + ^ |
| 100 | + source.ts meta.type.declaration.ts meta.type.function.ts meta.parameters.ts meta.type.annotation.ts |
| 101 | + ^ |
| 102 | + source.ts meta.type.declaration.ts meta.type.function.ts meta.parameters.ts meta.type.annotation.ts entity.name.type.ts |
| 103 | + ^ |
| 104 | + source.ts meta.type.declaration.ts meta.type.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts |
| 105 | + ^ |
| 106 | + source.ts meta.type.declaration.ts |
| 107 | + ^^ |
| 108 | + source.ts meta.type.declaration.ts meta.type.function.return.ts storage.type.function.arrow.ts |
| 109 | + ^ |
| 110 | + source.ts meta.type.declaration.ts meta.type.function.return.ts |
| 111 | + ^ |
| 112 | + source.ts meta.type.declaration.ts meta.type.function.return.ts entity.name.type.ts |
| 113 | + ^ |
| 114 | + source.ts punctuation.terminator.statement.ts |
0 commit comments