|
| 1 | +original file |
| 2 | +----------------------------------- |
| 3 | +// @onlyOwnGrammar - As this has type assertion |
| 4 | +function f(p: string) { |
| 5 | + return <number> <unknown> p; |
| 6 | +} |
| 7 | +----------------------------------- |
| 8 | + |
| 9 | +Grammar: TypeScript.tmLanguage |
| 10 | +----------------------------------- |
| 11 | +>// @onlyOwnGrammar - As this has type assertion |
| 12 | + ^^ |
| 13 | + source.ts comment.line.double-slash.ts punctuation.definition.comment.ts |
| 14 | + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 15 | + source.ts comment.line.double-slash.ts |
| 16 | +>function f(p: string) { |
| 17 | + ^^^^^^^^ |
| 18 | + source.ts meta.function.ts storage.type.function.ts |
| 19 | + ^ |
| 20 | + source.ts meta.function.ts |
| 21 | + ^ |
| 22 | + source.ts meta.function.ts meta.definition.function.ts entity.name.function.ts |
| 23 | + ^ |
| 24 | + source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts |
| 25 | + ^ |
| 26 | + source.ts meta.function.ts meta.parameters.ts variable.parameter.ts |
| 27 | + ^ |
| 28 | + source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts keyword.operator.type.annotation.ts |
| 29 | + ^ |
| 30 | + source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts |
| 31 | + ^^^^^^ |
| 32 | + source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts support.type.primitive.ts |
| 33 | + ^ |
| 34 | + source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts |
| 35 | + ^ |
| 36 | + source.ts meta.function.ts |
| 37 | + ^ |
| 38 | + source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts |
| 39 | +> return <number> <unknown> p; |
| 40 | + ^^^^ |
| 41 | + source.ts meta.function.ts meta.block.ts |
| 42 | + ^^^^^^ |
| 43 | + source.ts meta.function.ts meta.block.ts keyword.control.flow.ts |
| 44 | + ^ |
| 45 | + source.ts meta.function.ts meta.block.ts cast.expr.ts |
| 46 | + ^ |
| 47 | + source.ts meta.function.ts meta.block.ts cast.expr.ts meta.brace.angle.ts |
| 48 | + ^^^^^^ |
| 49 | + source.ts meta.function.ts meta.block.ts cast.expr.ts support.type.primitive.ts |
| 50 | + ^ |
| 51 | + source.ts meta.function.ts meta.block.ts cast.expr.ts meta.brace.angle.ts |
| 52 | + ^ |
| 53 | + source.ts meta.function.ts meta.block.ts cast.expr.ts |
| 54 | + ^ |
| 55 | + source.ts meta.function.ts meta.block.ts cast.expr.ts meta.brace.angle.ts |
| 56 | + ^^^^^^^ |
| 57 | + source.ts meta.function.ts meta.block.ts cast.expr.ts support.type.primitive.ts |
| 58 | + ^ |
| 59 | + source.ts meta.function.ts meta.block.ts cast.expr.ts meta.brace.angle.ts |
| 60 | + ^ |
| 61 | + source.ts meta.function.ts meta.block.ts |
| 62 | + ^ |
| 63 | + source.ts meta.function.ts meta.block.ts variable.other.readwrite.ts |
| 64 | + ^ |
| 65 | + source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts |
| 66 | +>} |
| 67 | + ^ |
| 68 | + source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts |
0 commit comments