218 строки
8.6 KiB
Plaintext
218 строки
8.6 KiB
Plaintext
original file
|
|
-----------------------------------
|
|
class Sample2
|
|
{
|
|
constructor()
|
|
{
|
|
}
|
|
|
|
callback = (): void =>
|
|
{
|
|
}
|
|
|
|
public method1(): void
|
|
{
|
|
}
|
|
private method2 () : number
|
|
{
|
|
return 2;
|
|
}
|
|
method3 () : string
|
|
{
|
|
return "method3";
|
|
}
|
|
}
|
|
-----------------------------------
|
|
|
|
Grammar: TypeScript.tmLanguage
|
|
-----------------------------------
|
|
>class Sample2
|
|
^^^^^
|
|
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 punctuation.definition.block.ts
|
|
> constructor()
|
|
^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts
|
|
^^^^^^^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts storage.type.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
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
> }
|
|
^^^^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
>
|
|
^
|
|
source.ts meta.class.ts
|
|
> callback = (): void =>
|
|
^^^^
|
|
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 meta.return.type.arrow.ts keyword.operator.type.annotation.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts support.type.primitive.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
|
^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts storage.type.function.arrow.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.block.ts punctuation.definition.block.ts
|
|
> }
|
|
^^^^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
|
>
|
|
^
|
|
source.ts meta.class.ts
|
|
> public method1(): void
|
|
^^^^
|
|
source.ts meta.class.ts
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts storage.modifier.ts
|
|
^
|
|
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 meta.return.type.ts keyword.operator.type.annotation.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts
|
|
^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts support.type.primitive.ts
|
|
> {
|
|
^^^^
|
|
source.ts meta.class.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
> }
|
|
^^^^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
> private method2 () : number
|
|
^^^^
|
|
source.ts meta.class.ts
|
|
^^^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts storage.modifier.ts
|
|
^
|
|
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
|
|
^
|
|
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 meta.return.type.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts keyword.operator.type.annotation.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts support.type.primitive.ts
|
|
> {
|
|
^^^^
|
|
source.ts meta.class.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
> return 2;
|
|
^^^^^^^^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.block.ts keyword.control.flow.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts constant.numeric.decimal.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.terminator.statement.ts
|
|
> }
|
|
^^^^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
> method3 () : string
|
|
^^^^
|
|
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
|
|
^
|
|
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 meta.return.type.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts keyword.operator.type.annotation.ts
|
|
^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.method.declaration.ts meta.return.type.ts support.type.primitive.ts
|
|
> {
|
|
^^^^
|
|
source.ts meta.class.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
> return "method3";
|
|
^^^^^^^^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^^^^^^
|
|
source.ts meta.class.ts meta.block.ts keyword.control.flow.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
|
|
^^^^^^^
|
|
source.ts meta.class.ts meta.block.ts string.quoted.double.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.terminator.statement.ts
|
|
> }
|
|
^^^^
|
|
source.ts meta.class.ts meta.block.ts
|
|
^
|
|
source.ts meta.class.ts meta.block.ts punctuation.definition.block.ts
|
|
>}
|
|
^
|
|
source.ts meta.class.ts punctuation.definition.block.ts |