Arrow function bodies and minimal return type support
This commit is contained in:
Родитель
9c1006c4de
Коммит
82ac7df371
|
@ -462,9 +462,13 @@ repository:
|
|||
'2': { name: keyword.operator.optional.ts }
|
||||
end: '(?=\}|;|,|$)|(?<=\})'
|
||||
patterns:
|
||||
- include: '#ternary-expression'
|
||||
- include: '#type-annotation'
|
||||
- include: '#expression'
|
||||
- include: '#variable-initializer'
|
||||
- begin: \G
|
||||
end: (?!\G)(?=[};,=]|$)|(?<=\})
|
||||
patterns:
|
||||
- include: '#type-annotation'
|
||||
- include: '#string'
|
||||
- include: '#comment'
|
||||
|
||||
method-declaration:
|
||||
name: meta.method.declaration.ts
|
||||
|
@ -577,17 +581,6 @@ repository:
|
|||
patterns:
|
||||
- include: '#statements'
|
||||
|
||||
arrow-body:
|
||||
name: meta.block.ts
|
||||
begin: (?<==>)\s*(\{)
|
||||
beginCaptures:
|
||||
'1': { name: punctuation.definition.block.ts }
|
||||
end: \}
|
||||
endCaptures:
|
||||
'0': { name: punctuation.definition.block.ts }
|
||||
patterns:
|
||||
- include: '#statements'
|
||||
|
||||
after-operator-block:
|
||||
name: meta.object-literal.ts
|
||||
begin: (?<=[=(:,\[?+!]|^|await|return|yield|throw|in|of|typeof|&&|\|\|)\s*(\{)
|
||||
|
@ -977,23 +970,33 @@ repository:
|
|||
'1': { name: storage.modifier.async.ts }
|
||||
# paramters of the arrow
|
||||
- name: meta.arrow.ts
|
||||
match: ([_$[:alpha:]][_$[:alnum:]]*)\s*(=>)
|
||||
match: ([_$[:alpha:]][_$[:alnum:]]*)\s*(?==>)
|
||||
captures:
|
||||
'1': { name: variable.parameter.ts }
|
||||
'2': { name: storage.type.function.arrow.ts }
|
||||
- name: meta.arrow.ts
|
||||
begin: (?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)\s*=>)
|
||||
end: =>
|
||||
endCaptures:
|
||||
'0': { name: storage.type.function.arrow.ts }
|
||||
begin: (?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>)
|
||||
end: (?==>)
|
||||
patterns:
|
||||
- include: '#function-parameters'
|
||||
# TODO: return type of the arrow
|
||||
# arrow operator for anything that doesnt get captured by above regex
|
||||
- name: storage.type.function.arrow.ts
|
||||
match: =>
|
||||
# body
|
||||
- include: '#arrow-body'
|
||||
# return type of the arrow
|
||||
- include: '#arrow-return-type'
|
||||
# arrow operator
|
||||
- name: meta.arrow.ts
|
||||
begin: =>
|
||||
beginCaptures:
|
||||
'0': { name: storage.type.function.arrow.ts }
|
||||
end: (?<=\})|((?!\{)(?=\S))
|
||||
patterns:
|
||||
- include: '#decl-block'
|
||||
- include: '#expression'
|
||||
|
||||
arrow-return-type:
|
||||
name: meta.return.type.arrow.ts
|
||||
begin: '(?<=\))\s*:'
|
||||
end: (?<!:)((?=$)|(?==>|;|//))
|
||||
patterns:
|
||||
# TODO: handle the fn and constructor type specifically.
|
||||
- include: '#type'
|
||||
|
||||
paren-expression:
|
||||
begin: \(
|
||||
|
|
|
@ -148,38 +148,6 @@
|
|||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>arrow-body</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?<==>)\s*(\{)</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.block.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\}</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.block.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>meta.block.ts</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#statements</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>arrow-function</key>
|
||||
<dict>
|
||||
<key>patterns</key>
|
||||
|
@ -206,30 +174,17 @@
|
|||
<key>name</key>
|
||||
<string>variable.parameter.ts</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(=>)</string>
|
||||
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(?==>)</string>
|
||||
<key>name</key>
|
||||
<string>meta.arrow.ts</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)\s*=>)</string>
|
||||
<string>(?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>)</string>
|
||||
<key>end</key>
|
||||
<string>=></string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<string>(?==>)</string>
|
||||
<key>name</key>
|
||||
<string>meta.arrow.ts</string>
|
||||
<key>patterns</key>
|
||||
|
@ -238,17 +193,54 @@
|
|||
<key>include</key>
|
||||
<string>#function-parameters</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#arrow-return-type</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<key>begin</key>
|
||||
<string>=></string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?<=\})|((?!\{)(?=\S))</string>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.ts</string>
|
||||
<string>meta.arrow.ts</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#decl-block</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#expression</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>arrow-return-type</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?<=\))\s*:</string>
|
||||
<key>end</key>
|
||||
<string>(?<!:)((?=$)|(?==>|;|//))</string>
|
||||
<key>name</key>
|
||||
<string>meta.return.type.arrow.ts</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#arrow-body</string>
|
||||
<string>#type</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
@ -1282,15 +1274,28 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#ternary-expression</string>
|
||||
<string>#variable-initializer</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#type-annotation</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#expression</string>
|
||||
<key>begin</key>
|
||||
<string>\G</string>
|
||||
<key>end</key>
|
||||
<string>(?!\G)(?=[};,=]|$)|(?<=\})</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#type-annotation</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#string</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#comment</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
|
|
@ -466,9 +466,13 @@ repository:
|
|||
'2': { name: keyword.operator.optional.tsx }
|
||||
end: '(?=\}|;|,|$)|(?<=\})'
|
||||
patterns:
|
||||
- include: '#ternary-expression'
|
||||
- include: '#type-annotation'
|
||||
- include: '#expression'
|
||||
- include: '#variable-initializer'
|
||||
- begin: \G
|
||||
end: (?!\G)(?=[};,=]|$)|(?<=\})
|
||||
patterns:
|
||||
- include: '#type-annotation'
|
||||
- include: '#string'
|
||||
- include: '#comment'
|
||||
|
||||
method-declaration:
|
||||
name: meta.method.declaration.tsx
|
||||
|
@ -581,17 +585,6 @@ repository:
|
|||
patterns:
|
||||
- include: '#statements'
|
||||
|
||||
arrow-body:
|
||||
name: meta.block.tsx
|
||||
begin: (?<==>)\s*(\{)
|
||||
beginCaptures:
|
||||
'1': { name: punctuation.definition.block.tsx }
|
||||
end: \}
|
||||
endCaptures:
|
||||
'0': { name: punctuation.definition.block.tsx }
|
||||
patterns:
|
||||
- include: '#statements'
|
||||
|
||||
after-operator-block:
|
||||
name: meta.object-literal.tsx
|
||||
begin: (?<=[=(:,\[?+!]|^|await|return|yield|throw|in|of|typeof|&&|\|\|)\s*(\{)
|
||||
|
@ -961,29 +954,39 @@ repository:
|
|||
arrow-function:
|
||||
patterns:
|
||||
# TODO: type parameter of arrow
|
||||
- name: meta.arrow.ts
|
||||
- name: meta.arrow.tsx
|
||||
match: (\basync)(?=\s*[<(])
|
||||
captures:
|
||||
'1': { name: storage.modifier.async.tsx }
|
||||
# paramters of the arrow
|
||||
- name: meta.arrow.tsx
|
||||
match: ([_$[:alpha:]][_$[:alnum:]]*)\s*(=>)
|
||||
match: ([_$[:alpha:]][_$[:alnum:]]*)\s*(?==>)
|
||||
captures:
|
||||
'1': { name: variable.parameter.tsx }
|
||||
'2': { name: storage.type.function.arrow.tsx }
|
||||
- name: meta.arrow.tsx
|
||||
begin: (?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)\s*=>)
|
||||
end: =>
|
||||
endCaptures:
|
||||
'0': { name: storage.type.function.arrow.tsx }
|
||||
begin: (?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>)
|
||||
end: (?==>)
|
||||
patterns:
|
||||
- include: '#function-parameters'
|
||||
# TODO: return type of the arrow
|
||||
# arrow operator for anything that doesnt get captured by above regex
|
||||
- name: storage.type.function.arrow.tsx
|
||||
match: =>
|
||||
# body
|
||||
- include: '#arrow-body'
|
||||
# return type of the arrow
|
||||
- include: '#arrow-return-type'
|
||||
# arrow operator
|
||||
- name: meta.arrow.tsx
|
||||
begin: =>
|
||||
beginCaptures:
|
||||
'0': { name: storage.type.function.arrow.tsx }
|
||||
end: (?<=\})|((?!\{)(?=\S))
|
||||
patterns:
|
||||
- include: '#decl-block'
|
||||
- include: '#expression'
|
||||
|
||||
arrow-return-type:
|
||||
name: meta.return.type.arrow.tsx
|
||||
begin: '(?<=\))\s*:'
|
||||
end: (?<!:)((?=$)|(?==>|;|//))
|
||||
patterns:
|
||||
# TODO: handle the fn and constructor type specifically.
|
||||
- include: '#type'
|
||||
|
||||
paren-expression:
|
||||
begin: \(
|
||||
|
|
|
@ -148,38 +148,6 @@
|
|||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>arrow-body</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?<==>)\s*(\{)</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.block.tsx</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\}</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.block.tsx</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>meta.block.tsx</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#statements</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>arrow-function</key>
|
||||
<dict>
|
||||
<key>patterns</key>
|
||||
|
@ -196,7 +164,7 @@
|
|||
<key>match</key>
|
||||
<string>(\basync)(?=\s*[<(])</string>
|
||||
<key>name</key>
|
||||
<string>meta.arrow.ts</string>
|
||||
<string>meta.arrow.tsx</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
|
@ -206,30 +174,17 @@
|
|||
<key>name</key>
|
||||
<string>variable.parameter.tsx</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.tsx</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(=>)</string>
|
||||
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(?==>)</string>
|
||||
<key>name</key>
|
||||
<string>meta.arrow.tsx</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)\s*=>)</string>
|
||||
<string>(?x)(?<=return|throw|yield|await|async|[=(,:>])\s*(?=\(([^()]+|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>)</string>
|
||||
<key>end</key>
|
||||
<string>=></string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.tsx</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<string>(?==>)</string>
|
||||
<key>name</key>
|
||||
<string>meta.arrow.tsx</string>
|
||||
<key>patterns</key>
|
||||
|
@ -238,17 +193,54 @@
|
|||
<key>include</key>
|
||||
<string>#function-parameters</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#arrow-return-type</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<key>begin</key>
|
||||
<string>=></string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.tsx</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?<=\})|((?!\{)(?=\S))</string>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.arrow.tsx</string>
|
||||
<string>meta.arrow.tsx</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#decl-block</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#expression</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>arrow-return-type</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?<=\))\s*:</string>
|
||||
<key>end</key>
|
||||
<string>(?<!:)((?=$)|(?==>|;|//))</string>
|
||||
<key>name</key>
|
||||
<string>meta.return.type.arrow.tsx</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#arrow-body</string>
|
||||
<string>#type</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
@ -1250,15 +1242,28 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#ternary-expression</string>
|
||||
<string>#variable-initializer</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#type-annotation</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#expression</string>
|
||||
<key>begin</key>
|
||||
<string>\G</string>
|
||||
<key>end</key>
|
||||
<string>(?!\G)(?=[};,=]|$)|(?<=\})</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#type-annotation</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#string</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#comment</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
|
|
@ -124,47 +124,47 @@ function f(x: string | ((value: string) => number)) {
|
|||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
> if (domNode.style.display !== desiredValue) {
|
||||
^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts keyword.control.conditional.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts keyword.control.conditional.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts keyword.operator.comparison.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts keyword.operator.comparison.ts
|
||||
^^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
> domNode.style.display = desiredValue;
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.block.ts keyword.operator.assignment.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.block.ts keyword.operator.assignment.ts
|
||||
^^^^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.block.ts
|
||||
> }
|
||||
^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
> }
|
||||
^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts meta.object.member.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
>}
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.object-literal.ts punctuation.definition.block.ts
|
||||
|
|
|
@ -216,13 +216,13 @@ const qux = {
|
|||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^^
|
||||
source.ts
|
||||
>
|
||||
|
|
|
@ -98,15 +98,15 @@ class x {
|
|||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
>}
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
|
|
@ -0,0 +1,98 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
class x {
|
||||
abc = () =>
|
||||
this.func(this.arr.concat(['one 1', 'two 2', 'three 3']));
|
||||
}
|
||||
|
||||
-----------------------------------
|
||||
|
||||
>class x {
|
||||
^^^^^
|
||||
source.ts meta.declaration.object.ts storage.type.class.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.name.ts entity.name.class.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
> abc = () =>
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts variable.object.property.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts keyword.operator.assignment.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
> this.func(this.arr.concat(['one 1', 'two 2', 'three 3']));
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts variable.language.this.ts
|
||||
^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.brace.round.ts
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts variable.language.this.ts
|
||||
^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts meta.brace.square.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.begin.ts
|
||||
^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.end.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.begin.ts
|
||||
^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.end.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.begin.ts
|
||||
^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.array.literal.ts meta.brace.square.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.brace.round.ts
|
||||
^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
>}
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts
|
||||
>
|
||||
^
|
||||
source.ts
|
|
@ -32,11 +32,11 @@ let f2 = async function(x) {};
|
|||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^^
|
||||
source.ts
|
||||
>let f2 = async function(x) {};
|
||||
|
|
|
@ -12,9 +12,9 @@ original file
|
|||
^
|
||||
source.ts
|
||||
^^
|
||||
source.ts storage.type.function.arrow.ts
|
||||
source.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts
|
||||
source.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.brace.round.ts
|
||||
^
|
||||
|
@ -35,14 +35,14 @@ original file
|
|||
^
|
||||
source.ts
|
||||
^^
|
||||
source.ts storage.type.function.arrow.ts
|
||||
source.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts string.regex.ts
|
||||
source.ts meta.arrow.ts string.regex.ts
|
||||
^
|
||||
source.ts string.regex.ts punctuation.definition.string.begin.ts
|
||||
source.ts meta.arrow.ts string.regex.ts punctuation.definition.string.begin.ts
|
||||
^
|
||||
source.ts string.regex.ts
|
||||
source.ts meta.arrow.ts string.regex.ts
|
||||
^
|
||||
source.ts string.regex.ts punctuation.definition.string.end.ts
|
||||
source.ts meta.arrow.ts string.regex.ts punctuation.definition.string.end.ts
|
||||
^^
|
||||
source.ts
|
|
@ -0,0 +1,246 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
class Sample2
|
||||
{
|
||||
constructor()
|
||||
{
|
||||
}
|
||||
|
||||
callback = (): void =>
|
||||
{
|
||||
}
|
||||
|
||||
public method1(): void
|
||||
{
|
||||
}
|
||||
private method2 () : number
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
method3 () : string
|
||||
{
|
||||
return "method3";
|
||||
}
|
||||
}
|
||||
-----------------------------------
|
||||
|
||||
>class Sample2
|
||||
^^^^^
|
||||
source.ts meta.declaration.object.ts storage.type.class.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts
|
||||
^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.name.ts entity.name.class.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts
|
||||
>{
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
> constructor()
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts storage.type.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
> {
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
> }
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
>
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
> callback = (): void =>
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts variable.object.property.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts keyword.operator.assignment.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts support.type.primitive.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
> {
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
> }
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
>
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
> public method1(): void
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts storage.modifier.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts entity.name.function.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts support.type.primitive.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
> {
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
> }
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
> private method2 () : number
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts storage.modifier.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts entity.name.function.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts support.type.primitive.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
> {
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
> return 2;
|
||||
^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts keyword.control.flow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
> }
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
> method3 () : string
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts entity.name.function.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts support.type.primitive.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.return.type.ts
|
||||
> {
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
> return "method3";
|
||||
^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts keyword.control.flow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
|
||||
^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
|
||||
^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
> }
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
>}
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
|
|
@ -79,25 +79,25 @@ function myFunction(param1, param2, number, string, boolean) {
|
|||
^^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
> console.log(param1);
|
||||
^^^^^^^^^^^^^^^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^^^^^^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
> }
|
||||
^^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
> console.log(param1);
|
||||
^^^^^^^^^^^^^
|
||||
source.ts meta.function.ts meta.block.ts
|
||||
|
|
|
@ -30,8 +30,10 @@ const trim = module.exports = function(str) {
|
|||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^^^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.brace.round.ts
|
||||
^^^^^^^^^^^^
|
||||
|
|
|
@ -150,29 +150,29 @@ class Thing<^^T, ^^U> {
|
|||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
> process.stuout.write(`Watching for changes in:`);
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts punctuation.definition.string.template.begin.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts punctuation.definition.string.template.begin.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts punctuation.definition.string.template.end.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts punctuation.definition.string.template.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
> })
|
||||
^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
|
||||
> };
|
||||
|
@ -326,29 +326,29 @@ class Thing<^^T, ^^U> {
|
|||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
> process.stuout.write(`Watching for changes in:`);
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts punctuation.definition.string.template.begin.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts punctuation.definition.string.template.begin.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts punctuation.definition.string.template.end.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts punctuation.definition.string.template.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
> })
|
||||
^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
|
||||
> };
|
||||
|
|
|
@ -53,11 +53,11 @@ class Thing<^^T, ^^U> {
|
|||
[5, 49]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
|
||||
> process.stuout.write(`Watching for changes in:`);
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
[6, 13]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
[6, 13]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
[6, 35]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts
|
||||
[6, 35]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts
|
||||
^
|
||||
[6, 60]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
|
||||
[6, 60]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
> })
|
||||
> };
|
||||
>}
|
||||
|
@ -97,11 +97,11 @@ class Thing<^^T, ^^U> {
|
|||
[15, 49]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
|
||||
> process.stuout.write(`Watching for changes in:`);
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
[16, 13]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts
|
||||
[16, 13]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
[16, 35]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.template.ts
|
||||
[16, 35]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts string.template.ts
|
||||
^
|
||||
[16, 60]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
|
||||
[16, 60]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.block.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
> })
|
||||
> };
|
||||
>}
|
||||
|
|
|
@ -0,0 +1,116 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
class MyType
|
||||
{
|
||||
public myFunction = (): void =>
|
||||
{
|
||||
// From this point on the syntax highlighting will be confused as to where it is.
|
||||
var myVar = 5;
|
||||
console.log("Hello there!");
|
||||
}
|
||||
}
|
||||
-----------------------------------
|
||||
|
||||
>class MyType
|
||||
^^^^^
|
||||
source.ts meta.declaration.object.ts storage.type.class.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts
|
||||
^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.name.ts entity.name.class.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts
|
||||
>{
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
> public myFunction = (): void =>
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts
|
||||
^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts storage.modifier.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts variable.object.property.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts keyword.operator.assignment.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts support.type.primitive.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.return.type.arrow.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
> {
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
> // From this point on the syntax highlighting will be confused as to where it is.
|
||||
^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.whitespace.comment.leading.ts
|
||||
^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts comment.line.double-slash.ts punctuation.definition.comment.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts comment.line.double-slash.ts
|
||||
> var myVar = 5;
|
||||
^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.var.expr.ts storage.type.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.var.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts variable.other.readwrite.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts keyword.operator.assignment.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.decimal.ts
|
||||
^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
> console.log("Hello there!");
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
|
||||
^^^^^^^^^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts string.quoted.double.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
> }
|
||||
^^^^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
|
||||
>}
|
||||
^
|
||||
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
|
|
@ -36,14 +36,14 @@ app.get('/test/', (req, res) => {
|
|||
^^
|
||||
source.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
>});
|
||||
^
|
||||
source.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.brace.round.ts
|
||||
^^
|
||||
|
|
|
@ -61,10 +61,10 @@ const y = async () => { }
|
|||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
|
@ -49,17 +49,17 @@ function selectDictionary(dictionaries: StoredDictionaries, lang:string) {
|
|||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
>
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
>}
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
>
|
||||
|
|
|
@ -36,44 +36,44 @@ original file
|
|||
^^
|
||||
source.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
> cell.live = Math.random() < this.initialLifeProbability;
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.block.ts keyword.operator.assignment.ts
|
||||
source.ts meta.arrow.ts meta.block.ts keyword.operator.assignment.ts
|
||||
^^^^^^^^^^^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.block.ts keyword.operator.relational.ts
|
||||
source.ts meta.arrow.ts meta.block.ts keyword.operator.relational.ts
|
||||
^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
^^^^
|
||||
source.ts meta.block.ts variable.language.this.ts
|
||||
source.ts meta.arrow.ts meta.block.ts variable.language.this.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
> return cell;
|
||||
^^^^^^^^^^^^^^^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
^^^^^^
|
||||
source.ts meta.block.ts keyword.control.flow.ts
|
||||
source.ts meta.arrow.ts meta.block.ts keyword.control.flow.ts
|
||||
^^^^^^^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
> });
|
||||
^^^^^^^^^^^^
|
||||
source.ts meta.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.brace.round.ts
|
||||
^^
|
||||
|
|
|
@ -150,25 +150,25 @@ var ^^obj = {
|
|||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^^^^^^^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts string.quoted.double.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts string.quoted.double.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts meta.brace.round.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts meta.brace.round.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.block.ts punctuation.definition.block.ts
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.arrow.ts meta.block.ts punctuation.definition.block.ts
|
||||
^^
|
||||
source.ts meta.var.expr.ts
|
||||
^^
|
||||
|
|
|
@ -233,8 +233,10 @@ class Test {
|
|||
source.ts meta.function.ts meta.block.ts meta.arrow.ts
|
||||
^^
|
||||
source.ts meta.function.ts meta.block.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^^^^^^^^^^^^
|
||||
source.ts meta.function.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts meta.arrow.ts
|
||||
^^^^^^^^^^^
|
||||
source.ts meta.function.ts meta.block.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
|
||||
^
|
||||
|
@ -252,7 +254,7 @@ class Test {
|
|||
^^
|
||||
source.ts meta.function.ts meta.block.ts meta.arrow.ts storage.type.function.arrow.ts
|
||||
^
|
||||
source.ts meta.function.ts meta.block.ts
|
||||
source.ts meta.function.ts meta.block.ts meta.arrow.ts
|
||||
^^^^^
|
||||
source.ts meta.function.ts meta.block.ts constant.language.boolean.false.ts
|
||||
^
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
class x {
|
||||
abc = () =>
|
||||
this.func(this.arr.concat(['one 1', 'two 2', 'three 3']));
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
class Sample2
|
||||
{
|
||||
constructor()
|
||||
{
|
||||
}
|
||||
|
||||
callback = (): void =>
|
||||
{
|
||||
}
|
||||
|
||||
public method1(): void
|
||||
{
|
||||
}
|
||||
private method2 () : number
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
method3 () : string
|
||||
{
|
||||
return "method3";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
class MyType
|
||||
{
|
||||
public myFunction = (): void =>
|
||||
{
|
||||
// From this point on the syntax highlighting will be confused as to where it is.
|
||||
var myVar = 5;
|
||||
console.log("Hello there!");
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче