{ "type": "Script", "span": { "start": 666, "end": 35494, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 666, "end": 35494, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 673, "end": 683, "ctxt": 0 }, "value": "Formatting", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 684, "end": 35494, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 690, "end": 35492, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 703, "end": 711, "ctxt": 0 }, "value": "Indenter", "optional": false }, "declare": false, "span": { "start": 697, "end": 35492, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 759, "end": 798, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 767, "end": 781, "ctxt": 0 }, "value": "indentationBag", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 781, "end": 797, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 783, "end": 797, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 783, "end": 797, "ctxt": 0 }, "value": "IndentationBag", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 807, "end": 850, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 815, "end": 841, "ctxt": 0 }, "value": "scriptBlockBeginLineNumber", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 841, "end": 849, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 843, "end": 849, "ctxt": 0 }, "kind": "number" } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 859, "end": 911, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 867, "end": 890, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 890, "end": 910, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 892, "end": 910, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 892, "end": 910, "ctxt": 0 }, "value": "Dictionary_int_int", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "Constructor", "span": { "start": 921, "end": 1759, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 921, "end": 932, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "TsParameterProperty", "span": { "start": 946, "end": 979, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 953, "end": 979, "ctxt": 0 }, "value": "logger", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 959, "end": 979, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 961, "end": 979, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 961, "end": 971, "ctxt": 0 }, "value": "TypeScript", "optional": false }, "right": { "type": "Identifier", "span": { "start": 972, "end": 979, "ctxt": 0 }, "value": "ILogger", "optional": false } }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 993, "end": 1015, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1000, "end": 1015, "ctxt": 0 }, "value": "tree", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1004, "end": 1015, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1006, "end": 1015, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1006, "end": 1015, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1029, "end": 1059, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1036, "end": 1059, "ctxt": 0 }, "value": "snapshot", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1044, "end": 1059, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1046, "end": 1059, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1046, "end": 1059, "ctxt": 0 }, "value": "ITextSnapshot", "optional": false }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1073, "end": 1111, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1080, "end": 1111, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1103, "end": 1111, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1105, "end": 1111, "ctxt": 0 }, "kind": "string" } } } }, { "type": "TsParameterProperty", "span": { "start": 1125, "end": 1169, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1132, "end": 1169, "ctxt": 0 }, "value": "editorOptions", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1145, "end": 1169, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1147, "end": 1169, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 1147, "end": 1155, "ctxt": 0 }, "value": "Services", "optional": false }, "right": { "type": "Identifier", "span": { "start": 1156, "end": 1169, "ctxt": 0 }, "value": "EditorOptions", "optional": false } }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1183, "end": 1211, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1190, "end": 1211, "ctxt": 0 }, "value": "firstToken", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1200, "end": 1211, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1202, "end": 1211, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1202, "end": 1211, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1225, "end": 1252, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1232, "end": 1252, "ctxt": 0 }, "value": "smartIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1243, "end": 1252, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1245, "end": 1252, "ctxt": 0 }, "kind": "boolean" } } } } ], "body": { "type": "BlockStatement", "span": { "start": 1254, "end": 1759, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1269, "end": 1325, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1269, "end": 1324, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1269, "end": 1288, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1269, "end": 1273, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1274, "end": 1288, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "right": { "type": "NewExpression", "span": { "start": 1291, "end": 1324, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1295, "end": 1309, "ctxt": 0 }, "value": "IndentationBag", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1310, "end": 1323, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1310, "end": 1314, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1315, "end": 1323, "ctxt": 0 }, "value": "snapshot", "optional": false } } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 1338, "end": 1375, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1338, "end": 1374, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1338, "end": 1369, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1338, "end": 1342, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1343, "end": 1369, "ctxt": 0 }, "value": "scriptBlockBeginLineNumber", "optional": false } }, "right": { "type": "UnaryExpression", "span": { "start": 1372, "end": 1374, "ctxt": 0 }, "operator": "-", "argument": { "type": "NumericLiteral", "span": { "start": 1373, "end": 1374, "ctxt": 0 }, "value": 1.0 } } } }, { "type": "ExpressionStatement", "span": { "start": 1388, "end": 1444, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1388, "end": 1443, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1388, "end": 1416, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1388, "end": 1392, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1393, "end": 1416, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false } }, "right": { "type": "NewExpression", "span": { "start": 1419, "end": 1443, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1423, "end": 1441, "ctxt": 0 }, "value": "Dictionary_int_int", "optional": false }, "arguments": [], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 1564, "end": 1606, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1564, "end": 1605, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1564, "end": 1601, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1564, "end": 1578, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1564, "end": 1573, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1564, "end": 1568, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1569, "end": 1573, "ctxt": 0 }, "value": "tree", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1574, "end": 1578, "ctxt": 0 }, "value": "Root", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1579, "end": 1601, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 1602, "end": 1604, "ctxt": 0 }, "value": "", "raw": "\"\"" } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 1620, "end": 1694, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1620, "end": 1693, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1620, "end": 1652, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1620, "end": 1624, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1625, "end": 1652, "ctxt": 0 }, "value": "ApplyScriptBlockIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1653, "end": 1681, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1653, "end": 1657, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1658, "end": 1681, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1683, "end": 1692, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1683, "end": 1687, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1688, "end": 1692, "ctxt": 0 }, "value": "tree", "optional": false } } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 1707, "end": 1748, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1707, "end": 1747, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1707, "end": 1736, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1707, "end": 1711, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1712, "end": 1736, "ctxt": 0 }, "value": "FillInheritedIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1737, "end": 1746, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1737, "end": 1741, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1742, "end": 1746, "ctxt": 0 }, "value": "tree", "optional": false } } } ], "typeArguments": null } } ] }, "accessibility": null, "isOptional": false }, { "type": "ClassMethod", "span": { "start": 1769, "end": 2786, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1776, "end": 1795, "ctxt": 0 }, "value": "GetIndentationEdits", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 1796, "end": 1812, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1796, "end": 1812, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1801, "end": 1812, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1803, "end": 1812, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1803, "end": 1812, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 1814, "end": 1834, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1814, "end": 1834, "ctxt": 0 }, "value": "nextToken", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1823, "end": 1834, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1825, "end": 1834, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1825, "end": 1834, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 1836, "end": 1851, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1836, "end": 1851, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1840, "end": 1851, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1842, "end": 1851, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1842, "end": 1851, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 1853, "end": 1876, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1853, "end": 1876, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1867, "end": 1876, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1869, "end": 1876, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 1769, "end": 2786, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1897, "end": 2786, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1911, "end": 2276, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 1915, "end": 1940, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1915, "end": 1938, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1915, "end": 1926, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1915, "end": 1919, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1920, "end": 1926, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1927, "end": 1938, "ctxt": 0 }, "value": "information", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 1942, "end": 2276, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1960, "end": 2262, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1960, "end": 2261, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1960, "end": 1975, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1960, "end": 1971, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1960, "end": 1964, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1965, "end": 1971, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1972, "end": 1975, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2260, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2234, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2228, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2125, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2096, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2089, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2062, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2056, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1976, "end": 2027, "ctxt": 0 }, "operator": "+", "left": { "type": "StringLiteral", "span": { "start": 1976, "end": 1998, "ctxt": 0 }, "value": "GetIndentationEdits(", "raw": "\"GetIndentationEdits(\"" }, "right": { "type": "StringLiteral", "span": { "start": 2021, "end": 2027, "ctxt": 0 }, "value": "t1=[", "raw": "\"t1=[\"" } }, "right": { "type": "CallExpression", "span": { "start": 2030, "end": 2056, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2030, "end": 2054, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2030, "end": 2040, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2030, "end": 2035, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2036, "end": 2040, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2041, "end": 2054, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, "right": { "type": "StringLiteral", "span": { "start": 2059, "end": 2062, "ctxt": 0 }, "value": ",", "raw": "\",\"" } }, "right": { "type": "CallExpression", "span": { "start": 2065, "end": 2089, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2065, "end": 2087, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2065, "end": 2075, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2065, "end": 2070, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2071, "end": 2075, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2076, "end": 2087, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, "right": { "type": "StringLiteral", "span": { "start": 2091, "end": 2096, "ctxt": 0 }, "value": "], ", "raw": "\"], \"" } }, "right": { "type": "StringLiteral", "span": { "start": 2119, "end": 2125, "ctxt": 0 }, "value": "t2=[", "raw": "\"t2=[\"" } }, "right": { "type": "ParenthesisExpression", "span": { "start": 2128, "end": 2228, "ctxt": 0 }, "expression": { "type": "ConditionalExpression", "span": { "start": 2129, "end": 2227, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2129, "end": 2146, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 2129, "end": 2138, "ctxt": 0 }, "value": "nextToken", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 2142, "end": 2146, "ctxt": 0 } } }, "consequent": { "type": "StringLiteral", "span": { "start": 2149, "end": 2155, "ctxt": 0 }, "value": "null", "raw": "\"null\"" }, "alternate": { "type": "ParenthesisExpression", "span": { "start": 2158, "end": 2227, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 2159, "end": 2226, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2159, "end": 2195, "ctxt": 0 }, "operator": "+", "left": { "type": "CallExpression", "span": { "start": 2159, "end": 2189, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2159, "end": 2187, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2159, "end": 2173, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2159, "end": 2168, "ctxt": 0 }, "value": "nextToken", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2169, "end": 2173, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2174, "end": 2187, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 2192, "end": 2195, "ctxt": 0 }, "value": ",", "raw": "\",\"" } }, "right": { "type": "CallExpression", "span": { "start": 2198, "end": 2226, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2198, "end": 2224, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2198, "end": 2212, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2198, "end": 2207, "ctxt": 0 }, "value": "nextToken", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2208, "end": 2212, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2213, "end": 2224, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } } } } } }, "right": { "type": "StringLiteral", "span": { "start": 2231, "end": 2234, "ctxt": 0 }, "value": "]", "raw": "\"]\"" } }, "right": { "type": "StringLiteral", "span": { "start": 2257, "end": 2260, "ctxt": 0 }, "value": ")", "raw": "\")\"" } } } ], "typeArguments": null } } ] }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 2290, "end": 2374, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2294, "end": 2373, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2294, "end": 2300, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 2303, "end": 2373, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2303, "end": 2333, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2303, "end": 2307, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2308, "end": 2333, "ctxt": 0 }, "value": "GetIndentationEditsWorker", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2334, "end": 2339, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2341, "end": 2350, "ctxt": 0 }, "value": "nextToken", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2352, "end": 2356, "ctxt": 0 }, "value": "node", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2358, "end": 2372, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 2388, "end": 2748, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 2392, "end": 2417, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2392, "end": 2415, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2392, "end": 2403, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2392, "end": 2396, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2397, "end": 2403, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2404, "end": 2415, "ctxt": 0 }, "value": "information", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 2419, "end": 2748, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 2437, "end": 2734, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 2442, "end": 2451, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2446, "end": 2451, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2446, "end": 2447, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 2450, "end": 2451, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 2453, "end": 2471, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 2453, "end": 2454, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 2457, "end": 2471, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2457, "end": 2469, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2457, "end": 2463, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2464, "end": 2469, "ctxt": 0 }, "value": "count", "optional": false } }, "arguments": [], "typeArguments": null } }, "update": { "type": "UpdateExpression", "span": { "start": 2474, "end": 2477, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 2474, "end": 2475, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 2479, "end": 2734, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 2501, "end": 2526, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2505, "end": 2525, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2505, "end": 2509, "ctxt": 0 }, "value": "edit", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 2512, "end": 2525, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2512, "end": 2522, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2512, "end": 2518, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2519, "end": 2522, "ctxt": 0 }, "value": "get", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2523, "end": 2524, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 2547, "end": 2716, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2547, "end": 2715, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2547, "end": 2562, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2547, "end": 2558, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2547, "end": 2551, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2552, "end": 2558, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2559, "end": 2562, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 2563, "end": 2714, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2563, "end": 2707, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2563, "end": 2656, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2563, "end": 2642, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2563, "end": 2610, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2563, "end": 2595, "ctxt": 0 }, "operator": "+", "left": { "type": "StringLiteral", "span": { "start": 2563, "end": 2579, "ctxt": 0 }, "value": "edit: minChar=", "raw": "\"edit: minChar=\"" }, "right": { "type": "MemberExpression", "span": { "start": 2582, "end": 2595, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2582, "end": 2586, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2587, "end": 2595, "ctxt": 0 }, "value": "position", "optional": false } } }, "right": { "type": "StringLiteral", "span": { "start": 2598, "end": 2610, "ctxt": 0 }, "value": ", limChar=", "raw": "\", limChar=\"" } }, "right": { "type": "ParenthesisExpression", "span": { "start": 2613, "end": 2642, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 2614, "end": 2641, "ctxt": 0 }, "operator": "+", "left": { "type": "MemberExpression", "span": { "start": 2614, "end": 2627, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2614, "end": 2618, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2619, "end": 2627, "ctxt": 0 }, "value": "position", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 2630, "end": 2641, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2630, "end": 2634, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2635, "end": 2641, "ctxt": 0 }, "value": "length", "optional": false } } } } }, "right": { "type": "StringLiteral", "span": { "start": 2645, "end": 2656, "ctxt": 0 }, "value": ", text=\"", "raw": "\", text=\\\"\"" } }, "right": { "type": "CallExpression", "span": { "start": 2659, "end": 2707, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2659, "end": 2685, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2659, "end": 2669, "ctxt": 0 }, "value": "TypeScript", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2670, "end": 2685, "ctxt": 0 }, "value": "stringToLiteral", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 2686, "end": 2702, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2686, "end": 2690, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2691, "end": 2702, "ctxt": 0 }, "value": "replaceWith", "optional": false } } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 2704, "end": 2706, "ctxt": 0 }, "value": 30.0 } } ], "typeArguments": null } }, "right": { "type": "StringLiteral", "span": { "start": 2710, "end": 2714, "ctxt": 0 }, "value": "\"", "raw": "\"\\\"\"" } } } ], "typeArguments": null } } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 2762, "end": 2776, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 2769, "end": 2775, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1877, "end": 1896, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1879, "end": 1896, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1879, "end": 1896, "ctxt": 0 }, "value": "List_TextEditInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 2796, "end": 7018, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2803, "end": 2828, "ctxt": 0 }, "value": "GetIndentationEditsWorker", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 2829, "end": 2845, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2829, "end": 2845, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2834, "end": 2845, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2836, "end": 2845, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2836, "end": 2845, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 2847, "end": 2867, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2847, "end": 2867, "ctxt": 0 }, "value": "nextToken", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2856, "end": 2867, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2858, "end": 2867, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2858, "end": 2867, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 2869, "end": 2884, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2869, "end": 2884, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2873, "end": 2884, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2875, "end": 2884, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2875, "end": 2884, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 2886, "end": 2909, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2886, "end": 2909, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2900, "end": 2909, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2902, "end": 2909, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 2796, "end": 7018, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2930, "end": 7018, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 2944, "end": 2981, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2948, "end": 2980, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2948, "end": 2954, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 2957, "end": 2980, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 2961, "end": 2978, "ctxt": 0 }, "value": "List_TextEditInfo", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 2994, "end": 3038, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2998, "end": 3037, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2998, "end": 3013, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3013, "end": 3030, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3015, "end": 3030, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3015, "end": 3030, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 3033, "end": 3037, "ctxt": 0 } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 3706, "end": 3750, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3706, "end": 3749, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3706, "end": 3736, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 3706, "end": 3710, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 3711, "end": 3736, "ctxt": 0 }, "value": "AdjustStartOffsetIfNeeded", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 3737, "end": 3742, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 3744, "end": 3748, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } }, { "type": "IfStatement", "span": { "start": 3839, "end": 3944, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3843, "end": 3896, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 3843, "end": 3874, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 3843, "end": 3847, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 3848, "end": 3874, "ctxt": 0 }, "value": "scriptBlockBeginLineNumber", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 3878, "end": 3896, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3878, "end": 3894, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3878, "end": 3883, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3884, "end": 3894, "ctxt": 0 }, "value": "lineNumber", "optional": false } }, "arguments": [], "typeArguments": null } }, "consequent": { "type": "BlockStatement", "span": { "start": 3898, "end": 3944, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 3916, "end": 3930, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 3923, "end": 3929, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 4005, "end": 4105, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4009, "end": 4057, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 4009, "end": 4024, "ctxt": 0 }, "operator": "!", "argument": { "type": "Identifier", "span": { "start": 4010, "end": 4024, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 4028, "end": 4057, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4028, "end": 4050, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 4028, "end": 4032, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 4033, "end": 4050, "ctxt": 0 }, "value": "IsMultiLineString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4051, "end": 4056, "ctxt": 0 }, "value": "token", "optional": false } } ], "typeArguments": null } }, "consequent": { "type": "BlockStatement", "span": { "start": 4059, "end": 4105, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 4077, "end": 4091, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4084, "end": 4090, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 4229, "end": 4291, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4229, "end": 4290, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 4229, "end": 4244, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 4247, "end": 4290, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4247, "end": 4277, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 4247, "end": 4251, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 4252, "end": 4277, "ctxt": 0 }, "value": "GetSpecialCaseIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4278, "end": 4283, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4285, "end": 4289, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } }, { "type": "IfStatement", "span": { "start": 4304, "end": 6195, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4308, "end": 4331, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 4308, "end": 4323, "ctxt": 0 }, "value": "indentationInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 4327, "end": 4331, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 4333, "end": 6195, "ctxt": 0 }, "stmts": [ { "type": "WhileStatement", "span": { "start": 4566, "end": 4727, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4573, "end": 4686, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 4573, "end": 4613, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 4573, "end": 4590, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 4574, "end": 4590, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4574, "end": 4588, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4574, "end": 4578, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4579, "end": 4588, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } }, "right": { "type": "BinaryExpression", "span": { "start": 4594, "end": 4613, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 4594, "end": 4605, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4594, "end": 4598, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4599, "end": 4605, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 4609, "end": 4613, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 4617, "end": 4686, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 4617, "end": 4640, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4617, "end": 4638, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4617, "end": 4632, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4617, "end": 4627, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4617, "end": 4622, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4623, "end": 4627, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4628, "end": 4632, "ctxt": 0 }, "value": "span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4633, "end": 4638, "ctxt": 0 }, "value": "start", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "MemberExpression", "span": { "start": 4644, "end": 4686, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4644, "end": 4674, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4644, "end": 4666, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4644, "end": 4655, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4644, "end": 4648, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4649, "end": 4655, "ctxt": 0 }, "value": "Parent", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4656, "end": 4666, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4667, "end": 4674, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4675, "end": 4686, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, "body": { "type": "ExpressionStatement", "span": { "start": 4708, "end": 4727, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4708, "end": 4726, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 4708, "end": 4712, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 4715, "end": 4726, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4715, "end": 4719, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4720, "end": 4726, "ctxt": 0 }, "value": "Parent", "optional": false } } } } }, { "type": "IfStatement", "span": { "start": 4745, "end": 6181, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4749, "end": 4831, "ctxt": 0 }, "operator": "&&", "left": { "type": "CallExpression", "span": { "start": 4749, "end": 4765, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4749, "end": 4763, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4749, "end": 4753, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4754, "end": 4763, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "BinaryExpression", "span": { "start": 4769, "end": 4831, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 4769, "end": 4792, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4769, "end": 4790, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4769, "end": 4784, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4769, "end": 4779, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4769, "end": 4774, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4775, "end": 4779, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4780, "end": 4784, "ctxt": 0 }, "value": "span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4785, "end": 4790, "ctxt": 0 }, "value": "start", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "MemberExpression", "span": { "start": 4796, "end": 4831, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4796, "end": 4819, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4796, "end": 4811, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4796, "end": 4800, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4801, "end": 4811, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4812, "end": 4819, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4820, "end": 4831, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 4833, "end": 4926, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4855, "end": 4908, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4855, "end": 4907, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 4855, "end": 4870, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 4873, "end": 4907, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4873, "end": 4901, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4873, "end": 4877, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4878, "end": 4901, "ctxt": 0 }, "value": "GetEffectiveIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 4902, "end": 4906, "ctxt": 0 } } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 4948, "end": 6181, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 5147, "end": 6163, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 5151, "end": 5263, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 5151, "end": 5216, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 5151, "end": 5195, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 5151, "end": 5162, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5151, "end": 5156, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5157, "end": 5162, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 5166, "end": 5195, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5166, "end": 5181, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5182, "end": 5195, "ctxt": 0 }, "value": "atkIdentifier", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 5199, "end": 5216, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 5199, "end": 5208, "ctxt": 0 }, "value": "nextToken", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 5212, "end": 5216, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 5220, "end": 5263, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 5220, "end": 5235, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5220, "end": 5229, "ctxt": 0 }, "value": "nextToken", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5230, "end": 5235, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 5239, "end": 5263, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5239, "end": 5254, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5255, "end": 5263, "ctxt": 0 }, "value": "atkColon", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 5265, "end": 5697, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 5614, "end": 5675, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 5614, "end": 5674, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 5614, "end": 5629, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 5632, "end": 5674, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 5632, "end": 5668, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5632, "end": 5636, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5637, "end": 5668, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 5669, "end": 5673, "ctxt": 0 } } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 5723, "end": 6163, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6073, "end": 6141, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 6073, "end": 6140, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 6073, "end": 6088, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 6091, "end": 6140, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6091, "end": 6127, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6091, "end": 6095, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6096, "end": 6127, "ctxt": 0 }, "value": "ApplyIndentationDeltaFromParent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6128, "end": 6133, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6135, "end": 6139, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } } ] } } ] } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 6270, "end": 6980, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6274, "end": 6297, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 6274, "end": 6289, "ctxt": 0 }, "value": "indentationInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 6293, "end": 6297, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 6299, "end": 6980, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 6317, "end": 6408, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 6321, "end": 6407, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 6321, "end": 6325, "ctxt": 0 }, "value": "edit", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 6328, "end": 6407, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6328, "end": 6346, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6328, "end": 6332, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6333, "end": 6346, "ctxt": 0 }, "value": "GetIndentEdit", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6347, "end": 6362, "ctxt": 0 }, "value": "indentationInfo", "optional": false } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 6364, "end": 6390, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6364, "end": 6388, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 6364, "end": 6374, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6364, "end": 6369, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6370, "end": 6374, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 6375, "end": 6388, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6392, "end": 6406, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 6425, "end": 6966, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6429, "end": 6441, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 6429, "end": 6433, "ctxt": 0 }, "value": "edit", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 6437, "end": 6441, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 6443, "end": 6966, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6465, "end": 6512, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6465, "end": 6511, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6465, "end": 6489, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6465, "end": 6469, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6470, "end": 6489, "ctxt": 0 }, "value": "RegisterIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6490, "end": 6494, "ctxt": 0 }, "value": "edit", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6496, "end": 6510, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 6534, "end": 6551, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6534, "end": 6550, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6534, "end": 6544, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6534, "end": 6540, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6541, "end": 6544, "ctxt": 0 }, "value": "add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6545, "end": 6549, "ctxt": 0 }, "value": "edit", "optional": false } } ], "typeArguments": null } }, { "type": "IfStatement", "span": { "start": 6664, "end": 6948, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6668, "end": 6709, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 6668, "end": 6679, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6668, "end": 6673, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6674, "end": 6679, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 6683, "end": 6709, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6683, "end": 6698, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6699, "end": 6709, "ctxt": 0 }, "value": "atkComment", "optional": false } } }, "consequent": { "type": "BlockStatement", "span": { "start": 6711, "end": 6948, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 6737, "end": 6795, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 6741, "end": 6794, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 6741, "end": 6753, "ctxt": 0 }, "value": "commentEdits", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 6756, "end": 6794, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6756, "end": 6787, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6756, "end": 6760, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6761, "end": 6787, "ctxt": 0 }, "value": "GetCommentIndentationEdits", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6788, "end": 6793, "ctxt": 0 }, "value": "token", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 6820, "end": 6926, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6820, "end": 6925, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6820, "end": 6840, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6820, "end": 6832, "ctxt": 0 }, "value": "commentEdits", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6833, "end": 6840, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 6841, "end": 6924, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 6842, "end": 6846, "ctxt": 0 }, "value": "item", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 6851, "end": 6924, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6881, "end": 6898, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6881, "end": 6897, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6881, "end": 6891, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6881, "end": 6887, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6888, "end": 6891, "ctxt": 0 }, "value": "add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6892, "end": 6896, "ctxt": 0 }, "value": "item", "optional": false } } ], "typeArguments": null } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "alternate": null } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 6994, "end": 7008, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 7001, "end": 7007, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2910, "end": 2929, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2912, "end": 2929, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2912, "end": 2929, "ctxt": 0 }, "value": "List_TextEditInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 7028, "end": 8548, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 7036, "end": 7062, "ctxt": 0 }, "value": "GetCommentIndentationEdits", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 7063, "end": 7079, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 7063, "end": 7079, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7068, "end": 7079, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 7070, "end": 7079, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 7070, "end": 7079, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 7028, "end": 8548, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 7100, "end": 8548, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 7114, "end": 7151, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7118, "end": 7150, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7118, "end": 7124, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 7127, "end": 7150, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 7131, "end": 7148, "ctxt": 0 }, "value": "List_TextEditInfo", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7165, "end": 7242, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 7169, "end": 7210, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 7169, "end": 7180, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7169, "end": 7174, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7175, "end": 7180, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 7184, "end": 7210, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7184, "end": 7199, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7200, "end": 7210, "ctxt": 0 }, "value": "atkComment", "optional": false } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 7228, "end": 7242, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 7235, "end": 7241, "ctxt": 0 }, "value": "result", "optional": false } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 7256, "end": 7350, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7260, "end": 7349, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7260, "end": 7281, "ctxt": 0 }, "value": "commentLastLineNumber", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7284, "end": 7349, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7284, "end": 7323, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7284, "end": 7297, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7284, "end": 7288, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7289, "end": 7297, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7298, "end": 7323, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 7324, "end": 7348, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7324, "end": 7346, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7324, "end": 7334, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7324, "end": 7329, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7330, "end": 7334, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7335, "end": 7346, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7363, "end": 7442, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 7367, "end": 7410, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 7367, "end": 7385, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7367, "end": 7383, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7367, "end": 7372, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7373, "end": 7383, "ctxt": 0 }, "value": "lineNumber", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "Identifier", "span": { "start": 7389, "end": 7410, "ctxt": 0 }, "value": "commentLastLineNumber", "optional": false } }, "consequent": { "type": "ReturnStatement", "span": { "start": 7428, "end": 7442, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 7435, "end": 7441, "ctxt": 0 }, "value": "result", "optional": false } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 7456, "end": 7554, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7460, "end": 7553, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7460, "end": 7492, "ctxt": 0 }, "value": "commentFirstLineIndentationDelta", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7495, "end": 7553, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7495, "end": 7519, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7495, "end": 7499, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7500, "end": 7519, "ctxt": 0 }, "value": "GetIndentationDelta", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 7520, "end": 7546, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7520, "end": 7544, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7520, "end": 7530, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7520, "end": 7525, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7526, "end": 7530, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7531, "end": 7544, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 7548, "end": 7552, "ctxt": 0 } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7567, "end": 8510, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 7571, "end": 7616, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 7571, "end": 7603, "ctxt": 0 }, "value": "commentFirstLineIndentationDelta", "optional": false }, "right": { "type": "Identifier", "span": { "start": 7607, "end": 7616, "ctxt": 0 }, "value": "undefined", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 7618, "end": 8510, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 7636, "end": 8496, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 7641, "end": 7674, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7645, "end": 7674, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7645, "end": 7649, "ctxt": 0 }, "value": "line", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 7652, "end": 7674, "ctxt": 0 }, "operator": "+", "left": { "type": "CallExpression", "span": { "start": 7652, "end": 7670, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7652, "end": 7668, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7652, "end": 7657, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7658, "end": 7668, "ctxt": 0 }, "value": "lineNumber", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "NumericLiteral", "span": { "start": 7673, "end": 7674, "ctxt": 0 }, "value": 1.0 } }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 7676, "end": 7705, "ctxt": 0 }, "operator": "<=", "left": { "type": "Identifier", "span": { "start": 7676, "end": 7680, "ctxt": 0 }, "value": "line", "optional": false }, "right": { "type": "Identifier", "span": { "start": 7684, "end": 7705, "ctxt": 0 }, "value": "commentLastLineNumber", "optional": false } }, "update": { "type": "UpdateExpression", "span": { "start": 7707, "end": 7713, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 7707, "end": 7711, "ctxt": 0 }, "value": "line", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 7715, "end": 8496, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 7737, "end": 7819, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7741, "end": 7818, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7741, "end": 7758, "ctxt": 0 }, "value": "lineStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7761, "end": 7818, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7761, "end": 7816, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 7761, "end": 7802, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7761, "end": 7796, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7761, "end": 7774, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7761, "end": 7765, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7766, "end": 7774, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7775, "end": 7796, "ctxt": 0 }, "value": "GetLineFromLineNumber", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 7797, "end": 7801, "ctxt": 0 }, "value": "line", "optional": false } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 7803, "end": 7816, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 7840, "end": 7909, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7844, "end": 7908, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7844, "end": 7854, "ctxt": 0 }, "value": "lineIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7857, "end": 7908, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7857, "end": 7889, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7857, "end": 7861, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7862, "end": 7889, "ctxt": 0 }, "value": "GetLineIndentationForOffset", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 7890, "end": 7907, "ctxt": 0 }, "value": "lineStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 7931, "end": 8034, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7935, "end": 8033, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7935, "end": 7957, "ctxt": 0 }, "value": "commentIndentationInfo", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7960, "end": 8033, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7960, "end": 7987, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7960, "end": 7964, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7965, "end": 7987, "ctxt": 0 }, "value": "ApplyIndentationDelta2", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 7988, "end": 7998, "ctxt": 0 }, "value": "lineIndent", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8000, "end": 8032, "ctxt": 0 }, "value": "commentFirstLineIndentationDelta", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 8055, "end": 8478, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 8059, "end": 8089, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 8059, "end": 8081, "ctxt": 0 }, "value": "commentIndentationInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 8085, "end": 8089, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 8091, "end": 8478, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 8117, "end": 8180, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8121, "end": 8179, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8121, "end": 8139, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 8142, "end": 8179, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 8142, "end": 8159, "ctxt": 0 }, "value": "lineStartPosition", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 8162, "end": 8179, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8162, "end": 8172, "ctxt": 0 }, "value": "lineIndent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8173, "end": 8179, "ctxt": 0 }, "value": "length", "optional": false } } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 8205, "end": 8304, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8209, "end": 8303, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8209, "end": 8231, "ctxt": 0 }, "value": "commentIndentationEdit", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 8234, "end": 8303, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8234, "end": 8252, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 8234, "end": 8238, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 8239, "end": 8252, "ctxt": 0 }, "value": "GetIndentEdit", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8253, "end": 8275, "ctxt": 0 }, "value": "commentIndentationInfo", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8277, "end": 8295, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 8297, "end": 8302, "ctxt": 0 }, "value": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 8329, "end": 8456, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 8333, "end": 8363, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 8333, "end": 8355, "ctxt": 0 }, "value": "commentIndentationEdit", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 8359, "end": 8363, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 8365, "end": 8456, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 8395, "end": 8430, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 8395, "end": 8429, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8395, "end": 8405, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8395, "end": 8401, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8402, "end": 8405, "ctxt": 0 }, "value": "add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8406, "end": 8428, "ctxt": 0 }, "value": "commentIndentationEdit", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "alternate": null } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 8524, "end": 8538, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 8531, "end": 8537, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 7080, "end": 7099, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 7082, "end": 7099, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 7082, "end": 7099, "ctxt": 0 }, "value": "List_TextEditInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 8558, "end": 8774, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 8565, "end": 8592, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 8593, "end": 8611, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8593, "end": 8611, "ctxt": 0 }, "value": "indentText", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8603, "end": 8611, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8605, "end": 8611, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 8613, "end": 8650, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8613, "end": 8650, "ctxt": 0 }, "value": "editorOptions", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8626, "end": 8650, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 8628, "end": 8650, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 8628, "end": 8636, "ctxt": 0 }, "value": "Services", "optional": false }, "right": { "type": "Identifier", "span": { "start": 8637, "end": 8650, "ctxt": 0 }, "value": "EditorOptions", "optional": false } }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 8558, "end": 8774, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 8660, "end": 8774, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 8674, "end": 8764, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 8681, "end": 8763, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 8681, "end": 8702, "ctxt": 0 }, "value": "GetIndentSizeFromText", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8703, "end": 8713, "ctxt": 0 }, "value": "indentText", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8715, "end": 8728, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 8757, "end": 8762, "ctxt": 0 }, "value": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 8651, "end": 8659, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8653, "end": 8659, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 8784, "end": 9487, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 8791, "end": 8812, "ctxt": 0 }, "value": "GetIndentSizeFromText", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 8813, "end": 8825, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8813, "end": 8825, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8817, "end": 8825, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8819, "end": 8825, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 8827, "end": 8864, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8827, "end": 8864, "ctxt": 0 }, "value": "editorOptions", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8840, "end": 8864, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 8842, "end": 8864, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 8842, "end": 8850, "ctxt": 0 }, "value": "Services", "optional": false }, "right": { "type": "Identifier", "span": { "start": 8851, "end": 8864, "ctxt": 0 }, "value": "EditorOptions", "optional": false } }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 8866, "end": 8896, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8866, "end": 8896, "ctxt": 0 }, "value": "includeNonIndentChars", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8887, "end": 8896, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8889, "end": 8896, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 8784, "end": 9487, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 8906, "end": 9487, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 8920, "end": 8939, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8924, "end": 8938, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8924, "end": 8934, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 8937, "end": 8938, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, { "type": "ForStatement", "span": { "start": 8953, "end": 9445, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 8958, "end": 8967, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8962, "end": 8967, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8962, "end": 8963, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 8966, "end": 8967, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 8969, "end": 8984, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 8969, "end": 8970, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 8973, "end": 8984, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8973, "end": 8977, "ctxt": 0 }, "value": "text", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8978, "end": 8984, "ctxt": 0 }, "value": "length", "optional": false } } }, "update": { "type": "UpdateExpression", "span": { "start": 8986, "end": 8989, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 8986, "end": 8987, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 8991, "end": 9445, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 9009, "end": 9032, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 9013, "end": 9031, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 9013, "end": 9014, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 9017, "end": 9031, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 9017, "end": 9028, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9017, "end": 9021, "ctxt": 0 }, "value": "text", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9022, "end": 9028, "ctxt": 0 }, "value": "charAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 9029, "end": 9030, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 9050, "end": 9431, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 9054, "end": 9063, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 9054, "end": 9055, "ctxt": 0 }, "value": "c", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 9059, "end": 9063, "ctxt": 0 }, "value": "\t", "raw": "'\\t'" } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 9085, "end": 9174, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9085, "end": 9173, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 9085, "end": 9095, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 9098, "end": 9173, "ctxt": 0 }, "operator": "-", "left": { "type": "ParenthesisExpression", "span": { "start": 9098, "end": 9134, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 9099, "end": 9133, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 9099, "end": 9109, "ctxt": 0 }, "value": "indentSize", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 9112, "end": 9133, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9112, "end": 9125, "ctxt": 0 }, "value": "editorOptions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9126, "end": 9133, "ctxt": 0 }, "value": "TabSize", "optional": false } } } }, "right": { "type": "ParenthesisExpression", "span": { "start": 9137, "end": 9173, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 9138, "end": 9172, "ctxt": 0 }, "operator": "%", "left": { "type": "Identifier", "span": { "start": 9138, "end": 9148, "ctxt": 0 }, "value": "indentSize", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 9151, "end": 9172, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9151, "end": 9164, "ctxt": 0 }, "value": "editorOptions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9165, "end": 9172, "ctxt": 0 }, "value": "TabSize", "optional": false } } } } } } }, "alternate": { "type": "IfStatement", "span": { "start": 9196, "end": 9431, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 9200, "end": 9208, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 9200, "end": 9201, "ctxt": 0 }, "value": "c", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 9205, "end": 9208, "ctxt": 0 }, "value": " ", "raw": "' '" } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 9230, "end": 9246, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9230, "end": 9245, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 9230, "end": 9240, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 9244, "end": 9245, "ctxt": 0 }, "value": 1.0 } } }, "alternate": { "type": "BlockStatement", "span": { "start": 9268, "end": 9431, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 9290, "end": 9413, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 9294, "end": 9315, "ctxt": 0 }, "value": "includeNonIndentChars", "optional": false }, "consequent": { "type": "ExpressionStatement", "span": { "start": 9341, "end": 9357, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9341, "end": 9356, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 9341, "end": 9351, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 9355, "end": 9356, "ctxt": 0 }, "value": 1.0 } } }, "alternate": { "type": "BreakStatement", "span": { "start": 9407, "end": 9413, "ctxt": 0 }, "label": null } } ] } } } ] } }, { "type": "ReturnStatement", "span": { "start": 9459, "end": 9477, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 9466, "end": 9476, "ctxt": 0 }, "value": "indentSize", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 8897, "end": 8905, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8899, "end": 8905, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 9497, "end": 11374, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 9505, "end": 9530, "ctxt": 0 }, "value": "GetSpecialCaseIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 9531, "end": 9547, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 9531, "end": 9547, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 9536, "end": 9547, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9538, "end": 9547, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9538, "end": 9547, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 9549, "end": 9564, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 9549, "end": 9564, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 9553, "end": 9564, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9555, "end": 9564, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9555, "end": 9564, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 9497, "end": 11374, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 9583, "end": 11374, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 9597, "end": 9641, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 9601, "end": 9640, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 9601, "end": 9616, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 9616, "end": 9633, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9618, "end": 9633, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9618, "end": 9633, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 9636, "end": 9640, "ctxt": 0 } }, "definite": false } ] }, { "type": "SwitchStatement", "span": { "start": 9655, "end": 11364, "ctxt": 0 }, "discriminant": { "type": "MemberExpression", "span": { "start": 9663, "end": 9674, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9663, "end": 9668, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9669, "end": 9674, "ctxt": 0 }, "value": "Token", "optional": false } }, "cases": [ { "type": "SwitchCase", "span": { "start": 9694, "end": 9883, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 9699, "end": 9724, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9699, "end": 9714, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9715, "end": 9724, "ctxt": 0 }, "value": "atkLCurly", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 9775, "end": 9839, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9775, "end": 9838, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 9775, "end": 9790, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 9793, "end": 9838, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 9793, "end": 9832, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 9793, "end": 9797, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 9798, "end": 9832, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForLCurly", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 9833, "end": 9837, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 9860, "end": 9883, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 9867, "end": 9882, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, { "type": "SwitchCase", "span": { "start": 9901, "end": 9930, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 9906, "end": 9929, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9906, "end": 9921, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9922, "end": 9929, "ctxt": 0 }, "value": "atkElse", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 9981, "end": 10163, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 9986, "end": 10011, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9986, "end": 10001, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10002, "end": 10011, "ctxt": 0 }, "value": "atkRBrack", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 10062, "end": 10119, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10062, "end": 10118, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10062, "end": 10077, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 10080, "end": 10118, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 10080, "end": 10112, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10080, "end": 10084, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10085, "end": 10112, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 10113, "end": 10117, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 10140, "end": 10163, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 10147, "end": 10162, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, { "type": "SwitchCase", "span": { "start": 10181, "end": 10643, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 10186, "end": 10211, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10186, "end": 10201, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10202, "end": 10211, "ctxt": 0 }, "value": "atkRCurly", "optional": false } }, "consequent": [ { "type": "IfStatement", "span": { "start": 10350, "end": 10521, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 10354, "end": 10476, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 10354, "end": 10415, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 10354, "end": 10382, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10354, "end": 10377, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10354, "end": 10369, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10354, "end": 10358, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10359, "end": 10369, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10370, "end": 10377, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10378, "end": 10382, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 10386, "end": 10415, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10386, "end": 10405, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10406, "end": 10415, "ctxt": 0 }, "value": "apnkBlock", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 10419, "end": 10476, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 10419, "end": 10444, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10419, "end": 10434, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10419, "end": 10423, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10424, "end": 10434, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10435, "end": 10444, "ctxt": 0 }, "value": "EdgeLabel", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 10448, "end": 10476, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10448, "end": 10467, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10468, "end": 10476, "ctxt": 0 }, "value": "apneBody", "optional": false } } } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 10502, "end": 10521, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10502, "end": 10520, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10502, "end": 10506, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 10509, "end": 10520, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10509, "end": 10513, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10514, "end": 10520, "ctxt": 0 }, "value": "Parent", "optional": false } } } }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 10542, "end": 10599, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10542, "end": 10598, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10542, "end": 10557, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 10560, "end": 10598, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 10560, "end": 10592, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10560, "end": 10564, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10565, "end": 10592, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 10593, "end": 10597, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 10620, "end": 10643, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 10627, "end": 10642, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, { "type": "SwitchCase", "span": { "start": 10661, "end": 11015, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 10666, "end": 10690, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10666, "end": 10681, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10682, "end": 10690, "ctxt": 0 }, "value": "atkWhile", "optional": false } }, "consequent": [ { "type": "IfStatement", "span": { "start": 10759, "end": 10981, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 10763, "end": 10826, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 10763, "end": 10791, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10763, "end": 10786, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10763, "end": 10778, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10763, "end": 10767, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10768, "end": 10778, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10779, "end": 10786, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10787, "end": 10791, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 10795, "end": 10826, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10795, "end": 10814, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10815, "end": 10826, "ctxt": 0 }, "value": "apnkDoWhile", "optional": false } } }, "consequent": { "type": "BlockStatement", "span": { "start": 10828, "end": 10981, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 10854, "end": 10911, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10854, "end": 10910, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10854, "end": 10869, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 10872, "end": 10910, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 10872, "end": 10904, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10872, "end": 10876, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10877, "end": 10904, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 10905, "end": 10909, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 10936, "end": 10959, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 10943, "end": 10958, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 11003, "end": 11015, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 11010, "end": 11014, "ctxt": 0 } } } ] }, { "type": "SwitchCase", "span": { "start": 11033, "end": 11148, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 11038, "end": 11063, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11038, "end": 11053, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11054, "end": 11063, "ctxt": 0 }, "value": "atkSColon", "optional": false } }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 11085, "end": 11148, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 11092, "end": 11147, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 11092, "end": 11134, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 11092, "end": 11096, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 11097, "end": 11134, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForSemicolon", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11135, "end": 11140, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11142, "end": 11146, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } ] }, { "type": "SwitchCase", "span": { "start": 11166, "end": 11280, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 11171, "end": 11197, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11171, "end": 11186, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11187, "end": 11197, "ctxt": 0 }, "value": "atkComment", "optional": false } }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 11219, "end": 11280, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 11226, "end": 11279, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 11226, "end": 11266, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 11226, "end": 11230, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 11231, "end": 11266, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForComment", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11267, "end": 11272, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11274, "end": 11278, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } ] }, { "type": "SwitchCase", "span": { "start": 11298, "end": 11350, "ctxt": 0 }, "test": null, "consequent": [ { "type": "ReturnStatement", "span": { "start": 11327, "end": 11350, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 11334, "end": 11349, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] } ] } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 9565, "end": 9582, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9567, "end": 9582, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9567, "end": 9582, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 11384, "end": 12331, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 11392, "end": 11426, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForLCurly", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 11427, "end": 11442, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 11427, "end": 11442, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 11431, "end": 11442, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 11433, "end": 11442, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 11433, "end": 11442, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 11384, "end": 12331, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 11461, "end": 12331, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 11475, "end": 11519, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 11479, "end": 11518, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 11479, "end": 11494, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 11494, "end": 11511, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 11496, "end": 11511, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 11496, "end": 11511, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 11514, "end": 11518, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 11533, "end": 12169, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 11537, "end": 11738, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 11537, "end": 11677, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 11537, "end": 11600, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11537, "end": 11565, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11537, "end": 11560, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11537, "end": 11552, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11537, "end": 11541, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11542, "end": 11552, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11553, "end": 11560, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11561, "end": 11565, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11569, "end": 11600, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11569, "end": 11588, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11589, "end": 11600, "ctxt": 0 }, "value": "apnkFncDecl", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 11620, "end": 11677, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11620, "end": 11645, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11620, "end": 11635, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11620, "end": 11624, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11625, "end": 11635, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11636, "end": 11645, "ctxt": 0 }, "value": "EdgeLabel", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11649, "end": 11677, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11649, "end": 11668, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11669, "end": 11677, "ctxt": 0 }, "value": "apneThen", "optional": false } } } }, "right": { "type": "BinaryExpression", "span": { "start": 11681, "end": 11738, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11681, "end": 11706, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11681, "end": 11696, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11681, "end": 11685, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11686, "end": 11696, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11697, "end": 11706, "ctxt": 0 }, "value": "EdgeLabel", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11710, "end": 11738, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11710, "end": 11729, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11730, "end": 11738, "ctxt": 0 }, "value": "apneElse", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 11740, "end": 11930, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 11819, "end": 11876, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 11819, "end": 11875, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 11819, "end": 11834, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 11837, "end": 11875, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 11837, "end": 11869, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11837, "end": 11841, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11842, "end": 11869, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 11870, "end": 11874, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 11893, "end": 11916, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 11900, "end": 11915, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": { "type": "IfStatement", "span": { "start": 11948, "end": 12169, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 11952, "end": 12035, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 11952, "end": 12014, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11952, "end": 11980, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11952, "end": 11975, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11952, "end": 11967, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11952, "end": 11956, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11957, "end": 11967, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11968, "end": 11975, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11976, "end": 11980, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11984, "end": 12014, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11984, "end": 12003, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12004, "end": 12014, "ctxt": 0 }, "value": "apnkObject", "optional": false } } }, "right": { "type": "UnaryExpression", "span": { "start": 12018, "end": 12035, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 12019, "end": 12035, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 12019, "end": 12033, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12019, "end": 12023, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12024, "end": 12033, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } } }, "consequent": { "type": "BlockStatement", "span": { "start": 12037, "end": 12169, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 12143, "end": 12155, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 12150, "end": 12154, "ctxt": 0 } } } ] }, "alternate": null } }, { "type": "ExpressionStatement", "span": { "start": 12232, "end": 12285, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 12232, "end": 12284, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 12232, "end": 12247, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 12250, "end": 12284, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 12250, "end": 12278, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12250, "end": 12254, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12255, "end": 12278, "ctxt": 0 }, "value": "GetEffectiveIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 12279, "end": 12283, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 12298, "end": 12321, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 12305, "end": 12320, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 11443, "end": 11460, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 11445, "end": 11460, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 11445, "end": 11460, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 12341, "end": 13625, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 12349, "end": 12386, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForSemicolon", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 12387, "end": 12403, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 12387, "end": 12403, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 12392, "end": 12403, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12394, "end": 12403, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12394, "end": 12403, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 12405, "end": 12420, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 12405, "end": 12420, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 12409, "end": 12420, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12411, "end": 12420, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12411, "end": 12420, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 12341, "end": 13625, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 12439, "end": 13625, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 12453, "end": 12497, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 12457, "end": 12496, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 12457, "end": 12472, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 12472, "end": 12489, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12474, "end": 12489, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12474, "end": 12489, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 12492, "end": 12496, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 12511, "end": 13589, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 12515, "end": 12531, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 12515, "end": 12519, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 12520, "end": 12531, "ctxt": 0 }, "value": "smartIndent", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 12533, "end": 12666, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 12551, "end": 12612, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 12551, "end": 12611, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 12551, "end": 12566, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 12569, "end": 12611, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 12569, "end": 12605, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12569, "end": 12573, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12574, "end": 12605, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 12606, "end": 12610, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 12629, "end": 12652, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 12636, "end": 12651, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 12684, "end": 13589, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 12833, "end": 13575, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 12837, "end": 12896, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 12837, "end": 12865, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 12837, "end": 12860, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 12837, "end": 12852, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12837, "end": 12841, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12842, "end": 12852, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 12853, "end": 12860, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 12861, "end": 12865, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 12869, "end": 12896, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12869, "end": 12888, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12889, "end": 12896, "ctxt": 0 }, "value": "apnkFor", "optional": false } } }, "consequent": { "type": "BlockStatement", "span": { "start": 12898, "end": 13575, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 13261, "end": 13326, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 13265, "end": 13325, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 13265, "end": 13283, "ctxt": 0 }, "value": "semiColonStartSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 13286, "end": 13325, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 13290, "end": 13294, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 13295, "end": 13321, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13295, "end": 13319, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 13295, "end": 13305, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13295, "end": 13300, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13301, "end": 13305, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 13306, "end": 13319, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 13323, "end": 13324, "ctxt": 0 }, "value": 0.0 } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 13347, "end": 13431, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 13347, "end": 13430, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 13347, "end": 13351, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 13354, "end": 13430, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13354, "end": 13384, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13354, "end": 13363, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13364, "end": 13384, "ctxt": 0 }, "value": "FindCommonParentNode", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 13385, "end": 13403, "ctxt": 0 }, "value": "semiColonStartSpan", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 13405, "end": 13423, "ctxt": 0 }, "value": "semiColonStartSpan", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 13425, "end": 13429, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 13452, "end": 13513, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 13452, "end": 13512, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 13452, "end": 13467, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 13470, "end": 13512, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13470, "end": 13506, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13470, "end": 13474, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13475, "end": 13506, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 13507, "end": 13511, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 13534, "end": 13557, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 13541, "end": 13556, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": null } ] } }, { "type": "ReturnStatement", "span": { "start": 13603, "end": 13615, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 13610, "end": 13614, "ctxt": 0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 12421, "end": 12438, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12423, "end": 12438, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12423, "end": 12438, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 13635, "end": 14554, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 13643, "end": 13678, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForComment", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 13679, "end": 13695, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 13679, "end": 13695, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 13684, "end": 13695, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13686, "end": 13695, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13686, "end": 13695, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 13697, "end": 13712, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 13697, "end": 13712, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 13701, "end": 13712, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13703, "end": 13712, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13703, "end": 13712, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 13635, "end": 14554, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 13731, "end": 14554, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 13745, "end": 13789, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 13749, "end": 13788, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 13749, "end": 13764, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 13764, "end": 13781, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13766, "end": 13781, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13766, "end": 13781, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 13784, "end": 13788, "ctxt": 0 } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 13879, "end": 13962, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 13883, "end": 13961, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 13883, "end": 13894, "ctxt": 0 }, "value": "twoCharSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 13897, "end": 13961, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13897, "end": 13920, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 13897, "end": 13907, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13897, "end": 13902, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13903, "end": 13907, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 13908, "end": 13920, "ctxt": 0 }, "value": "Intersection", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 13921, "end": 13960, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 13925, "end": 13929, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 13930, "end": 13956, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13930, "end": 13954, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 13930, "end": 13940, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13930, "end": 13935, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13936, "end": 13940, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 13941, "end": 13954, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 13958, "end": 13959, "ctxt": 0 }, "value": 2.0 } } ], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 13975, "end": 14507, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 13979, "end": 14066, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 13979, "end": 13998, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 13979, "end": 13990, "ctxt": 0 }, "value": "twoCharSpan", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 13994, "end": 13998, "ctxt": 0 } } }, "right": { "type": "ParenthesisExpression", "span": { "start": 14002, "end": 14066, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 14003, "end": 14065, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 14003, "end": 14032, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 14003, "end": 14024, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14003, "end": 14022, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14003, "end": 14014, "ctxt": 0 }, "value": "twoCharSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14015, "end": 14022, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 14028, "end": 14032, "ctxt": 0 }, "value": "//", "raw": "\"//\"" } }, "right": { "type": "BinaryExpression", "span": { "start": 14036, "end": 14065, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 14036, "end": 14057, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14036, "end": 14055, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14036, "end": 14047, "ctxt": 0 }, "value": "twoCharSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14048, "end": 14055, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 14061, "end": 14065, "ctxt": 0 }, "value": "/*", "raw": "\"/*\"" } } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 14068, "end": 14507, "ctxt": 0 }, "stmts": [ { "type": "WhileStatement", "span": { "start": 14086, "end": 14194, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 14093, "end": 14153, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 14093, "end": 14130, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 14093, "end": 14122, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14093, "end": 14097, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14098, "end": 14122, "ctxt": 0 }, "value": "ChildrenIndentationDelta", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 14126, "end": 14130, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 14134, "end": 14153, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 14134, "end": 14145, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14134, "end": 14138, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14139, "end": 14145, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 14149, "end": 14153, "ctxt": 0 } } } }, "body": { "type": "ExpressionStatement", "span": { "start": 14175, "end": 14194, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 14175, "end": 14193, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 14175, "end": 14179, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 14182, "end": 14193, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14182, "end": 14186, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14187, "end": 14193, "ctxt": 0 }, "value": "Parent", "optional": false } } } } }, { "type": "IfStatement", "span": { "start": 14212, "end": 14493, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 14216, "end": 14250, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14216, "end": 14237, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 14216, "end": 14220, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 14221, "end": 14237, "ctxt": 0 }, "value": "CanIndentComment", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14238, "end": 14243, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14245, "end": 14249, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 14252, "end": 14363, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 14274, "end": 14345, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 14274, "end": 14344, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 14274, "end": 14289, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 14292, "end": 14344, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14292, "end": 14338, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14292, "end": 14296, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14297, "end": 14338, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentationForComment", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 14339, "end": 14343, "ctxt": 0 } } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 14385, "end": 14493, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 14407, "end": 14475, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 14407, "end": 14474, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 14407, "end": 14422, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 14425, "end": 14474, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14425, "end": 14461, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 14425, "end": 14429, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 14430, "end": 14461, "ctxt": 0 }, "value": "ApplyIndentationDeltaFromParent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14462, "end": 14467, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14469, "end": 14473, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 14521, "end": 14544, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 14528, "end": 14543, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 13713, "end": 13730, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13715, "end": 13730, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13715, "end": 13730, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 14564, "end": 16243, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 14572, "end": 14588, "ctxt": 0 }, "value": "CanIndentComment", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 14589, "end": 14605, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 14589, "end": 14605, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 14594, "end": 14605, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 14596, "end": 14605, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 14596, "end": 14605, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 14607, "end": 14622, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 14607, "end": 14622, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 14611, "end": 14622, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 14613, "end": 14622, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 14613, "end": 14622, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 14564, "end": 16243, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 14633, "end": 16243, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 14647, "end": 16206, "ctxt": 0 }, "discriminant": { "type": "MemberExpression", "span": { "start": 14655, "end": 14683, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 14655, "end": 14678, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 14655, "end": 14670, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14655, "end": 14659, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14660, "end": 14670, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 14671, "end": 14678, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 14679, "end": 14683, "ctxt": 0 }, "value": "Kind", "optional": false } }, "cases": [ { "type": "SwitchCase", "span": { "start": 14703, "end": 14737, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14708, "end": 14736, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14708, "end": 14727, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14728, "end": 14736, "ctxt": 0 }, "value": "apnkProg", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14754, "end": 14789, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14759, "end": 14788, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14759, "end": 14778, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14779, "end": 14788, "ctxt": 0 }, "value": "apnkBlock", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14806, "end": 14842, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14811, "end": 14841, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14811, "end": 14830, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14831, "end": 14841, "ctxt": 0 }, "value": "apnkSwitch", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14859, "end": 14893, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14864, "end": 14892, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14864, "end": 14883, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14884, "end": 14892, "ctxt": 0 }, "value": "apnkCase", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14910, "end": 14951, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14915, "end": 14950, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14915, "end": 14934, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14935, "end": 14950, "ctxt": 0 }, "value": "apnkDefaultCase", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14968, "end": 15000, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14973, "end": 14999, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14973, "end": 14992, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14993, "end": 14999, "ctxt": 0 }, "value": "apnkIf", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15017, "end": 15050, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15022, "end": 15049, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15022, "end": 15041, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15042, "end": 15049, "ctxt": 0 }, "value": "apnkFor", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15067, "end": 15102, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15072, "end": 15101, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15072, "end": 15091, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15092, "end": 15101, "ctxt": 0 }, "value": "apnkForIn", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15119, "end": 15154, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15124, "end": 15153, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15124, "end": 15143, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15144, "end": 15153, "ctxt": 0 }, "value": "apnkWhile", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15171, "end": 15205, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15176, "end": 15204, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15176, "end": 15195, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15196, "end": 15204, "ctxt": 0 }, "value": "apnkWith", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15222, "end": 15259, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15227, "end": 15258, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15227, "end": 15246, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15247, "end": 15258, "ctxt": 0 }, "value": "apnkDoWhile", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15276, "end": 15345, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15281, "end": 15311, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15281, "end": 15300, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15301, "end": 15311, "ctxt": 0 }, "value": "apnkObject", "optional": false } }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 15333, "end": 15345, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 15340, "end": 15344, "ctxt": 0 }, "value": true } } ] }, { "type": "SwitchCase", "span": { "start": 15363, "end": 16192, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15368, "end": 15399, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15368, "end": 15387, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15388, "end": 15399, "ctxt": 0 }, "value": "apnkFncDecl", "optional": false } }, "consequent": [ { "type": "VariableDeclaration", "span": { "start": 15794, "end": 15812, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 15798, "end": 15811, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 15798, "end": 15804, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "BooleanLiteral", "span": { "start": 15807, "end": 15811, "ctxt": 0 }, "value": true }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 15833, "end": 15929, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 15837, "end": 15928, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 15837, "end": 15845, "ctxt": 0 }, "value": "children", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 15848, "end": 15928, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 15848, "end": 15888, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15848, "end": 15867, "ctxt": 0 }, "value": "ParseNodeExtensions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15868, "end": 15888, "ctxt": 0 }, "value": "FindChildrenWithEdge", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 15889, "end": 15893, "ctxt": 0 }, "value": "node", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 15895, "end": 15927, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15895, "end": 15914, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15915, "end": 15927, "ctxt": 0 }, "value": "apneArgument", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 15950, "end": 16156, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 15950, "end": 16155, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 15950, "end": 15966, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15950, "end": 15958, "ctxt": 0 }, "value": "children", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15959, "end": 15966, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 15967, "end": 16154, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 15968, "end": 15980, "ctxt": 0 }, "value": "argumentNode", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 15985, "end": 16154, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 16011, "end": 16132, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 16015, "end": 16087, "ctxt": 0 }, "operator": "<", "left": { "type": "CallExpression", "span": { "start": 16015, "end": 16041, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 16015, "end": 16039, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 16015, "end": 16025, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 16015, "end": 16020, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 16021, "end": 16025, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 16026, "end": 16039, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "MemberExpression", "span": { "start": 16044, "end": 16087, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 16044, "end": 16075, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 16044, "end": 16067, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 16044, "end": 16056, "ctxt": 0 }, "value": "argumentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 16057, "end": 16067, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 16068, "end": 16075, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 16076, "end": 16087, "ctxt": 0 }, "value": "StartOffset", "optional": false } } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 16117, "end": 16132, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 16117, "end": 16131, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 16117, "end": 16123, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "BooleanLiteral", "span": { "start": 16126, "end": 16131, "ctxt": 0 }, "value": false } } }, "alternate": null } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ReturnStatement", "span": { "start": 16178, "end": 16192, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 16185, "end": 16191, "ctxt": 0 }, "value": "result", "optional": false } } ] } ] }, { "type": "ReturnStatement", "span": { "start": 16220, "end": 16233, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 16227, "end": 16232, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 14623, "end": 14632, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 14625, "end": 14632, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 16253, "end": 18906, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 16261, "end": 16288, "ctxt": 0 }, "value": "ApplyScriptBlockIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 16289, "end": 16320, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 16289, "end": 16320, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 16312, "end": 16320, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 16314, "end": 16320, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 16322, "end": 16337, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 16322, "end": 16337, "ctxt": 0 }, "value": "tree", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 16326, "end": 16337, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 16328, "end": 16337, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 16328, "end": 16337, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 16253, "end": 18906, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 16353, "end": 18906, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 16367, "end": 16457, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 16371, "end": 16432, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 16371, "end": 16402, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 16371, "end": 16394, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 16398, "end": 16402, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 16406, "end": 16432, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 16406, "end": 16424, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 16406, "end": 16410, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 16411, "end": 16424, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 16428, "end": 16432, "ctxt": 0 } } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 16450, "end": 16457, "ctxt": 0 }, "argument": null }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 16471, "end": 16555, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 16475, "end": 16554, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 16475, "end": 16497, "ctxt": 0 }, "value": "scriptBlockIndentation", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 16500, "end": 16554, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 16500, "end": 16526, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 16500, "end": 16504, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 16505, "end": 16526, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 16527, "end": 16550, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 16552, "end": 16553, "ctxt": 0 }, "value": 1.0 } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 18839, "end": 18896, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 18839, "end": 18895, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 18839, "end": 18871, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 18839, "end": 18848, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 18839, "end": 18843, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 18844, "end": 18848, "ctxt": 0 }, "value": "Root", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 18849, "end": 18871, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 18872, "end": 18894, "ctxt": 0 }, "value": "scriptBlockIndentation", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 16338, "end": 16344, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 16340, "end": 16344, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 18916, "end": 20412, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 18924, "end": 18937, "ctxt": 0 }, "value": "GetIndentEdit", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 18938, "end": 18965, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 18938, "end": 18965, "ctxt": 0 }, "value": "indentInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 18948, "end": 18965, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 18950, "end": 18965, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 18950, "end": 18965, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 18967, "end": 18993, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 18967, "end": 18993, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 18985, "end": 18993, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 18987, "end": 18993, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 18995, "end": 19018, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 18995, "end": 19018, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 19009, "end": 19018, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 19011, "end": 19018, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 18916, "end": 20412, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 19034, "end": 20412, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 19048, "end": 19129, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19052, "end": 19128, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19052, "end": 19062, "ctxt": 0 }, "value": "indentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19065, "end": 19128, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19065, "end": 19091, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19065, "end": 19069, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19070, "end": 19091, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 19092, "end": 19109, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19092, "end": 19102, "ctxt": 0 }, "value": "indentInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19103, "end": 19109, "ctxt": 0 }, "value": "Prefix", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 19111, "end": 19127, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19111, "end": 19121, "ctxt": 0 }, "value": "indentInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19122, "end": 19127, "ctxt": 0 }, "value": "Level", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 19143, "end": 20376, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 19147, "end": 19161, "ctxt": 0 }, "value": "sameLineIndent", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 19163, "end": 19254, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 19181, "end": 19240, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 19188, "end": 19239, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 19192, "end": 19204, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19205, "end": 19223, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 19225, "end": 19226, "ctxt": 0 }, "value": 0.0 } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19228, "end": 19238, "ctxt": 0 }, "value": "indentText", "optional": false } } ], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 19272, "end": 20376, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 19290, "end": 19363, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19294, "end": 19362, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19294, "end": 19306, "ctxt": 0 }, "value": "snapshotLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19309, "end": 19362, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19309, "end": 19342, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 19309, "end": 19322, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19309, "end": 19313, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19314, "end": 19322, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 19323, "end": 19342, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19343, "end": 19361, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 19380, "end": 19494, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19384, "end": 19493, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19384, "end": 19401, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 19404, "end": 19493, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 19408, "end": 19412, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 19413, "end": 19441, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19413, "end": 19439, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19413, "end": 19425, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19426, "end": 19439, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 19443, "end": 19492, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 19443, "end": 19461, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 19464, "end": 19492, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19464, "end": 19490, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19464, "end": 19476, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19477, "end": 19490, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 19511, "end": 19576, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19515, "end": 19575, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19515, "end": 19532, "ctxt": 0 }, "value": "currentIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19535, "end": 19575, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19535, "end": 19556, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 19535, "end": 19548, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19535, "end": 19539, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19540, "end": 19548, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 19549, "end": 19556, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19557, "end": 19574, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 19594, "end": 20362, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 19598, "end": 19630, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 19598, "end": 19615, "ctxt": 0 }, "value": "currentIndentText", "optional": false }, "right": { "type": "Identifier", "span": { "start": 19620, "end": 19630, "ctxt": 0 }, "value": "indentText", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 19632, "end": 20362, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 19654, "end": 20232, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 19658, "end": 19677, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19658, "end": 19675, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 19658, "end": 19669, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19658, "end": 19662, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19663, "end": 19669, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 19670, "end": 19675, "ctxt": 0 }, "value": "debug", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 19679, "end": 20232, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 19781, "end": 20210, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 19786, "end": 19827, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19790, "end": 19795, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19790, "end": 19791, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 19794, "end": 19795, "ctxt": 0 }, "value": 0.0 }, "definite": false }, { "type": "VariableDeclarator", "span": { "start": 19797, "end": 19827, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19797, "end": 19800, "ctxt": 0 }, "value": "len", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 19803, "end": 19827, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19803, "end": 19820, "ctxt": 0 }, "value": "currentIndentText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19821, "end": 19827, "ctxt": 0 }, "value": "length", "optional": false } }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 19829, "end": 19836, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 19829, "end": 19830, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "Identifier", "span": { "start": 19833, "end": 19836, "ctxt": 0 }, "value": "len", "optional": false } }, "update": { "type": "UpdateExpression", "span": { "start": 19838, "end": 19841, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 19838, "end": 19839, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 19843, "end": 20210, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 19873, "end": 19913, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19877, "end": 19912, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19877, "end": 19878, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19881, "end": 19912, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19881, "end": 19909, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19881, "end": 19898, "ctxt": 0 }, "value": "currentIndentText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19899, "end": 19909, "ctxt": 0 }, "value": "charCodeAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19910, "end": 19911, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 19942, "end": 20184, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 19946, "end": 19974, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 19947, "end": 19974, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19947, "end": 19971, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19947, "end": 19958, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19959, "end": 19971, "ctxt": 0 }, "value": "IsWhiteSpace", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19972, "end": 19973, "ctxt": 0 }, "value": "c", "optional": false } } ], "typeArguments": null } }, "consequent": { "type": "BlockStatement", "span": { "start": 19976, "end": 20184, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 20010, "end": 20115, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 20010, "end": 20114, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20010, "end": 20020, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20010, "end": 20015, "ctxt": 0 }, "value": "Debug", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20016, "end": 20020, "ctxt": 0 }, "value": "Fail", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 20021, "end": 20113, "ctxt": 0 }, "operator": "+", "left": { "type": "StringLiteral", "span": { "start": 20021, "end": 20088, "ctxt": 0 }, "value": "Formatting error: Will remove user code when indenting the line: ", "raw": "\"Formatting error: Will remove user code when indenting the line: \"" }, "right": { "type": "CallExpression", "span": { "start": 20091, "end": 20113, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20091, "end": 20111, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20091, "end": 20103, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20104, "end": 20111, "ctxt": 0 }, "value": "getText", "optional": false } }, "arguments": [], "typeArguments": null } } } ], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 20148, "end": 20154, "ctxt": 0 }, "label": null } ] }, "alternate": null } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 20253, "end": 20344, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 20260, "end": 20343, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 20264, "end": 20276, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 20277, "end": 20302, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20277, "end": 20300, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20277, "end": 20294, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20295, "end": 20300, "ctxt": 0 }, "value": "start", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 20304, "end": 20330, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20304, "end": 20328, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20304, "end": 20321, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20322, "end": 20328, "ctxt": 0 }, "value": "length", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 20332, "end": 20342, "ctxt": 0 }, "value": "indentText", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null } ] } }, { "type": "ReturnStatement", "span": { "start": 20390, "end": 20402, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 20397, "end": 20401, "ctxt": 0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 19019, "end": 19033, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 19021, "end": 19033, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 19021, "end": 19033, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 20422, "end": 21524, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 20430, "end": 20451, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 20452, "end": 20479, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 20452, "end": 20479, "ctxt": 0 }, "value": "existingIndentation", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 20471, "end": 20479, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 20473, "end": 20479, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 20481, "end": 20494, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 20481, "end": 20494, "ctxt": 0 }, "value": "level", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 20486, "end": 20494, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 20488, "end": 20494, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 20422, "end": 21524, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 20504, "end": 21524, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 20518, "end": 20565, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20522, "end": 20564, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20522, "end": 20532, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 20535, "end": 20564, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 20535, "end": 20553, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 20535, "end": 20539, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 20540, "end": 20553, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 20554, "end": 20564, "ctxt": 0 }, "value": "IndentSize", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 20578, "end": 20619, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20582, "end": 20618, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20582, "end": 20589, "ctxt": 0 }, "value": "tabSize", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 20592, "end": 20618, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 20592, "end": 20610, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 20592, "end": 20596, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 20597, "end": 20610, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 20611, "end": 20618, "ctxt": 0 }, "value": "TabSize", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 20632, "end": 20697, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20636, "end": 20696, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20636, "end": 20655, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 20658, "end": 20696, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 20658, "end": 20676, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 20658, "end": 20662, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 20663, "end": 20676, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 20677, "end": 20696, "ctxt": 0 }, "value": "ConvertTabsToSpaces", "optional": false } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 20711, "end": 21350, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 20715, "end": 20724, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 20715, "end": 20720, "ctxt": 0 }, "value": "level", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 20723, "end": 20724, "ctxt": 0 }, "value": 0.0 } }, "consequent": { "type": "BlockStatement", "span": { "start": 20726, "end": 21350, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 20744, "end": 20826, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 20748, "end": 20794, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20748, "end": 20773, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20748, "end": 20759, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20760, "end": 20773, "ctxt": 0 }, "value": "IsNullOrEmpty", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 20774, "end": 20793, "ctxt": 0 }, "value": "existingIndentation", "optional": false } } ], "typeArguments": null }, "consequent": { "type": "ReturnStatement", "span": { "start": 20816, "end": 20826, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 20823, "end": 20825, "ctxt": 0 }, "value": "", "raw": "\"\"" } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 20844, "end": 20864, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20848, "end": 20863, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20848, "end": 20859, "ctxt": 0 }, "value": "totalIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 20862, "end": 20863, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 20881, "end": 21097, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 20881, "end": 21096, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20881, "end": 20900, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20881, "end": 20892, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20893, "end": 20900, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 20901, "end": 20920, "ctxt": 0 }, "value": "existingIndentation", "optional": false } }, { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 20922, "end": 21095, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 20923, "end": 20924, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 20929, "end": 21095, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 20951, "end": 21077, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 20955, "end": 20964, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 20955, "end": 20956, "ctxt": 0 }, "value": "c", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 20960, "end": 20964, "ctxt": 0 }, "value": "\t", "raw": "'\\t'" } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 20990, "end": 21013, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 20990, "end": 21012, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 20990, "end": 21001, "ctxt": 0 }, "value": "totalIndent", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 21005, "end": 21012, "ctxt": 0 }, "value": "tabSize", "optional": false } } }, "alternate": { "type": "ExpressionStatement", "span": { "start": 21063, "end": 21077, "ctxt": 0 }, "expression": { "type": "UpdateExpression", "span": { "start": 21063, "end": 21076, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 21063, "end": 21074, "ctxt": 0 }, "value": "totalIndent", "optional": false } } } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 21115, "end": 21149, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 21115, "end": 21148, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 21115, "end": 21126, "ctxt": 0 }, "value": "totalIndent", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 21130, "end": 21148, "ctxt": 0 }, "operator": "*", "left": { "type": "Identifier", "span": { "start": 21130, "end": 21135, "ctxt": 0 }, "value": "level", "optional": false }, "right": { "type": "Identifier", "span": { "start": 21138, "end": 21148, "ctxt": 0 }, "value": "indentSize", "optional": false } } } }, { "type": "IfStatement", "span": { "start": 21166, "end": 21336, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 21170, "end": 21185, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 21170, "end": 21181, "ctxt": 0 }, "value": "totalIndent", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 21184, "end": 21185, "ctxt": 0 }, "value": 0.0 } }, "consequent": { "type": "ReturnStatement", "span": { "start": 21207, "end": 21217, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 21214, "end": 21216, "ctxt": 0 }, "value": "", "raw": "\"\"" } }, "alternate": { "type": "ReturnStatement", "span": { "start": 21259, "end": 21336, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 21266, "end": 21335, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21266, "end": 21286, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 21266, "end": 21270, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 21271, "end": 21286, "ctxt": 0 }, "value": "GetIndentString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 21287, "end": 21291, "ctxt": 0 } } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21293, "end": 21304, "ctxt": 0 }, "value": "totalIndent", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21306, "end": 21313, "ctxt": 0 }, "value": "tabSize", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21315, "end": 21334, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false } } ], "typeArguments": null } } } ] }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 21364, "end": 21405, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21368, "end": 21404, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21368, "end": 21383, "ctxt": 0 }, "value": "totalIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 21386, "end": 21404, "ctxt": 0 }, "operator": "*", "left": { "type": "Identifier", "span": { "start": 21386, "end": 21391, "ctxt": 0 }, "value": "level", "optional": false }, "right": { "type": "Identifier", "span": { "start": 21394, "end": 21404, "ctxt": 0 }, "value": "indentSize", "optional": false } }, "definite": false } ] }, { "type": "ReturnStatement", "span": { "start": 21418, "end": 21514, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 21425, "end": 21513, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21425, "end": 21445, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 21425, "end": 21429, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 21430, "end": 21445, "ctxt": 0 }, "value": "GetIndentString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21446, "end": 21465, "ctxt": 0 }, "value": "existingIndentation", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21467, "end": 21482, "ctxt": 0 }, "value": "totalIndentSize", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21484, "end": 21491, "ctxt": 0 }, "value": "tabSize", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21493, "end": 21512, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 20495, "end": 20503, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 20497, "end": 20503, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 21534, "end": 22249, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 21542, "end": 21557, "ctxt": 0 }, "value": "GetIndentString", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 21558, "end": 21572, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21558, "end": 21572, "ctxt": 0 }, "value": "prefix", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21564, "end": 21572, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21566, "end": 21572, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 21574, "end": 21597, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21574, "end": 21597, "ctxt": 0 }, "value": "totalIndentSize", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21589, "end": 21597, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21591, "end": 21597, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 21599, "end": 21614, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21599, "end": 21614, "ctxt": 0 }, "value": "tabSize", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21606, "end": 21614, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21608, "end": 21614, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 21616, "end": 21644, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21616, "end": 21644, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21635, "end": 21644, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21637, "end": 21644, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 21534, "end": 22249, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 21654, "end": 22249, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 21668, "end": 21746, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21672, "end": 21745, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21672, "end": 21681, "ctxt": 0 }, "value": "tabString", "optional": false, "typeAnnotation": null }, "init": { "type": "ConditionalExpression", "span": { "start": 21684, "end": 21745, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 21684, "end": 21703, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false }, "consequent": { "type": "CallExpression", "span": { "start": 21706, "end": 21738, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21706, "end": 21724, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 21706, "end": 21717, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 21718, "end": 21724, "ctxt": 0 }, "value": "create", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 21725, "end": 21728, "ctxt": 0 }, "value": " ", "raw": "' '" } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21730, "end": 21737, "ctxt": 0 }, "value": "tabSize", "optional": false } } ], "typeArguments": null }, "alternate": { "type": "StringLiteral", "span": { "start": 21741, "end": 21745, "ctxt": 0 }, "value": "\t", "raw": "\"\\t\"" } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 21760, "end": 21774, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21764, "end": 21773, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21764, "end": 21768, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "init": { "type": "StringLiteral", "span": { "start": 21771, "end": 21773, "ctxt": 0 }, "value": "", "raw": "\"\"" }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 21787, "end": 21858, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 21791, "end": 21825, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 21792, "end": 21825, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21792, "end": 21817, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 21792, "end": 21803, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 21804, "end": 21817, "ctxt": 0 }, "value": "IsNullOrEmpty", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21818, "end": 21824, "ctxt": 0 }, "value": "prefix", "optional": false } } ], "typeArguments": null } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 21843, "end": 21858, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 21843, "end": 21857, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 21843, "end": 21847, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 21851, "end": 21857, "ctxt": 0 }, "value": "prefix", "optional": false } } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 21872, "end": 21884, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21876, "end": 21883, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21876, "end": 21879, "ctxt": 0 }, "value": "pos", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 21882, "end": 21883, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 21934, "end": 22057, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 21941, "end": 21973, "ctxt": 0 }, "operator": "<=", "left": { "type": "Identifier", "span": { "start": 21941, "end": 21944, "ctxt": 0 }, "value": "pos", "optional": false }, "right": { "type": "BinaryExpression", "span": { "start": 21948, "end": 21973, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 21948, "end": 21963, "ctxt": 0 }, "value": "totalIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 21966, "end": 21973, "ctxt": 0 }, "value": "tabSize", "optional": false } } }, "body": { "type": "BlockStatement", "span": { "start": 21975, "end": 22057, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 21993, "end": 22011, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 21993, "end": 22010, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 21993, "end": 21997, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 22001, "end": 22010, "ctxt": 0 }, "value": "tabString", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 22028, "end": 22043, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22028, "end": 22042, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 22028, "end": 22031, "ctxt": 0 }, "value": "pos", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 22035, "end": 22042, "ctxt": 0 }, "value": "tabSize", "optional": false } } } ] } }, { "type": "WhileStatement", "span": { "start": 22116, "end": 22213, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22123, "end": 22144, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 22123, "end": 22126, "ctxt": 0 }, "value": "pos", "optional": false }, "right": { "type": "Identifier", "span": { "start": 22129, "end": 22144, "ctxt": 0 }, "value": "totalIndentSize", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 22146, "end": 22213, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 22164, "end": 22176, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22164, "end": 22175, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 22164, "end": 22168, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 22172, "end": 22175, "ctxt": 0 }, "value": " ", "raw": "' '" } } }, { "type": "ExpressionStatement", "span": { "start": 22193, "end": 22199, "ctxt": 0 }, "expression": { "type": "UpdateExpression", "span": { "start": 22193, "end": 22198, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 22193, "end": 22196, "ctxt": 0 }, "value": "pos", "optional": false } } } ] } }, { "type": "ReturnStatement", "span": { "start": 22227, "end": 22239, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 22234, "end": 22238, "ctxt": 0 }, "value": "text", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 21645, "end": 21653, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21647, "end": 21653, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 22259, "end": 23129, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 22268, "end": 22299, "ctxt": 0 }, "value": "ApplyIndentationDeltaFromParent", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 22300, "end": 22316, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 22300, "end": 22316, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 22305, "end": 22316, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22307, "end": 22316, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22307, "end": 22316, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 22318, "end": 22333, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 22318, "end": 22333, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 22322, "end": 22333, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22324, "end": 22333, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22324, "end": 22333, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 22259, "end": 23129, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 22352, "end": 23129, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 22366, "end": 22410, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 22370, "end": 22409, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 22370, "end": 22385, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 22385, "end": 22402, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22387, "end": 22402, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22387, "end": 22402, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 22405, "end": 22409, "ctxt": 0 } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 22424, "end": 22452, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 22428, "end": 22451, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 22428, "end": 22444, "ctxt": 0 }, "value": "indentableParent", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 22447, "end": 22451, "ctxt": 0 }, "value": "node", "optional": false }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 22465, "end": 22590, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22472, "end": 22529, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 22472, "end": 22496, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 22472, "end": 22488, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 22492, "end": 22496, "ctxt": 0 } } }, "right": { "type": "UnaryExpression", "span": { "start": 22500, "end": 22529, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 22501, "end": 22529, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22501, "end": 22527, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22501, "end": 22517, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22518, "end": 22527, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } } }, "body": { "type": "ExpressionStatement", "span": { "start": 22547, "end": 22590, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22547, "end": 22589, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 22547, "end": 22563, "ctxt": 0 }, "value": "indentableParent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 22566, "end": 22589, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22566, "end": 22582, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22583, "end": 22589, "ctxt": 0 }, "value": "Parent", "optional": false } } } } }, { "type": "IfStatement", "span": { "start": 22604, "end": 23082, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22608, "end": 22708, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 22608, "end": 22632, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 22608, "end": 22624, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 22628, "end": 22632, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 22636, "end": 22708, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 22636, "end": 22676, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22636, "end": 22671, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22636, "end": 22663, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22636, "end": 22652, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22653, "end": 22663, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22664, "end": 22671, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22672, "end": 22676, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 22680, "end": 22708, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22680, "end": 22699, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22700, "end": 22708, "ctxt": 0 }, "value": "apnkProg", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 22710, "end": 23082, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 22728, "end": 22863, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 22732, "end": 22862, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 22732, "end": 22758, "ctxt": 0 }, "value": "parentIndentationDeltaSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 22761, "end": 22862, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22761, "end": 22785, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 22761, "end": 22765, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 22766, "end": 22785, "ctxt": 0 }, "value": "GetIndentationDelta", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 22786, "end": 22833, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22786, "end": 22821, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22786, "end": 22813, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22786, "end": 22802, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22803, "end": 22813, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22814, "end": 22821, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22822, "end": 22833, "ctxt": 0 }, "value": "StartOffset", "optional": false } } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 22835, "end": 22861, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22835, "end": 22859, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22835, "end": 22845, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22835, "end": 22840, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22841, "end": 22845, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22846, "end": 22859, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 22880, "end": 23068, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22884, "end": 22924, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 22884, "end": 22910, "ctxt": 0 }, "value": "parentIndentationDeltaSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 22915, "end": 22924, "ctxt": 0 }, "value": "undefined", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 22926, "end": 23068, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 22948, "end": 23050, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22948, "end": 23049, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 22948, "end": 22963, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 22966, "end": 23049, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22966, "end": 22993, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 22966, "end": 22970, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 22971, "end": 22993, "ctxt": 0 }, "value": "ApplyIndentationDelta1", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 22994, "end": 23020, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22994, "end": 23018, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22994, "end": 23004, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22994, "end": 22999, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23000, "end": 23004, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 23005, "end": 23018, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23022, "end": 23048, "ctxt": 0 }, "value": "parentIndentationDeltaSize", "optional": false } } ], "typeArguments": null } } } ] }, "alternate": null } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 23096, "end": 23119, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 23103, "end": 23118, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 22334, "end": 22351, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22336, "end": 22351, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22336, "end": 22351, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 23139, "end": 23714, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 23147, "end": 23169, "ctxt": 0 }, "value": "ApplyIndentationDelta1", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 23170, "end": 23196, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23170, "end": 23196, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23188, "end": 23196, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23190, "end": 23196, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 23198, "end": 23211, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23198, "end": 23211, "ctxt": 0 }, "value": "delta", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23203, "end": 23211, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23205, "end": 23211, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 23139, "end": 23714, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 23230, "end": 23714, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 23283, "end": 23356, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23287, "end": 23355, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23287, "end": 23299, "ctxt": 0 }, "value": "snapshotLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 23302, "end": 23355, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23302, "end": 23335, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 23302, "end": 23315, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23302, "end": 23306, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23307, "end": 23315, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 23316, "end": 23335, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23336, "end": 23354, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 23369, "end": 23483, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23373, "end": 23482, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23373, "end": 23390, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 23393, "end": 23482, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 23397, "end": 23401, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 23402, "end": 23430, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23402, "end": 23428, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 23402, "end": 23414, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23415, "end": 23428, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 23432, "end": 23481, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 23432, "end": 23450, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 23453, "end": 23481, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23453, "end": 23479, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 23453, "end": 23465, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23466, "end": 23479, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 23496, "end": 23557, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23500, "end": 23556, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23500, "end": 23513, "ctxt": 0 }, "value": "currentIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 23516, "end": 23556, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23516, "end": 23537, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 23516, "end": 23529, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23516, "end": 23520, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23521, "end": 23529, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 23530, "end": 23537, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23538, "end": 23555, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ReturnStatement", "span": { "start": 23647, "end": 23704, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 23654, "end": 23703, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23654, "end": 23681, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23654, "end": 23658, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23659, "end": 23681, "ctxt": 0 }, "value": "ApplyIndentationDelta2", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23682, "end": 23695, "ctxt": 0 }, "value": "currentIndent", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23697, "end": 23702, "ctxt": 0 }, "value": "delta", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 23212, "end": 23229, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 23214, "end": 23229, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 23214, "end": 23229, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 23724, "end": 24409, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 23732, "end": 23754, "ctxt": 0 }, "value": "ApplyIndentationDelta2", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 23755, "end": 23776, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23755, "end": 23776, "ctxt": 0 }, "value": "currentIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23768, "end": 23776, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23770, "end": 23776, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 23778, "end": 23791, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23778, "end": 23791, "ctxt": 0 }, "value": "delta", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23783, "end": 23791, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23785, "end": 23791, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 23724, "end": 24409, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 23810, "end": 24409, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 23824, "end": 23868, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 23828, "end": 23838, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 23828, "end": 23833, "ctxt": 0 }, "value": "delta", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 23837, "end": 23838, "ctxt": 0 }, "value": 0.0 } }, "consequent": { "type": "ReturnStatement", "span": { "start": 23856, "end": 23868, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 23863, "end": 23867, "ctxt": 0 } } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 23882, "end": 23978, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23886, "end": 23977, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23886, "end": 23903, "ctxt": 0 }, "value": "currentIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 23906, "end": 23977, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23906, "end": 23942, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 23906, "end": 23914, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23915, "end": 23942, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23943, "end": 23956, "ctxt": 0 }, "value": "currentIndent", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 23958, "end": 23976, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23958, "end": 23962, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23963, "end": 23976, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 23992, "end": 24038, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23996, "end": 24037, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23996, "end": 24009, "ctxt": 0 }, "value": "newIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 24012, "end": 24037, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 24012, "end": 24029, "ctxt": 0 }, "value": "currentIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 24032, "end": 24037, "ctxt": 0 }, "value": "delta", "optional": false } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24051, "end": 24124, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24055, "end": 24072, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 24055, "end": 24068, "ctxt": 0 }, "value": "newIndentSize", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 24071, "end": 24072, "ctxt": 0 }, "value": 0.0 } }, "consequent": { "type": "BlockStatement", "span": { "start": 24074, "end": 24124, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 24092, "end": 24110, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 24092, "end": 24109, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 24092, "end": 24105, "ctxt": 0 }, "value": "newIndentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 24108, "end": 24109, "ctxt": 0 }, "value": 0.0 } } } ] }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 24138, "end": 24264, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 24142, "end": 24263, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 24142, "end": 24151, "ctxt": 0 }, "value": "newIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 24154, "end": 24263, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24154, "end": 24174, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24154, "end": 24158, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24159, "end": 24174, "ctxt": 0 }, "value": "GetIndentString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 24175, "end": 24179, "ctxt": 0 } } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24181, "end": 24194, "ctxt": 0 }, "value": "newIndentSize", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 24196, "end": 24222, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24196, "end": 24214, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24196, "end": 24200, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24201, "end": 24214, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24215, "end": 24222, "ctxt": 0 }, "value": "TabSize", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 24224, "end": 24262, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24224, "end": 24242, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24224, "end": 24228, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24229, "end": 24242, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24243, "end": 24262, "ctxt": 0 }, "value": "ConvertTabsToSpaces", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24277, "end": 24373, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24281, "end": 24298, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 24281, "end": 24290, "ctxt": 0 }, "value": "newIndent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 24294, "end": 24298, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 24300, "end": 24373, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 24318, "end": 24359, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 24325, "end": 24358, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 24329, "end": 24344, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24345, "end": 24354, "ctxt": 0 }, "value": "newIndent", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 24356, "end": 24357, "ctxt": 0 }, "value": 0.0 } } ], "typeArguments": null } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 24387, "end": 24399, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 24394, "end": 24398, "ctxt": 0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 23792, "end": 23809, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 23794, "end": 23809, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 23794, "end": 23809, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 24419, "end": 27402, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 24427, "end": 24446, "ctxt": 0 }, "value": "GetIndentationDelta", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 24447, "end": 24473, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 24447, "end": 24473, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 24465, "end": 24473, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 24467, "end": 24473, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 24475, "end": 24506, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 24475, "end": 24506, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 24498, "end": 24506, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 24500, "end": 24506, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 24419, "end": 27402, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 24526, "end": 27402, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 24540, "end": 24649, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 24540, "end": 24648, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24540, "end": 24552, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 24540, "end": 24545, "ctxt": 0 }, "value": "Debug", "optional": false }, "property": { "type": "Identifier", "span": { "start": 24546, "end": 24552, "ctxt": 0 }, "value": "Assert", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 24553, "end": 24590, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 24553, "end": 24576, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false }, "right": { "type": "Identifier", "span": { "start": 24581, "end": 24590, "ctxt": 0 }, "value": "undefined", "optional": false } } }, { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 24592, "end": 24647, "ctxt": 0 }, "value": "Error: caller must pass 'null' for undefined position", "raw": "\"Error: caller must pass 'null' for undefined position\"" } } ], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 24663, "end": 24748, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 24667, "end": 24747, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 24667, "end": 24687, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 24690, "end": 24747, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24690, "end": 24727, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24690, "end": 24718, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24690, "end": 24694, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24695, "end": 24718, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24719, "end": 24727, "ctxt": 0 }, "value": "GetValue", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24728, "end": 24746, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24761, "end": 27350, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24765, "end": 24794, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 24765, "end": 24785, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 24790, "end": 24794, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 24796, "end": 27350, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 24814, "end": 24886, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 24818, "end": 24885, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 24818, "end": 24832, "ctxt": 0 }, "value": "indentEditInfo", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 24835, "end": 24885, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24835, "end": 24865, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24835, "end": 24854, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24835, "end": 24839, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24840, "end": 24854, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24855, "end": 24865, "ctxt": 0 }, "value": "FindIndent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24866, "end": 24884, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24960, "end": 25020, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24964, "end": 24986, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 24964, "end": 24978, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 24982, "end": 24986, "ctxt": 0 } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 25008, "end": 25020, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 25015, "end": 25019, "ctxt": 0 } } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 25038, "end": 25161, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25042, "end": 25160, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25042, "end": 25056, "ctxt": 0 }, "value": "origIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25059, "end": 25160, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25059, "end": 25080, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 25059, "end": 25072, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 25059, "end": 25063, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 25064, "end": 25072, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 25073, "end": 25080, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 25081, "end": 25159, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 25085, "end": 25089, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 25090, "end": 25123, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25090, "end": 25104, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25105, "end": 25123, "ctxt": 0 }, "value": "OrigIndentPosition", "optional": false } } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 25125, "end": 25158, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25125, "end": 25156, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25125, "end": 25139, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25140, "end": 25156, "ctxt": 0 }, "value": "OrigIndentLength", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 25178, "end": 25227, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25182, "end": 25226, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25182, "end": 25195, "ctxt": 0 }, "value": "newIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25198, "end": 25226, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25198, "end": 25224, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25198, "end": 25212, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25213, "end": 25224, "ctxt": 0 }, "value": "Indentation", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 25245, "end": 25364, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25249, "end": 25363, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25249, "end": 25263, "ctxt": 0 }, "value": "origIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25266, "end": 25363, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25266, "end": 25296, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25266, "end": 25274, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25275, "end": 25296, "ctxt": 0 }, "value": "GetIndentSizeFromText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 25297, "end": 25311, "ctxt": 0 }, "value": "origIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 25313, "end": 25331, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 25313, "end": 25317, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 25318, "end": 25331, "ctxt": 0 }, "value": "editorOptions", "optional": false } } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 25358, "end": 25362, "ctxt": 0 }, "value": true } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 25381, "end": 25473, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25385, "end": 25472, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25385, "end": 25398, "ctxt": 0 }, "value": "newIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25401, "end": 25472, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25401, "end": 25437, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25401, "end": 25409, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25410, "end": 25437, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 25438, "end": 25451, "ctxt": 0 }, "value": "newIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 25453, "end": 25471, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 25453, "end": 25457, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 25458, "end": 25471, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 26534, "end": 27172, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 26538, "end": 26570, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 26538, "end": 26561, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 26566, "end": 26570, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 26572, "end": 27172, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 26594, "end": 26703, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 26598, "end": 26702, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 26598, "end": 26625, "ctxt": 0 }, "value": "childTokenLineStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 26628, "end": 26702, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26628, "end": 26700, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 26628, "end": 26686, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26628, "end": 26661, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 26628, "end": 26641, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 26628, "end": 26632, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 26633, "end": 26641, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 26642, "end": 26661, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 26662, "end": 26685, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 26687, "end": 26700, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 26724, "end": 26862, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 26728, "end": 26861, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 26728, "end": 26743, "ctxt": 0 }, "value": "childIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 26746, "end": 26861, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26746, "end": 26767, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 26746, "end": 26759, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 26746, "end": 26750, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 26751, "end": 26759, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 26760, "end": 26767, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 26768, "end": 26860, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 26772, "end": 26776, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 26777, "end": 26804, "ctxt": 0 }, "value": "childTokenLineStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 26806, "end": 26859, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 26806, "end": 26829, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false }, "right": { "type": "Identifier", "span": { "start": 26832, "end": 26859, "ctxt": 0 }, "value": "childTokenLineStartPosition", "optional": false } } } ], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 26884, "end": 26980, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 26888, "end": 26979, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 26888, "end": 26903, "ctxt": 0 }, "value": "childIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 26906, "end": 26979, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26906, "end": 26942, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 26906, "end": 26914, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 26915, "end": 26942, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 26943, "end": 26958, "ctxt": 0 }, "value": "childIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 26960, "end": 26978, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 26960, "end": 26964, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 26965, "end": 26978, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 27002, "end": 27154, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 27006, "end": 27038, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 27006, "end": 27021, "ctxt": 0 }, "value": "childIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 27024, "end": 27038, "ctxt": 0 }, "value": "origIndentSize", "optional": false } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 27064, "end": 27154, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27064, "end": 27153, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27064, "end": 27078, "ctxt": 0 }, "value": "origIndentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 27081, "end": 27153, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 27081, "end": 27117, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27081, "end": 27089, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27090, "end": 27117, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 27118, "end": 27132, "ctxt": 0 }, "value": "origIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 27134, "end": 27152, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 27134, "end": 27138, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 27139, "end": 27152, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null } } }, "alternate": null } ] }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 27190, "end": 27244, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27190, "end": 27243, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27190, "end": 27210, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 27213, "end": 27243, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 27213, "end": 27226, "ctxt": 0 }, "value": "newIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 27229, "end": 27243, "ctxt": 0 }, "value": "origIndentSize", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 27261, "end": 27336, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 27261, "end": 27335, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 27261, "end": 27293, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27261, "end": 27289, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 27261, "end": 27265, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 27266, "end": 27289, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27290, "end": 27293, "ctxt": 0 }, "value": "Add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 27294, "end": 27312, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 27314, "end": 27334, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 27364, "end": 27392, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 27371, "end": 27391, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 24512, "end": 24520, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 24514, "end": 24520, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 27412, "end": 32326, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 27420, "end": 27444, "ctxt": 0 }, "value": "FillInheritedIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 27445, "end": 27460, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 27445, "end": 27460, "ctxt": 0 }, "value": "tree", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 27449, "end": 27460, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 27451, "end": 27460, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 27451, "end": 27460, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 27412, "end": 32326, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 27476, "end": 32326, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 27490, "end": 27506, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 27494, "end": 27505, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 27494, "end": 27500, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": null }, "init": { "type": "UnaryExpression", "span": { "start": 27503, "end": 27505, "ctxt": 0 }, "operator": "-", "argument": { "type": "NumericLiteral", "span": { "start": 27504, "end": 27505, "ctxt": 0 }, "value": 1.0 } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 27519, "end": 27552, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 27523, "end": 27551, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 27523, "end": 27533, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 27533, "end": 27544, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 27535, "end": 27544, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 27535, "end": 27544, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 27547, "end": 27551, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 27566, "end": 30597, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 27570, "end": 27596, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 27570, "end": 27588, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27570, "end": 27574, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27575, "end": 27588, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 27592, "end": 27596, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 27598, "end": 30597, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 27616, "end": 30583, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 27620, "end": 27767, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 27620, "end": 27723, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 27620, "end": 27679, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 27620, "end": 27637, "ctxt": 0 }, "operator": "!", "argument": { "type": "MemberExpression", "span": { "start": 27621, "end": 27637, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 27621, "end": 27625, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 27626, "end": 27637, "ctxt": 0 }, "value": "smartIndent", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 27641, "end": 27679, "ctxt": 0 }, "operator": "!==", "left": { "type": "MemberExpression", "span": { "start": 27641, "end": 27670, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27641, "end": 27645, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27646, "end": 27670, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 27675, "end": 27679, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 27683, "end": 27723, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 27683, "end": 27718, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27683, "end": 27712, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27683, "end": 27701, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27683, "end": 27687, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27688, "end": 27701, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27702, "end": 27712, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27713, "end": 27718, "ctxt": 0 }, "value": "Label", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 27722, "end": 27723, "ctxt": 0 }, "value": 0.0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 27727, "end": 27767, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 27727, "end": 27762, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27727, "end": 27756, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27727, "end": 27731, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27732, "end": 27756, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27757, "end": 27762, "ctxt": 0 }, "value": "Label", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 27766, "end": 27767, "ctxt": 0 }, "value": 0.0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 27769, "end": 28725, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 27791, "end": 27823, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27791, "end": 27822, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27791, "end": 27801, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 27804, "end": 27822, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27804, "end": 27808, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27809, "end": 27822, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 27844, "end": 27903, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27844, "end": 27902, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27844, "end": 27850, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 27853, "end": 27902, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27853, "end": 27890, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27853, "end": 27882, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27853, "end": 27857, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27858, "end": 27882, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27883, "end": 27890, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27891, "end": 27902, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, { "type": "VariableDeclaration", "span": { "start": 28206, "end": 28268, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 28210, "end": 28267, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 28210, "end": 28217, "ctxt": 0 }, "value": "lineNum", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 28220, "end": 28267, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 28220, "end": 28259, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28220, "end": 28233, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 28220, "end": 28224, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 28225, "end": 28233, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28234, "end": 28259, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 28260, "end": 28266, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 28289, "end": 28311, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 28293, "end": 28310, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 28293, "end": 28297, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 28300, "end": 28310, "ctxt": 0 }, "value": "indentNode", "optional": false }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 28332, "end": 28707, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 28339, "end": 28456, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 28339, "end": 28358, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 28339, "end": 28350, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28339, "end": 28343, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28344, "end": 28350, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 28354, "end": 28358, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 28362, "end": 28456, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 28362, "end": 28445, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 28362, "end": 28401, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28362, "end": 28375, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 28362, "end": 28366, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 28367, "end": 28375, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28376, "end": 28401, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 28402, "end": 28444, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28402, "end": 28432, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28402, "end": 28424, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28402, "end": 28413, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28402, "end": 28406, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28407, "end": 28413, "ctxt": 0 }, "value": "Parent", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28414, "end": 28424, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28425, "end": 28432, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28433, "end": 28444, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "right": { "type": "Identifier", "span": { "start": 28449, "end": 28456, "ctxt": 0 }, "value": "lineNum", "optional": false } } }, "body": { "type": "BlockStatement", "span": { "start": 28458, "end": 28707, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 28484, "end": 28503, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 28484, "end": 28502, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 28484, "end": 28488, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 28491, "end": 28502, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28491, "end": 28495, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28496, "end": 28502, "ctxt": 0 }, "value": "Parent", "optional": false } } } }, { "type": "IfStatement", "span": { "start": 28528, "end": 28685, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 28532, "end": 28548, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 28532, "end": 28546, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28532, "end": 28536, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28537, "end": 28546, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 28550, "end": 28685, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 28580, "end": 28598, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 28580, "end": 28597, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 28580, "end": 28590, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 28593, "end": 28597, "ctxt": 0 }, "value": "node", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 28627, "end": 28659, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 28627, "end": 28658, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 28627, "end": 28654, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28627, "end": 28637, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28638, "end": 28654, "ctxt": 0 }, "value": "IndentationDelta", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 28657, "end": 28658, "ctxt": 0 }, "value": 0.0 } } } ] }, "alternate": null } ] } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 28747, "end": 30583, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 28769, "end": 28791, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 28773, "end": 28790, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 28773, "end": 28779, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 28779, "end": 28790, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 28781, "end": 28790, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 28781, "end": 28790, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 28874, "end": 30009, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 28878, "end": 28894, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 28878, "end": 28882, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 28883, "end": 28894, "ctxt": 0 }, "value": "smartIndent", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 28896, "end": 29398, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 29168, "end": 29196, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29168, "end": 29195, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29168, "end": 29174, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29177, "end": 29195, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29177, "end": 29181, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29182, "end": 29195, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } } } }, { "type": "WhileStatement", "span": { "start": 29221, "end": 29376, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 29228, "end": 29323, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 29228, "end": 29242, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 29228, "end": 29234, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 29238, "end": 29242, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 29246, "end": 29323, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 29246, "end": 29283, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29246, "end": 29271, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29246, "end": 29263, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29246, "end": 29252, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29253, "end": 29263, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29264, "end": 29271, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29272, "end": 29283, "ctxt": 0 }, "value": "StartOffset", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 29287, "end": 29323, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 29287, "end": 29321, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29287, "end": 29307, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29287, "end": 29302, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 29287, "end": 29291, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 29292, "end": 29302, "ctxt": 0 }, "value": "firstToken", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29303, "end": 29307, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29308, "end": 29321, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } }, "body": { "type": "ExpressionStatement", "span": { "start": 29353, "end": 29376, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29353, "end": 29375, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29353, "end": 29359, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29362, "end": 29375, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29362, "end": 29368, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29369, "end": 29375, "ctxt": 0 }, "value": "Parent", "optional": false } } } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 29424, "end": 30009, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 29546, "end": 29663, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 29550, "end": 29662, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 29550, "end": 29569, "ctxt": 0 }, "value": "startNodeLineNumber", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 29572, "end": 29662, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 29572, "end": 29611, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29572, "end": 29585, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 29572, "end": 29576, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 29577, "end": 29585, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29586, "end": 29611, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 29612, "end": 29661, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29612, "end": 29649, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29612, "end": 29641, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29612, "end": 29630, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29612, "end": 29616, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29617, "end": 29630, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29631, "end": 29641, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29642, "end": 29649, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29650, "end": 29661, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 29688, "end": 29723, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29688, "end": 29722, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29688, "end": 29694, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29697, "end": 29722, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29697, "end": 29715, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29697, "end": 29701, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29702, "end": 29715, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29716, "end": 29722, "ctxt": 0 }, "value": "Parent", "optional": false } } } }, { "type": "WhileStatement", "span": { "start": 29748, "end": 29987, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 29755, "end": 29906, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 29755, "end": 29769, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 29755, "end": 29761, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 29765, "end": 29769, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 29805, "end": 29906, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 29805, "end": 29824, "ctxt": 0 }, "value": "startNodeLineNumber", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 29828, "end": 29906, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 29828, "end": 29867, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29828, "end": 29841, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 29828, "end": 29832, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 29833, "end": 29841, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29842, "end": 29867, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 29868, "end": 29905, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29868, "end": 29893, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29868, "end": 29885, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29868, "end": 29874, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29875, "end": 29885, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29886, "end": 29893, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29894, "end": 29905, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null } } }, "body": { "type": "BlockStatement", "span": { "start": 29908, "end": 29987, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 29938, "end": 29961, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29938, "end": 29960, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29938, "end": 29944, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29947, "end": 29960, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29947, "end": 29953, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29954, "end": 29960, "ctxt": 0 }, "value": "Parent", "optional": false } } } } ] } } ] } }, { "type": "WhileStatement", "span": { "start": 30136, "end": 30253, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30143, "end": 30180, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 30143, "end": 30157, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 30143, "end": 30149, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 30153, "end": 30157, "ctxt": 0 } } }, "right": { "type": "UnaryExpression", "span": { "start": 30161, "end": 30180, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 30162, "end": 30180, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30162, "end": 30178, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30162, "end": 30168, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30169, "end": 30178, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } } }, "body": { "type": "BlockStatement", "span": { "start": 30182, "end": 30253, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 30208, "end": 30231, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 30208, "end": 30230, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 30208, "end": 30214, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 30217, "end": 30230, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30217, "end": 30223, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30224, "end": 30230, "ctxt": 0 }, "value": "Parent", "optional": false } } } } ] } }, { "type": "IfStatement", "span": { "start": 30339, "end": 30565, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30343, "end": 30423, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 30343, "end": 30357, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 30343, "end": 30349, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 30353, "end": 30357, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 30361, "end": 30423, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 30361, "end": 30391, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30361, "end": 30386, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30361, "end": 30378, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30361, "end": 30367, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30368, "end": 30378, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30379, "end": 30386, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30387, "end": 30391, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 30395, "end": 30423, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30395, "end": 30414, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30415, "end": 30423, "ctxt": 0 }, "value": "apnkProg", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 30425, "end": 30565, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 30451, "end": 30498, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 30451, "end": 30497, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 30451, "end": 30457, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 30460, "end": 30497, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30460, "end": 30485, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30460, "end": 30477, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30460, "end": 30466, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30467, "end": 30477, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30478, "end": 30485, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30486, "end": 30497, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 30523, "end": 30543, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 30523, "end": 30542, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 30523, "end": 30533, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 30536, "end": 30542, "ctxt": 0 }, "value": "parent", "optional": false } } } ] }, "alternate": null } ] } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 30611, "end": 32316, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30615, "end": 30633, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 30615, "end": 30625, "ctxt": 0 }, "value": "indentNode", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 30629, "end": 30633, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 30635, "end": 32316, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 30653, "end": 30715, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 30657, "end": 30714, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 30657, "end": 30671, "ctxt": 0 }, "value": "indentOverride", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 30674, "end": 30714, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30674, "end": 30706, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 30674, "end": 30678, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 30679, "end": 30706, "ctxt": 0 }, "value": "GetLineIndentationForOffset", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 30707, "end": 30713, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 30821, "end": 31265, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30825, "end": 30913, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 30825, "end": 30884, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 30825, "end": 30842, "ctxt": 0 }, "operator": "!", "argument": { "type": "MemberExpression", "span": { "start": 30826, "end": 30842, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 30826, "end": 30830, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 30831, "end": 30842, "ctxt": 0 }, "value": "smartIndent", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 30846, "end": 30884, "ctxt": 0 }, "operator": "!==", "left": { "type": "MemberExpression", "span": { "start": 30846, "end": 30875, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30846, "end": 30850, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30851, "end": 30875, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 30880, "end": 30884, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 30888, "end": 30913, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 30888, "end": 30905, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30888, "end": 30898, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30899, "end": 30905, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 30909, "end": 30913, "ctxt": 0 } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 30915, "end": 31265, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 30937, "end": 31247, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 30937, "end": 31246, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30937, "end": 30995, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 30937, "end": 30987, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30937, "end": 30968, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30937, "end": 30956, "ctxt": 0 }, "value": "ParseNodeExtensions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30957, "end": 30968, "ctxt": 0 }, "value": "GetChildren", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 30969, "end": 30986, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30969, "end": 30979, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30980, "end": 30986, "ctxt": 0 }, "value": "Parent", "optional": false } } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 30988, "end": 30995, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 30996, "end": 31245, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 30997, "end": 31004, "ctxt": 0 }, "value": "sibling", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 31009, "end": 31245, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 31035, "end": 31223, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 31039, "end": 31061, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 31039, "end": 31046, "ctxt": 0 }, "value": "sibling", "optional": false }, "right": { "type": "Identifier", "span": { "start": 31051, "end": 31061, "ctxt": 0 }, "value": "indentNode", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 31063, "end": 31223, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 31093, "end": 31197, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 31097, "end": 31116, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31097, "end": 31114, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31097, "end": 31104, "ctxt": 0 }, "value": "sibling", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31105, "end": 31114, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "ExpressionStatement", "span": { "start": 31150, "end": 31197, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 31150, "end": 31196, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31150, "end": 31180, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31150, "end": 31157, "ctxt": 0 }, "value": "sibling", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31158, "end": 31180, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 31181, "end": 31195, "ctxt": 0 }, "value": "indentOverride", "optional": false } } ], "typeArguments": null } }, "alternate": null } ] }, "alternate": null } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } } ] }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 31441, "end": 31459, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 31445, "end": 31458, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 31445, "end": 31454, "ctxt": 0 }, "value": "lastDelta", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 31457, "end": 31458, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 31476, "end": 31574, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 31480, "end": 31573, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 31480, "end": 31488, "ctxt": 0 }, "value": "lastLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 31491, "end": 31573, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31491, "end": 31530, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31491, "end": 31504, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 31491, "end": 31495, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 31496, "end": 31504, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31505, "end": 31530, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 31531, "end": 31572, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31531, "end": 31560, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31531, "end": 31552, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31531, "end": 31541, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31542, "end": 31552, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31553, "end": 31560, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31561, "end": 31572, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "DoWhileStatement", "span": { "start": 31591, "end": 32302, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 32282, "end": 32300, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 32282, "end": 32292, "ctxt": 0 }, "value": "indentNode", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 32296, "end": 32300, "ctxt": 0 } } }, "body": { "type": "BlockStatement", "span": { "start": 31594, "end": 32258, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 31616, "end": 31717, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 31620, "end": 31716, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 31620, "end": 31631, "ctxt": 0 }, "value": "currentLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 31634, "end": 31716, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31634, "end": 31673, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31634, "end": 31647, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 31634, "end": 31638, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 31639, "end": 31647, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31648, "end": 31673, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 31674, "end": 31715, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31674, "end": 31703, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31674, "end": 31695, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31674, "end": 31684, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31685, "end": 31695, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31696, "end": 31703, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31704, "end": 31715, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 31738, "end": 31974, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 31742, "end": 31765, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 31742, "end": 31750, "ctxt": 0 }, "value": "lastLine", "optional": false }, "right": { "type": "Identifier", "span": { "start": 31754, "end": 31765, "ctxt": 0 }, "value": "currentLine", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 31767, "end": 31974, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 31793, "end": 31816, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 31793, "end": 31815, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 31793, "end": 31801, "ctxt": 0 }, "value": "lastLine", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 31804, "end": 31815, "ctxt": 0 }, "value": "currentLine", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 31841, "end": 31913, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 31841, "end": 31912, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 31841, "end": 31855, "ctxt": 0 }, "value": "indentOverride", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 31858, "end": 31912, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31858, "end": 31884, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 31858, "end": 31862, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 31863, "end": 31884, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 31885, "end": 31899, "ctxt": 0 }, "value": "indentOverride", "optional": false } }, { "spread": null, "expression": { "type": "UnaryExpression", "span": { "start": 31901, "end": 31911, "ctxt": 0 }, "operator": "-", "argument": { "type": "Identifier", "span": { "start": 31902, "end": 31911, "ctxt": 0 }, "value": "lastDelta", "optional": false } } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 31938, "end": 31952, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 31938, "end": 31951, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 31938, "end": 31947, "ctxt": 0 }, "value": "lastDelta", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 31950, "end": 31951, "ctxt": 0 }, "value": 0.0 } } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 31996, "end": 32187, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 32000, "end": 32022, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32000, "end": 32020, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32000, "end": 32010, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32011, "end": 32020, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 32024, "end": 32187, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 32050, "end": 32100, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 32050, "end": 32099, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32050, "end": 32083, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32050, "end": 32060, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32061, "end": 32083, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 32084, "end": 32098, "ctxt": 0 }, "value": "indentOverride", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 32125, "end": 32165, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 32125, "end": 32164, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 32125, "end": 32134, "ctxt": 0 }, "value": "lastDelta", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 32137, "end": 32164, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32137, "end": 32147, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32148, "end": 32164, "ctxt": 0 }, "value": "IndentationDelta", "optional": false } } } } ] }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 32209, "end": 32240, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 32209, "end": 32239, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 32209, "end": 32219, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 32222, "end": 32239, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32222, "end": 32232, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32233, "end": 32239, "ctxt": 0 }, "value": "Parent", "optional": false } } } } ] } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 27461, "end": 27467, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 27463, "end": 27467, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 32336, "end": 33197, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 32343, "end": 32370, "ctxt": 0 }, "value": "GetLineIndentationForOffset", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 32371, "end": 32385, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 32371, "end": 32385, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 32377, "end": 32385, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 32379, "end": 32385, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 32336, "end": 33197, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 32395, "end": 33197, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 32409, "end": 32450, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32413, "end": 32449, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32413, "end": 32428, "ctxt": 0 }, "value": "indentationEdit", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 32428, "end": 32449, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 32430, "end": 32449, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 32430, "end": 32449, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 32550, "end": 32607, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 32550, "end": 32606, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 32550, "end": 32565, "ctxt": 0 }, "value": "indentationEdit", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 32568, "end": 32606, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32568, "end": 32598, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 32568, "end": 32587, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 32568, "end": 32572, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 32573, "end": 32587, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 32588, "end": 32598, "ctxt": 0 }, "value": "FindIndent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 32599, "end": 32605, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null } } }, { "type": "IfStatement", "span": { "start": 32620, "end": 33187, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 32624, "end": 32647, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 32624, "end": 32639, "ctxt": 0 }, "value": "indentationEdit", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 32643, "end": 32647, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 32649, "end": 32718, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 32667, "end": 32704, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 32674, "end": 32703, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32674, "end": 32701, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32674, "end": 32689, "ctxt": 0 }, "value": "indentationEdit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32690, "end": 32701, "ctxt": 0 }, "value": "Indentation", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 32736, "end": 33187, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 32824, "end": 32877, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32828, "end": 32876, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32828, "end": 32832, "ctxt": 0 }, "value": "line", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 32835, "end": 32876, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32835, "end": 32868, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 32835, "end": 32848, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 32835, "end": 32839, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 32840, "end": 32848, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 32849, "end": 32868, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 32869, "end": 32875, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 32894, "end": 32924, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32898, "end": 32923, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32898, "end": 32906, "ctxt": 0 }, "value": "lineText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 32909, "end": 32923, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32909, "end": 32921, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32909, "end": 32913, "ctxt": 0 }, "value": "line", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32914, "end": 32921, "ctxt": 0 }, "value": "getText", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 32941, "end": 32955, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32945, "end": 32954, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32945, "end": 32950, "ctxt": 0 }, "value": "index", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 32953, "end": 32954, "ctxt": 0 }, "value": 0.0 }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 32973, "end": 33122, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 32980, "end": 33072, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 32980, "end": 33003, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 32980, "end": 32985, "ctxt": 0 }, "value": "index", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 32988, "end": 33003, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32988, "end": 32996, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32997, "end": 33003, "ctxt": 0 }, "value": "length", "optional": false } } }, "right": { "type": "ParenthesisExpression", "span": { "start": 33007, "end": 33072, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 33008, "end": 33071, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 33008, "end": 33037, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 33008, "end": 33030, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33008, "end": 33023, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33008, "end": 33016, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33017, "end": 33023, "ctxt": 0 }, "value": "charAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33024, "end": 33029, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 33034, "end": 33037, "ctxt": 0 }, "value": " ", "raw": "' '" } }, "right": { "type": "BinaryExpression", "span": { "start": 33041, "end": 33071, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 33041, "end": 33063, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33041, "end": 33056, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33041, "end": 33049, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33050, "end": 33056, "ctxt": 0 }, "value": "charAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33057, "end": 33062, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 33067, "end": 33071, "ctxt": 0 }, "value": "\t", "raw": "'\\t'" } } } } }, "body": { "type": "BlockStatement", "span": { "start": 33074, "end": 33122, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 33096, "end": 33104, "ctxt": 0 }, "expression": { "type": "UpdateExpression", "span": { "start": 33096, "end": 33103, "ctxt": 0 }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "span": { "start": 33098, "end": 33103, "ctxt": 0 }, "value": "index", "optional": false } } } ] } }, { "type": "ReturnStatement", "span": { "start": 33140, "end": 33173, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 33147, "end": 33172, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33147, "end": 33162, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33147, "end": 33155, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33156, "end": 33162, "ctxt": 0 }, "value": "substr", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 33163, "end": 33164, "ctxt": 0 }, "value": 0.0 } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33166, "end": 33171, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 32386, "end": 32394, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 32388, "end": 32394, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 33207, "end": 34041, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 33215, "end": 33234, "ctxt": 0 }, "value": "RegisterIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 33235, "end": 33255, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 33235, "end": 33255, "ctxt": 0 }, "value": "indent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33241, "end": 33255, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 33243, "end": 33255, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 33243, "end": 33255, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 33257, "end": 33280, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 33257, "end": 33280, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33271, "end": 33280, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 33273, "end": 33280, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 33207, "end": 34041, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 33296, "end": 34041, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 33310, "end": 33358, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 33314, "end": 33357, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 33314, "end": 33329, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33329, "end": 33350, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 33331, "end": 33350, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 33331, "end": 33350, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 33353, "end": 33357, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 33372, "end": 33970, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 33376, "end": 33390, "ctxt": 0 }, "value": "sameLineIndent", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 33392, "end": 33870, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 33551, "end": 33642, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 33555, "end": 33641, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 33555, "end": 33572, "ctxt": 0 }, "value": "lineStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 33575, "end": 33641, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33575, "end": 33639, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 33575, "end": 33625, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33575, "end": 33608, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 33575, "end": 33588, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 33575, "end": 33579, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 33580, "end": 33588, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 33589, "end": 33608, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 33609, "end": 33624, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33609, "end": 33615, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33616, "end": 33624, "ctxt": 0 }, "value": "Position", "optional": false } } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 33626, "end": 33639, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 33659, "end": 33718, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 33663, "end": 33717, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 33663, "end": 33679, "ctxt": 0 }, "value": "lineIndentLength", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 33682, "end": 33717, "ctxt": 0 }, "operator": "-", "left": { "type": "MemberExpression", "span": { "start": 33682, "end": 33697, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33682, "end": 33688, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33689, "end": 33697, "ctxt": 0 }, "value": "Position", "optional": false } }, "right": { "type": "Identifier", "span": { "start": 33700, "end": 33717, "ctxt": 0 }, "value": "lineStartPosition", "optional": false } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 33736, "end": 33856, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 33736, "end": 33855, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 33736, "end": 33751, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 33754, "end": 33855, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33754, "end": 33781, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33754, "end": 33773, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33774, "end": 33781, "ctxt": 0 }, "value": "create2", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 33782, "end": 33797, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33782, "end": 33788, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33789, "end": 33797, "ctxt": 0 }, "value": "Position", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 33799, "end": 33817, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33799, "end": 33805, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33806, "end": 33817, "ctxt": 0 }, "value": "ReplaceWith", "optional": false } } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33819, "end": 33836, "ctxt": 0 }, "value": "lineStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33838, "end": 33854, "ctxt": 0 }, "value": "lineIndentLength", "optional": false } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 33888, "end": 33970, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 33906, "end": 33956, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 33906, "end": 33955, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 33906, "end": 33921, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "NewExpression", "span": { "start": 33924, "end": 33955, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 33928, "end": 33947, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33948, "end": 33954, "ctxt": 0 }, "value": "indent", "optional": false } } ], "typeArguments": null } } } ] } }, { "type": "ExpressionStatement", "span": { "start": 33984, "end": 34031, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 33984, "end": 34030, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33984, "end": 34013, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 33984, "end": 34003, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 33984, "end": 33988, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 33989, "end": 34003, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34004, "end": 34013, "ctxt": 0 }, "value": "AddIndent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 34014, "end": 34029, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 33281, "end": 33287, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 33283, "end": 33287, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 34051, "end": 34222, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 34058, "end": 34078, "ctxt": 0 }, "value": "RegisterIndentation2", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 34079, "end": 34095, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34079, "end": 34095, "ctxt": 0 }, "value": "position", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34087, "end": 34095, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34089, "end": 34095, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 34097, "end": 34111, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34097, "end": 34111, "ctxt": 0 }, "value": "indent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34103, "end": 34111, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34105, "end": 34111, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 34051, "end": 34222, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 34127, "end": 34222, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 34141, "end": 34212, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 34141, "end": 34211, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 34141, "end": 34165, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 34141, "end": 34145, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 34146, "end": 34165, "ctxt": 0 }, "value": "RegisterIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 34166, "end": 34203, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 34170, "end": 34182, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 34183, "end": 34191, "ctxt": 0 }, "value": "position", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 34193, "end": 34194, "ctxt": 0 }, "value": 0.0 } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 34196, "end": 34202, "ctxt": 0 }, "value": "indent", "optional": false } } ], "typeArguments": null } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 34205, "end": 34210, "ctxt": 0 }, "value": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 34112, "end": 34118, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34114, "end": 34118, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 34232, "end": 35186, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 34240, "end": 34265, "ctxt": 0 }, "value": "AdjustStartOffsetIfNeeded", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 34266, "end": 34282, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34266, "end": 34282, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34271, "end": 34282, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 34273, "end": 34282, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 34273, "end": 34282, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 34284, "end": 34299, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34284, "end": 34299, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34288, "end": 34299, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 34290, "end": 34299, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 34290, "end": 34299, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 34232, "end": 35186, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 34315, "end": 35186, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 34329, "end": 34371, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 34333, "end": 34346, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 34333, "end": 34338, "ctxt": 0 }, "value": "token", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 34342, "end": 34346, "ctxt": 0 } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 34364, "end": 34371, "ctxt": 0 }, "argument": null }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 34385, "end": 34415, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 34389, "end": 34414, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 34389, "end": 34406, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "init": { "type": "BooleanLiteral", "span": { "start": 34409, "end": 34414, "ctxt": 0 }, "value": false }, "definite": false } ] }, { "type": "SwitchStatement", "span": { "start": 34429, "end": 35006, "ctxt": 0 }, "discriminant": { "type": "MemberExpression", "span": { "start": 34437, "end": 34448, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34437, "end": 34442, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34443, "end": 34448, "ctxt": 0 }, "value": "Token", "optional": false } }, "cases": [ { "type": "SwitchCase", "span": { "start": 34468, "end": 34633, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 34473, "end": 34500, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34473, "end": 34488, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34489, "end": 34500, "ctxt": 0 }, "value": "atkFunction", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 34522, "end": 34606, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 34522, "end": 34605, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 34522, "end": 34539, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 34542, "end": 34605, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 34542, "end": 34570, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34542, "end": 34565, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34542, "end": 34557, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34542, "end": 34546, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34547, "end": 34557, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34558, "end": 34565, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34566, "end": 34570, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 34574, "end": 34605, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34574, "end": 34593, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34594, "end": 34605, "ctxt": 0 }, "value": "apnkFncDecl", "optional": false } } } } }, { "type": "BreakStatement", "span": { "start": 34627, "end": 34633, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 34651, "end": 34813, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 34656, "end": 34681, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34656, "end": 34671, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34672, "end": 34681, "ctxt": 0 }, "value": "atkLCurly", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 34703, "end": 34786, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 34703, "end": 34785, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 34703, "end": 34720, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 34723, "end": 34785, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 34723, "end": 34751, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34723, "end": 34746, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34723, "end": 34738, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34723, "end": 34727, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34728, "end": 34738, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34739, "end": 34746, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34747, "end": 34751, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 34755, "end": 34785, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34755, "end": 34774, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34775, "end": 34785, "ctxt": 0 }, "value": "apnkObject", "optional": false } } } } }, { "type": "BreakStatement", "span": { "start": 34807, "end": 34813, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 34831, "end": 34992, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 34836, "end": 34861, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34836, "end": 34851, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34852, "end": 34861, "ctxt": 0 }, "value": "atkLBrack", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 34883, "end": 34965, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 34883, "end": 34964, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 34883, "end": 34900, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 34903, "end": 34964, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 34903, "end": 34931, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34903, "end": 34926, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34903, "end": 34918, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34903, "end": 34907, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34908, "end": 34918, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34919, "end": 34926, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34927, "end": 34931, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 34935, "end": 34964, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34935, "end": 34954, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34955, "end": 34964, "ctxt": 0 }, "value": "apnkArray", "optional": false } } } } }, { "type": "BreakStatement", "span": { "start": 34986, "end": 34992, "ctxt": 0 }, "label": null } ] } ] }, { "type": "IfStatement", "span": { "start": 35020, "end": 35176, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 35024, "end": 35041, "ctxt": 0 }, "value": "updateStartOffset", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 35043, "end": 35176, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 35061, "end": 35162, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 35061, "end": 35161, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35061, "end": 35092, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35061, "end": 35080, "ctxt": 0 }, "value": "ParseNodeExtensions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35081, "end": 35092, "ctxt": 0 }, "value": "SetNodeSpan", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 35093, "end": 35097, "ctxt": 0 }, "value": "node", "optional": false } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 35099, "end": 35125, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35099, "end": 35123, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35099, "end": 35109, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35099, "end": 35104, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35105, "end": 35109, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35110, "end": 35123, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 35127, "end": 35160, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35127, "end": 35150, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35127, "end": 35142, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35127, "end": 35131, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35132, "end": 35142, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35143, "end": 35150, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35151, "end": 35160, "ctxt": 0 }, "value": "EndOffset", "optional": false } } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 34300, "end": 34306, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34302, "end": 34306, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 35196, "end": 35486, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 35204, "end": 35221, "ctxt": 0 }, "value": "IsMultiLineString", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 35222, "end": 35238, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 35222, "end": 35238, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 35227, "end": 35238, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 35229, "end": 35238, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 35229, "end": 35238, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 35196, "end": 35486, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 35249, "end": 35486, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 35263, "end": 35476, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 35270, "end": 35475, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 35270, "end": 35320, "ctxt": 0 }, "operator": "===", "left": { "type": "MemberExpression", "span": { "start": 35270, "end": 35283, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35270, "end": 35275, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35276, "end": 35283, "ctxt": 0 }, "value": "tokenID", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 35288, "end": 35320, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35288, "end": 35306, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35288, "end": 35298, "ctxt": 0 }, "value": "TypeScript", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35299, "end": 35306, "ctxt": 0 }, "value": "TokenID", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35307, "end": 35320, "ctxt": 0 }, "value": "StringLiteral", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 35340, "end": 35475, "ctxt": 0 }, "operator": ">", "left": { "type": "CallExpression", "span": { "start": 35340, "end": 35405, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35340, "end": 35379, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35340, "end": 35353, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 35340, "end": 35344, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 35345, "end": 35353, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35354, "end": 35379, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 35380, "end": 35404, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35380, "end": 35402, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35380, "end": 35390, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35380, "end": 35385, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35386, "end": 35390, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35391, "end": 35402, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null }, "right": { "type": "CallExpression", "span": { "start": 35408, "end": 35475, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35408, "end": 35447, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35408, "end": 35421, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 35408, "end": 35412, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 35413, "end": 35421, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35422, "end": 35447, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 35448, "end": 35474, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35448, "end": 35472, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35448, "end": 35458, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35448, "end": 35453, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35454, "end": 35458, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35459, "end": 35472, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null } } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 35239, "end": 35248, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 35241, "end": 35248, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 723, "end": 746, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 723, "end": 746, "ctxt": 0 }, "value": "ILineIndenationResolver", "optional": false }, "typeArguments": null } ] } } ] } } ], "interpreter": null }