Consume parenthesis of new and function call so that they dont participate in arrow detection

Fixes #321
This commit is contained in:
Sheetal Nandi 2016-10-18 10:12:41 -07:00
Родитель b7a1912131
Коммит f35a4dbf09
21 изменённых файлов: 1481 добавлений и 276 удалений

Просмотреть файл

@ -1209,7 +1209,7 @@ repository:
beginCaptures:
'1': { name: punctuation.accessor.ts }
'2': { name: entity.name.function.ts }
end: (?=\()
end: (?<=\))
patterns:
- include: '#comment'
- name: meta.type.parameters.ts
@ -1222,6 +1222,7 @@ repository:
patterns:
- include: '#type'
- include: '#punctuation-comma'
- include: '#paren-expression'
identifiers:
patterns:
@ -1292,9 +1293,9 @@ repository:
begin: '(?<!\.|\$)\b(new)\b(?!\$)'
beginCaptures:
'1': { name: keyword.operator.new.ts }
# new-expr ends just before any type or call arguments. Type arguments will be picked up by #cast.
end: '(?=[(;),]|$|((?<!\.|\$)\bnew\b(?!\$)))'
end: '(?<=\))|(?=[;),]|$|((?<!\.|\$)\bnew\b(?!\$)))'
patterns:
- include: '#paren-expression'
- include: '#type'
object-member:

Просмотреть файл

@ -3403,7 +3403,7 @@
</dict>
</dict>
<key>end</key>
<string>(?=\()</string>
<string>(?&lt;=\))</string>
<key>patterns</key>
<array>
<dict>
@ -3445,6 +3445,10 @@
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#paren-expression</string>
</dict>
</array>
</dict>
<key>identifiers</key>
@ -3614,9 +3618,13 @@
</dict>
</dict>
<key>end</key>
<string>(?=[(;),]|$|((?&lt;!\.|\$)\bnew\b(?!\$)))</string>
<string>(?&lt;=\))|(?=[;),]|$|((?&lt;!\.|\$)\bnew\b(?!\$)))</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#paren-expression</string>
</dict>
<dict>
<key>include</key>
<string>#type</string>

Просмотреть файл

@ -3407,7 +3407,7 @@
</dict>
</dict>
<key>end</key>
<string>(?=\()</string>
<string>(?&lt;=\))</string>
<key>patterns</key>
<array>
<dict>
@ -3449,6 +3449,10 @@
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#paren-expression</string>
</dict>
</array>
</dict>
<key>identifiers</key>
@ -3596,9 +3600,13 @@
</dict>
</dict>
<key>end</key>
<string>(?=[(;),]|$|((?&lt;!\.|\$)\bnew\b(?!\$)))</string>
<string>(?&lt;=\))|(?=[;),]|$|((?&lt;!\.|\$)\bnew\b(?!\$)))</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#paren-expression</string>
</dict>
<dict>
<key>include</key>
<string>#type</string>

Просмотреть файл

@ -254,9 +254,9 @@ Grammar: TypeScript.tmLanguage
^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>cow.makeSound();

Просмотреть файл

@ -2035,9 +2035,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>var x=/*comments*/new String();
@ -2062,9 +2062,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>var x= new/*comments*/String();
@ -2089,9 +2089,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>
@ -2125,9 +2125,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>var x = /* comments */ new String();
@ -2158,9 +2158,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>var x = new /* comments */ String();
@ -2191,8 +2191,8 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts

Просмотреть файл

@ -295,13 +295,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
>}
^
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
@ -558,13 +558,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
>}
^
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
@ -816,13 +816,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
> }
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts
@ -1069,13 +1069,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
> }
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts

Просмотреть файл

@ -413,13 +413,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts
^
@ -478,13 +478,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts
^
@ -549,13 +549,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts
^
@ -636,13 +636,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.function.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.function.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts
^
@ -1309,13 +1309,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
^
@ -1372,13 +1372,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
^
@ -1441,13 +1441,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
^
@ -1526,13 +1526,13 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.double.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
^

Просмотреть файл

