136 строки
7.7 KiB
Plaintext
136 строки
7.7 KiB
Plaintext
original file
|
|
-----------------------------------
|
|
class Test {
|
|
method() {
|
|
const obj = { a: 'hello' };
|
|
const {
|
|
a
|
|
} = obj;
|
|
const x = 'world';
|
|
}
|
|
}
|
|
-----------------------------------
|
|
|
|
Grammar: TypeScript.tmLanguage
|
|
-----------------------------------
|
|
>class Test {
|
|
^^^^^
|
|
source.ts meta.class.ts storage.type.class.ts
|
|
^
|
|
source.ts meta.class.ts
|
|
^^^^
|
|
source.ts meta.class.ts entity.name.type.class.ts
|
|
^
|
|
source.ts meta.class.ts
|
|
^
|
|
source.ts meta.class.ts punctuation.definition.block.ts
|
|
> method() {
|
|
^^
|
|
source.ts meta.class.ts meta.method.declaration.ts
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.definition.method.ts entity.name.function.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
|
> const obj = { a: 'hello' };
|
|
^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts
|
|
^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts storage.type.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts
|
|
^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.constant.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts keyword.operator.assignment.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts punctuation.definition.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts meta.object.member.ts meta.object-literal.key.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts meta.object.member.ts meta.object-literal.key.ts punctuation.separator.key-value.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts meta.object.member.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts meta.object.member.ts string.quoted.single.ts punctuation.definition.string.begin.ts
|
|
^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts meta.object.member.ts string.quoted.single.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts meta.object.member.ts string.quoted.single.ts punctuation.definition.string.end.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts meta.object.member.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.objectliteral.ts punctuation.definition.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
|
|
> const {
|
|
^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts
|
|
^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts storage.type.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.object-binding-pattern-variable.ts punctuation.definition.binding-pattern.object.ts
|
|
> a
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.object-binding-pattern-variable.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.object-binding-pattern-variable.ts meta.definition.variable.ts variable.other.constant.ts
|
|
> } = obj;
|
|
^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.object-binding-pattern-variable.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.object-binding-pattern-variable.ts punctuation.definition.binding-pattern.object.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.object-binding-pattern-variable.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts keyword.operator.assignment.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts
|
|
^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts variable.other.readwrite.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
|
|
> const x = 'world';
|
|
^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts
|
|
^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts storage.type.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.constant.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts keyword.operator.assignment.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts string.quoted.single.ts punctuation.definition.string.begin.ts
|
|
^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts string.quoted.single.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.var.expr.ts string.quoted.single.ts punctuation.definition.string.end.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
|
|
> }
|
|
^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
|
>}
|
|
^
|
|
source.ts meta.class.ts punctuation.definition.block.ts |