136 строки
8.1 KiB
Plaintext
136 строки
8.1 KiB
Plaintext
original file
|
|
-----------------------------------
|
|
class TestClass {
|
|
veryVeryVeryVeryVeryVeryVeryVeryLongName = true;
|
|
veryVeryVeryVeryLongName: string;
|
|
|
|
test = () =>
|
|
!this.veryVeryVeryVeryVeryVeryVeryVeryLongName ||
|
|
(!!this.veryVeryVeryVeryLongName && this.veryVeryVeryVeryLongName === 'veryVeryVeryVeryLongString');
|
|
}
|
|
-----------------------------------
|
|
|
|
Grammar: TypeScript.tmLanguage
|
|
-----------------------------------
|
|
>class TestClass {
|
|
^^^^^
|
|
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
|
|
> veryVeryVeryVeryVeryVeryVeryVeryLongName = true;
|
|
^^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.definition.property.ts variable.object.property.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.assignment.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts constant.language.boolean.true.ts
|
|
^
|
|
source.ts meta.class.ts punctuation.terminator.statement.ts
|
|
> veryVeryVeryVeryLongName: string;
|
|
^^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.definition.property.ts variable.object.property.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts keyword.operator.type.annotation.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts support.type.primitive.ts
|
|
^
|
|
source.ts meta.class.ts punctuation.terminator.statement.ts
|
|
>
|
|
^
|
|
source.ts meta.class.ts
|
|
> test = () =>
|
|
^^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.definition.property.ts entity.name.function.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.assignment.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts
|
|
^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts storage.type.function.arrow.ts
|
|
> !this.veryVeryVeryVeryVeryVeryVeryVeryLongName ||
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.logical.ts
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts variable.language.this.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts punctuation.accessor.ts
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts variable.other.property.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.logical.ts
|
|
> (!!this.veryVeryVeryVeryLongName && this.veryVeryVeryVeryLongName === 'veryVeryVeryVeryLongString');
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.logical.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.logical.ts
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts variable.language.this.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts punctuation.accessor.ts
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts variable.other.property.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.logical.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts variable.language.this.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts punctuation.accessor.ts
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts variable.other.property.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts keyword.operator.comparison.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts string.quoted.single.ts punctuation.definition.string.begin.ts
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts string.quoted.single.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts string.quoted.single.ts punctuation.definition.string.end.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
|
|
^
|
|
source.ts meta.class.ts punctuation.terminator.statement.ts
|
|
>}
|
|
^
|
|
source.ts meta.class.ts punctuation.definition.block.ts |