@ -24,27 +24,27 @@ Grammar: TypeScript.tmLanguage
^^^^^^^^
source.ts new.expr.ts entity.name.type.ts
^
source.ts meta.brace.round.ts
source.ts new.expr.ts meta.brace.round.ts
^^^^^^^^
source.ts variable.other.object.ts
source.ts new.expr.ts variable.other.object.ts
^
source.ts punctuation.accessor.ts
source.ts new.expr.ts punctuation.accessor.ts
^^^^
source.ts support.variable.property.dom.ts
source.ts new.expr.ts support.variable.property.dom.ts
^
source.ts punctuation.separator.comma.ts
source.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts
source.ts new.expr.ts
^^^^^^^^^^^^
source.ts variable.other.readwrite.ts
source.ts new.expr.ts variable.other.readwrite.ts
^
source.ts punctuation.separator.comma.ts
source.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts
source.ts new.expr.ts
^^^^^^^^^^^^^^^^^^
source.ts variable.other.readwrite.ts
source.ts new.expr.ts variable.other.readwrite.ts
^
source.ts meta.brace.round.ts
source.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
^^

Просмотреть файл

@ -19,62 +19,62 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts new.expr.ts entity.name.type.ts
^
source.ts meta.brace.round.ts
source.ts new.expr.ts meta.brace.round.ts
^^^^^^^^
source.ts meta.function.ts storage.type.function.ts
source.ts new.expr.ts meta.function.ts storage.type.function.ts
^
source.ts meta.function.ts
source.ts new.expr.ts meta.function.ts
^^
source.ts meta.function.ts entity.name.function.ts
source.ts new.expr.ts meta.function.ts entity.name.function.ts
^
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
source.ts new.expr.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
^
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts
source.ts new.expr.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts
^
source.ts meta.function.ts
source.ts new.expr.ts meta.function.ts
^
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
source.ts new.expr.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
^^
source.ts meta.function.ts meta.block.ts
source.ts new.expr.ts meta.function.ts meta.block.ts
> console.log(this.constructor.name);
^^^^
source.ts meta.function.ts meta.block.ts
source.ts new.expr.ts meta.function.ts meta.block.ts
^^^^^^^
source.ts meta.function.ts meta.block.ts support.class.console.ts
source.ts new.expr.ts meta.function.ts meta.block.ts support.class.console.ts
^
source.ts meta.function.ts meta.block.ts punctuation.accessor.ts
source.ts new.expr.ts meta.function.ts meta.block.ts punctuation.accessor.ts
^^^
source.ts meta.function.ts meta.block.ts support.function.console.ts
source.ts new.expr.ts meta.function.ts meta.block.ts support.function.console.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts new.expr.ts meta.function.ts meta.block.ts meta.brace.round.ts
^^^^
source.ts meta.function.ts meta.block.ts variable.language.this.ts
source.ts new.expr.ts meta.function.ts meta.block.ts variable.language.this.ts
^
source.ts meta.function.ts meta.block.ts punctuation.accessor.ts
source.ts new.expr.ts meta.function.ts meta.block.ts punctuation.accessor.ts
^^^^^^^^^^^
source.ts meta.function.ts meta.block.ts support.variable.property.ts
source.ts new.expr.ts meta.function.ts meta.block.ts support.variable.property.ts
^
source.ts meta.function.ts meta.block.ts punctuation.accessor.ts
source.ts new.expr.ts meta.function.ts meta.block.ts punctuation.accessor.ts
^^^^
source.ts meta.function.ts meta.block.ts support.variable.property.dom.ts
source.ts new.expr.ts meta.function.ts meta.block.ts support.variable.property.dom.ts
^
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts new.expr.ts meta.function.ts meta.block.ts meta.brace.round.ts
^
source.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts
source.ts new.expr.ts meta.function.ts meta.block.ts punctuation.terminator.statement.ts
^^
source.ts meta.function.ts meta.block.ts
source.ts new.expr.ts meta.function.ts meta.block.ts
>}, {});
^
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
source.ts new.expr.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
^
source.ts punctuation.separator.comma.ts
source.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts
source.ts new.expr.ts
^
source.ts meta.object-literal.ts punctuation.definition.block.ts
source.ts new.expr.ts meta.object-literal.ts punctuation.definition.block.ts
^
source.ts meta.object-literal.ts punctuation.definition.block.ts
source.ts new.expr.ts meta.object-literal.ts punctuation.definition.block.ts
^
source.ts meta.brace.round.ts
source.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts

Просмотреть файл

