|
| 1 | +original file |
| 2 | +----------------------------------- |
| 3 | +function test(type, obj) { |
| 4 | + return type in obj && 'broken'; |
| 5 | +} |
| 6 | +----------------------------------- |
| 7 | + |
| 8 | +Grammar: TypeScript.tmLanguage |
| 9 | +----------------------------------- |
| 10 | +>function test(type, obj) { |
| 11 | + ^^^^^^^^ |
| 12 | + source.ts meta.function.ts storage.type.function.ts |
| 13 | + ^ |
| 14 | + source.ts meta.function.ts |
| 15 | + ^^^^ |
| 16 | + source.ts meta.function.ts meta.definition.function.ts entity.name.function.ts |
| 17 | + ^ |
| 18 | + source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts |
| 19 | + ^^^^ |
| 20 | + source.ts meta.function.ts meta.parameters.ts variable.parameter.ts |
| 21 | + ^ |
| 22 | + source.ts meta.function.ts meta.parameters.ts punctuation.separator.parameter.ts |
| 23 | + ^ |
| 24 | + source.ts meta.function.ts meta.parameters.ts |
| 25 | + ^^^ |
| 26 | + source.ts meta.function.ts meta.parameters.ts variable.parameter.ts |
| 27 | + ^ |
| 28 | + source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts |
| 29 | + ^ |
| 30 | + source.ts meta.function.ts |
| 31 | + ^ |
| 32 | + source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts |
| 33 | +> return type in obj && 'broken'; |
| 34 | + ^^ |
| 35 | + source.ts meta.function.ts meta.block.ts |
| 36 | + ^^^^^^ |
| 37 | + source.ts meta.function.ts meta.block.ts keyword.control.flow.ts |
| 38 | + ^ |
| 39 | + source.ts meta.function.ts meta.block.ts |
| 40 | + ^^^^ |
| 41 | + source.ts meta.function.ts meta.block.ts variable.other.readwrite.ts |
| 42 | + ^ |
| 43 | + source.ts meta.function.ts meta.block.ts |
| 44 | + ^^ |
| 45 | + source.ts meta.function.ts meta.block.ts keyword.operator.expression.in.ts |
| 46 | + ^ |
| 47 | + source.ts meta.function.ts meta.block.ts |
| 48 | + ^^^ |
| 49 | + source.ts meta.function.ts meta.block.ts variable.other.readwrite.ts |
| 50 | + ^ |
| 51 | + source.ts meta.function.ts meta.block.ts |
| 52 | + ^^ |
| 53 | + source.ts meta.function.ts meta.block.ts keyword.operator.logical.ts |
| 54 | + ^ |
| 55 | + source.ts meta.function.ts meta.block.ts |
| 56 | + ^ |
| 57 | + source.ts meta.function.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.begin.ts |
| 58 | + ^^^^^^ |
| 59 | + source.ts meta.function.ts meta.block.ts string.quoted.single.ts |
| 60 | + ^ |
| 61 | + source.ts meta.function.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.end.ts |
| 62 | + ^ |
| 63 | + source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts |
| 64 | +>} |
| 65 | + ^ |
| 66 | + source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts |
0 commit comments