@ -465,35 +465,35 @@ Grammar: TypeScript.tmLanguage
^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^
@ -547,35 +547,35 @@ Grammar: TypeScript.tmLanguage
^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^
@ -629,35 +629,35 @@ Grammar: TypeScript.tmLanguage
^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^
@ -691,23 +691,23 @@ Grammar: TypeScript.tmLanguage
^^^^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.quoted.single.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts string.quoted.single.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts keyword.operator.arithmetic.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts keyword.operator.arithmetic.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.other.readwrite.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.other.readwrite.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^
@ -857,35 +857,35 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^
@ -939,35 +939,35 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^
@ -1021,35 +1021,35 @@ Grammar: TypeScript.tmLanguage
^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.separator.comma.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.language.this.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.language.this.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.accessor.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts punctuation.accessor.ts
^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts constant.other.property.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts constant.other.property.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^
@ -1083,23 +1083,23 @@ Grammar: TypeScript.tmLanguage
^^^^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.quoted.single.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts string.quoted.single.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts keyword.operator.arithmetic.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts keyword.operator.arithmetic.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts variable.other.readwrite.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts variable.other.readwrite.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.block.ts punctuation.terminator.statement.ts
^^

Просмотреть файл

@ -32,33 +32,33 @@ Grammar: TypeScript.tmLanguage
^
source.ts meta.var.expr.ts new.expr.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts meta.brace.square.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts meta.brace.square.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.begin.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^
source.ts meta.var.expr.ts meta.array.literal.ts string.quoted.single.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts string.quoted.single.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.end.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts punctuation.separator.comma.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts punctuation.separator.comma.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.begin.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^
source.ts meta.var.expr.ts meta.array.literal.ts string.quoted.single.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts string.quoted.single.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.end.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts
^
source.ts meta.var.expr.ts meta.array.literal.ts meta.brace.square.ts
source.ts meta.var.expr.ts new.expr.ts meta.array.literal.ts meta.brace.square.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
^^

Просмотреть файл

@ -113,9 +113,9 @@ Grammar: TypeScript.tmLanguage
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
> gaze(path.join(this.content, "**/*.json"), (err, watch) => {
@ -321,9 +321,9 @@ Grammar: TypeScript.tmLanguage
^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
> gaze(path.join(this.content, "**/*.json"), (err, watch) => {

Просмотреть файл

@ -46,15 +46,15 @@ Grammar: TypeScript.tmLanguage
^
source.ts meta.var.expr.ts new.expr.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts string.quoted.single.ts punctuation.definition.string.begin.ts
source.ts meta.var.expr.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^
source.ts meta.var.expr.ts string.quoted.single.ts
source.ts meta.var.expr.ts new.expr.ts string.quoted.single.ts
^
source.ts meta.var.expr.ts string.quoted.single.ts punctuation.definition.string.end.ts
source.ts meta.var.expr.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>var someVar = makeThing<number, string>('data');
@ -144,15 +144,15 @@ Grammar: TypeScript.tmLanguage
^
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.brace.round.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 new.expr.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 new.expr.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 new.expr.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 meta.field.declaration.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts punctuation.terminator.statement.ts
> static someProp = makeThing<number, string>('data');
@ -229,15 +229,15 @@ Grammar: TypeScript.tmLanguage
^
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.brace.round.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 new.expr.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 new.expr.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 new.expr.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 meta.field.declaration.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts punctuation.terminator.statement.ts
> someProp = makeThing<number, string>('data');

Просмотреть файл

@ -24,9 +24,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^
[1, 33]: source.ts meta.var.expr.ts new.expr.ts meta.type.parameters.ts support.type.primitive.ts
^^^^
[1, 42]: source.ts meta.var.expr.ts string.quoted.single.ts
[1, 42]: source.ts meta.var.expr.ts new.expr.ts string.quoted.single.ts
^
[1, 47]: source.ts meta.var.expr.ts meta.brace.round.ts
[1, 47]: source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
>var someVar = makeThing<number, string>('data');
^^^^^^^^^
[2, 15]: source.ts meta.var.expr.ts entity.name.function.ts

Просмотреть файл

@ -58,9 +58,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^^^^^^^
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.field.declaration.ts
> statuses = ["started", "completed"]
@ -149,9 +149,9 @@ Grammar: TypeScript.tmLanguage
^^^^^^^^^^^^
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts punctuation.terminator.statement.ts
^^

Просмотреть файл

@ -166,11 +166,11 @@ Grammar: TypeScript.tmLanguage
^^^^^^^^^^^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^^^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts constant.language.boolean.false.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts constant.language.boolean.false.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts meta.brace.round.ts
^
@ -273,15 +273,15 @@ Grammar: TypeScript.tmLanguage
^^^^^^^^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^^^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts keyword.operator.new.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts new.expr.ts keyword.operator.new.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts new.expr.ts
^^^^^^^^^^^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts entity.name.type.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.field.declaration.ts meta.function.ts meta.block.ts meta.brace.round.ts
^

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -504,17 +504,17 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.var.expr.ts new.expr.ts entity.name.type.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.var.expr.ts constant.numeric.decimal.ts
source.ts meta.var.expr.ts new.expr.ts constant.numeric.decimal.ts
^
source.ts meta.var.expr.ts punctuation.separator.comma.ts
source.ts meta.var.expr.ts new.expr.ts punctuation.separator.comma.ts
^
source.ts meta.var.expr.ts
source.ts meta.var.expr.ts new.expr.ts
^
source.ts meta.var.expr.ts constant.numeric.decimal.ts
source.ts meta.var.expr.ts new.expr.ts constant.numeric.decimal.ts
^
source.ts meta.var.expr.ts meta.brace.round.ts
source.ts meta.var.expr.ts new.expr.ts meta.brace.round.ts
^
source.ts punctuation.terminator.statement.ts
>delete (adder)

Просмотреть файл

@ -71,15 +71,15 @@ Grammar: TypeScript.tmLanguage
^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts entity.name.type.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.begin.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^^^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.single.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.single.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts string.quoted.single.ts punctuation.definition.string.end.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts new.expr.ts meta.brace.round.ts
^
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.terminator.statement.ts
^^

Просмотреть файл

@ -40,9 +40,9 @@ Grammar: TypeScriptReact.tmLanguage
^
source.tsx meta.var.expr.tsx new.expr.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx
^
source.tsx meta.var.expr.tsx meta.brace.round.tsx
source.tsx meta.var.expr.tsx new.expr.tsx meta.brace.round.tsx
^
source.tsx meta.var.expr.tsx meta.brace.round.tsx
source.tsx meta.var.expr.tsx new.expr.tsx meta.brace.round.tsx
^
source.tsx punctuation.terminator.statement.tsx
^^

40
tests/cases/Issue321.ts Normal file
Просмотреть файл

@ -0,0 +1,40 @@
export abstract class ExpressionContainer implements debug.IExpressionContainer {
public getChildren(debugService: debug.IDebugService): TPromise<debug.IExpression[]> {
if (!this.cacheChildren || !this.children) {
const session = debugService.activeSession;
// only variables with reference > 0 have children.
if (!session || this.reference <= 0) {
this.children = TPromise.as([]);
} else {
// Check if object has named variables, fetch them independent from indexed variables #9670
this.children = (!!this.namedVariables ? this.fetchVariables(session, undefined, undefined, 'named') : TPromise.as([])).then(childrenArray => {
// Use a dynamic chunk size based on the number of elements #9774
let chunkSize = ExpressionContainer.BASE_CHUNK_SIZE;
while (this.indexedVariables > chunkSize * ExpressionContainer.BASE_CHUNK_SIZE) {
chunkSize *= ExpressionContainer.BASE_CHUNK_SIZE;
}
if (this.indexedVariables > chunkSize) {
// There are a lot of children, create fake intermediate values that represent chunks #9537
const numberOfChunks = Math.ceil(this.indexedVariables / chunkSize);
for (let i = 0; i < numberOfChunks; i++) {
const start = this.startOfVariables + i * chunkSize;
const count = Math.min(chunkSize, this.indexedVariables - i * chunkSize);
childrenArray.push(new Variable(this, this.reference, `[${start}..${start + count - 1}]`, '', null, count, null, true, start));
}
return childrenArray;
}
const start = this.getChildrenInChunks ? this.startOfVariables : undefined;
const count = this.getChildrenInChunks ? this.indexedVariables : undefined;
return this.fetchVariables(session, start, count, 'indexed')
.then(variables => arrays.distinct(childrenArray.concat(variables), child => child.name));
});
}
}
return this.children;
}
}