{ "type": "Script", "span": { "start": 667, "end": 35495, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 667, "end": 35495, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 674, "end": 684, "ctxt": 0 }, "value": "Formatting", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 685, "end": 35495, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 691, "end": 35493, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 704, "end": 712, "ctxt": 0 }, "value": "Indenter", "optional": false }, "declare": false, "span": { "start": 698, "end": 35493, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 760, "end": 799, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 768, "end": 782, "ctxt": 0 }, "value": "indentationBag", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 782, "end": 798, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 784, "end": 798, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 784, "end": 798, "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": 808, "end": 851, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 816, "end": 842, "ctxt": 0 }, "value": "scriptBlockBeginLineNumber", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 842, "end": 850, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 844, "end": 850, "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": 860, "end": 912, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 868, "end": 891, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 891, "end": 911, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 893, "end": 911, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 893, "end": 911, "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": 922, "end": 1760, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 922, "end": 933, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [ { "type": "TsParameterProperty", "span": { "start": 947, "end": 980, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 954, "end": 980, "ctxt": 0 }, "value": "logger", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 960, "end": 980, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 962, "end": 980, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 962, "end": 972, "ctxt": 0 }, "value": "TypeScript", "optional": false }, "right": { "type": "Identifier", "span": { "start": 973, "end": 980, "ctxt": 0 }, "value": "ILogger", "optional": false } }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 994, "end": 1016, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1001, "end": 1016, "ctxt": 0 }, "value": "tree", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1005, "end": 1016, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1007, "end": 1016, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1007, "end": 1016, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1030, "end": 1060, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1037, "end": 1060, "ctxt": 0 }, "value": "snapshot", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1045, "end": 1060, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1047, "end": 1060, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1047, "end": 1060, "ctxt": 0 }, "value": "ITextSnapshot", "optional": false }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1074, "end": 1112, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1081, "end": 1112, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1104, "end": 1112, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1106, "end": 1112, "ctxt": 0 }, "kind": "string" } } } }, { "type": "TsParameterProperty", "span": { "start": 1126, "end": 1170, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1133, "end": 1170, "ctxt": 0 }, "value": "editorOptions", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1146, "end": 1170, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1148, "end": 1170, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 1148, "end": 1156, "ctxt": 0 }, "value": "Services", "optional": false }, "right": { "type": "Identifier", "span": { "start": 1157, "end": 1170, "ctxt": 0 }, "value": "EditorOptions", "optional": false } }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1184, "end": 1212, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1191, "end": 1212, "ctxt": 0 }, "value": "firstToken", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1201, "end": 1212, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1203, "end": 1212, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1203, "end": 1212, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "TsParameterProperty", "span": { "start": 1226, "end": 1253, "ctxt": 0 }, "decorators": [], "accessibility": "public", "override": false, "readonly": false, "param": { "type": "Identifier", "span": { "start": 1233, "end": 1253, "ctxt": 0 }, "value": "smartIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1244, "end": 1253, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1246, "end": 1253, "ctxt": 0 }, "kind": "boolean" } } } } ], "body": { "type": "BlockStatement", "span": { "start": 1255, "end": 1760, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1270, "end": 1326, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1270, "end": 1325, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1270, "end": 1289, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1270, "end": 1274, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1275, "end": 1289, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "right": { "type": "NewExpression", "span": { "start": 1292, "end": 1325, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1296, "end": 1310, "ctxt": 0 }, "value": "IndentationBag", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1311, "end": 1324, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1311, "end": 1315, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1316, "end": 1324, "ctxt": 0 }, "value": "snapshot", "optional": false } } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 1339, "end": 1376, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1339, "end": 1375, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1339, "end": 1370, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1339, "end": 1343, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1344, "end": 1370, "ctxt": 0 }, "value": "scriptBlockBeginLineNumber", "optional": false } }, "right": { "type": "UnaryExpression", "span": { "start": 1373, "end": 1375, "ctxt": 0 }, "operator": "-", "argument": { "type": "NumericLiteral", "span": { "start": 1374, "end": 1375, "ctxt": 0 }, "value": 1.0, "raw": "1" } } } }, { "type": "ExpressionStatement", "span": { "start": 1389, "end": 1445, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 1389, "end": 1444, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 1389, "end": 1417, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1389, "end": 1393, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1394, "end": 1417, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false } }, "right": { "type": "NewExpression", "span": { "start": 1420, "end": 1444, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1424, "end": 1442, "ctxt": 0 }, "value": "Dictionary_int_int", "optional": false }, "arguments": [], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 1565, "end": 1607, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1565, "end": 1606, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1565, "end": 1602, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1565, "end": 1579, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1565, "end": 1574, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1565, "end": 1569, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1570, "end": 1574, "ctxt": 0 }, "value": "tree", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1575, "end": 1579, "ctxt": 0 }, "value": "Root", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1580, "end": 1602, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 1603, "end": 1605, "ctxt": 0 }, "value": "", "raw": "\"\"" } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 1621, "end": 1695, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1621, "end": 1694, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1621, "end": 1653, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1621, "end": 1625, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1626, "end": 1653, "ctxt": 0 }, "value": "ApplyScriptBlockIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1654, "end": 1682, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1654, "end": 1658, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1659, "end": 1682, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1684, "end": 1693, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1684, "end": 1688, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1689, "end": 1693, "ctxt": 0 }, "value": "tree", "optional": false } } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 1708, "end": 1749, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1708, "end": 1748, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1708, "end": 1737, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1708, "end": 1712, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1713, "end": 1737, "ctxt": 0 }, "value": "FillInheritedIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 1738, "end": 1747, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1738, "end": 1742, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1743, "end": 1747, "ctxt": 0 }, "value": "tree", "optional": false } } } ], "typeArguments": null } } ] }, "accessibility": null, "isOptional": false }, { "type": "ClassMethod", "span": { "start": 1770, "end": 2787, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 1777, "end": 1796, "ctxt": 0 }, "value": "GetIndentationEdits", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 1797, "end": 1813, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1797, "end": 1813, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1802, "end": 1813, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1804, "end": 1813, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1804, "end": 1813, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 1815, "end": 1835, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1815, "end": 1835, "ctxt": 0 }, "value": "nextToken", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1824, "end": 1835, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1826, "end": 1835, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1826, "end": 1835, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 1837, "end": 1852, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1837, "end": 1852, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1841, "end": 1852, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1843, "end": 1852, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1843, "end": 1852, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 1854, "end": 1877, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 1854, "end": 1877, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1868, "end": 1877, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 1870, "end": 1877, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 1770, "end": 2787, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1898, "end": 2787, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 1912, "end": 2277, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 1916, "end": 1941, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1916, "end": 1939, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1916, "end": 1927, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1916, "end": 1920, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1921, "end": 1927, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1928, "end": 1939, "ctxt": 0 }, "value": "information", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 1943, "end": 2277, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 1961, "end": 2263, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 1961, "end": 2262, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1961, "end": 1976, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 1961, "end": 1972, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 1961, "end": 1965, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 1966, "end": 1972, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 1973, "end": 1976, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2261, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2235, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2229, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2126, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2097, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2090, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2063, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2057, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 1977, "end": 2028, "ctxt": 0 }, "operator": "+", "left": { "type": "StringLiteral", "span": { "start": 1977, "end": 1999, "ctxt": 0 }, "value": "GetIndentationEdits(", "raw": "\"GetIndentationEdits(\"" }, "right": { "type": "StringLiteral", "span": { "start": 2022, "end": 2028, "ctxt": 0 }, "value": "t1=[", "raw": "\"t1=[\"" } }, "right": { "type": "CallExpression", "span": { "start": 2031, "end": 2057, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2031, "end": 2055, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2031, "end": 2041, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2031, "end": 2036, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2037, "end": 2041, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2042, "end": 2055, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, "right": { "type": "StringLiteral", "span": { "start": 2060, "end": 2063, "ctxt": 0 }, "value": ",", "raw": "\",\"" } }, "right": { "type": "CallExpression", "span": { "start": 2066, "end": 2090, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2066, "end": 2088, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2066, "end": 2076, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2066, "end": 2071, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2072, "end": 2076, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2077, "end": 2088, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, "right": { "type": "StringLiteral", "span": { "start": 2092, "end": 2097, "ctxt": 0 }, "value": "], ", "raw": "\"], \"" } }, "right": { "type": "StringLiteral", "span": { "start": 2120, "end": 2126, "ctxt": 0 }, "value": "t2=[", "raw": "\"t2=[\"" } }, "right": { "type": "ParenthesisExpression", "span": { "start": 2129, "end": 2229, "ctxt": 0 }, "expression": { "type": "ConditionalExpression", "span": { "start": 2130, "end": 2228, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 2130, "end": 2147, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 2130, "end": 2139, "ctxt": 0 }, "value": "nextToken", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 2143, "end": 2147, "ctxt": 0 } } }, "consequent": { "type": "StringLiteral", "span": { "start": 2150, "end": 2156, "ctxt": 0 }, "value": "null", "raw": "\"null\"" }, "alternate": { "type": "ParenthesisExpression", "span": { "start": 2159, "end": 2228, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 2160, "end": 2227, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2160, "end": 2196, "ctxt": 0 }, "operator": "+", "left": { "type": "CallExpression", "span": { "start": 2160, "end": 2190, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2160, "end": 2188, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2160, "end": 2174, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2160, "end": 2169, "ctxt": 0 }, "value": "nextToken", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2170, "end": 2174, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2175, "end": 2188, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 2193, "end": 2196, "ctxt": 0 }, "value": ",", "raw": "\",\"" } }, "right": { "type": "CallExpression", "span": { "start": 2199, "end": 2227, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2199, "end": 2225, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2199, "end": 2213, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2199, "end": 2208, "ctxt": 0 }, "value": "nextToken", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2209, "end": 2213, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2214, "end": 2225, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } } } } } }, "right": { "type": "StringLiteral", "span": { "start": 2232, "end": 2235, "ctxt": 0 }, "value": "]", "raw": "\"]\"" } }, "right": { "type": "StringLiteral", "span": { "start": 2258, "end": 2261, "ctxt": 0 }, "value": ")", "raw": "\")\"" } } } ], "typeArguments": null } } ] }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 2291, "end": 2375, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2295, "end": 2374, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2295, "end": 2301, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 2304, "end": 2374, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2304, "end": 2334, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2304, "end": 2308, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2309, "end": 2334, "ctxt": 0 }, "value": "GetIndentationEditsWorker", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2335, "end": 2340, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2342, "end": 2351, "ctxt": 0 }, "value": "nextToken", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2353, "end": 2357, "ctxt": 0 }, "value": "node", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2359, "end": 2373, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 2389, "end": 2749, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 2393, "end": 2418, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2393, "end": 2416, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2393, "end": 2404, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2393, "end": 2397, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2398, "end": 2404, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2405, "end": 2416, "ctxt": 0 }, "value": "information", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 2420, "end": 2749, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 2438, "end": 2735, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 2443, "end": 2452, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2447, "end": 2452, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2447, "end": 2448, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 2451, "end": 2452, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 2454, "end": 2472, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 2454, "end": 2455, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 2458, "end": 2472, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2458, "end": 2470, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2458, "end": 2464, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2465, "end": 2470, "ctxt": 0 }, "value": "count", "optional": false } }, "arguments": [], "typeArguments": null } }, "update": { "type": "UpdateExpression", "span": { "start": 2475, "end": 2478, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 2475, "end": 2476, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 2480, "end": 2735, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 2502, "end": 2527, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2506, "end": 2526, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2506, "end": 2510, "ctxt": 0 }, "value": "edit", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 2513, "end": 2526, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2513, "end": 2523, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2513, "end": 2519, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2520, "end": 2523, "ctxt": 0 }, "value": "get", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 2524, "end": 2525, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 2548, "end": 2717, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 2548, "end": 2716, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2548, "end": 2563, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 2548, "end": 2559, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 2548, "end": 2552, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 2553, "end": 2559, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 2560, "end": 2563, "ctxt": 0 }, "value": "log", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 2564, "end": 2715, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2564, "end": 2708, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2564, "end": 2657, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2564, "end": 2643, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2564, "end": 2611, "ctxt": 0 }, "operator": "+", "left": { "type": "BinaryExpression", "span": { "start": 2564, "end": 2596, "ctxt": 0 }, "operator": "+", "left": { "type": "StringLiteral", "span": { "start": 2564, "end": 2580, "ctxt": 0 }, "value": "edit: minChar=", "raw": "\"edit: minChar=\"" }, "right": { "type": "MemberExpression", "span": { "start": 2583, "end": 2596, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2583, "end": 2587, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2588, "end": 2596, "ctxt": 0 }, "value": "position", "optional": false } } }, "right": { "type": "StringLiteral", "span": { "start": 2599, "end": 2611, "ctxt": 0 }, "value": ", limChar=", "raw": "\", limChar=\"" } }, "right": { "type": "ParenthesisExpression", "span": { "start": 2614, "end": 2643, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 2615, "end": 2642, "ctxt": 0 }, "operator": "+", "left": { "type": "MemberExpression", "span": { "start": 2615, "end": 2628, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2615, "end": 2619, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2620, "end": 2628, "ctxt": 0 }, "value": "position", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 2631, "end": 2642, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2631, "end": 2635, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2636, "end": 2642, "ctxt": 0 }, "value": "length", "optional": false } } } } }, "right": { "type": "StringLiteral", "span": { "start": 2646, "end": 2657, "ctxt": 0 }, "value": ", text=\"", "raw": "\", text=\\\"\"" } }, "right": { "type": "CallExpression", "span": { "start": 2660, "end": 2708, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 2660, "end": 2686, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2660, "end": 2670, "ctxt": 0 }, "value": "TypeScript", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2671, "end": 2686, "ctxt": 0 }, "value": "stringToLiteral", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 2687, "end": 2703, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 2687, "end": 2691, "ctxt": 0 }, "value": "edit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 2692, "end": 2703, "ctxt": 0 }, "value": "replaceWith", "optional": false } } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 2705, "end": 2707, "ctxt": 0 }, "value": 30.0, "raw": "30" } } ], "typeArguments": null } }, "right": { "type": "StringLiteral", "span": { "start": 2711, "end": 2715, "ctxt": 0 }, "value": "\"", "raw": "\"\\\"\"" } } } ], "typeArguments": null } } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 2763, "end": 2777, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 2770, "end": 2776, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 1878, "end": 1897, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1880, "end": 1897, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1880, "end": 1897, "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": 2797, "end": 7019, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 2804, "end": 2829, "ctxt": 0 }, "value": "GetIndentationEditsWorker", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 2830, "end": 2846, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2830, "end": 2846, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2835, "end": 2846, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2837, "end": 2846, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2837, "end": 2846, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 2848, "end": 2868, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2848, "end": 2868, "ctxt": 0 }, "value": "nextToken", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2857, "end": 2868, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2859, "end": 2868, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2859, "end": 2868, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 2870, "end": 2885, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2870, "end": 2885, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2874, "end": 2885, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2876, "end": 2885, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2876, "end": 2885, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 2887, "end": 2910, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 2887, "end": 2910, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 2901, "end": 2910, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 2903, "end": 2910, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 2797, "end": 7019, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 2931, "end": 7019, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 2945, "end": 2982, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2949, "end": 2981, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2949, "end": 2955, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 2958, "end": 2981, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 2962, "end": 2979, "ctxt": 0 }, "value": "List_TextEditInfo", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 2995, "end": 3039, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 2999, "end": 3038, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 2999, "end": 3014, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 3014, "end": 3031, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 3016, "end": 3031, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 3016, "end": 3031, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 3034, "end": 3038, "ctxt": 0 } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 3707, "end": 3751, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 3707, "end": 3750, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3707, "end": 3737, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 3707, "end": 3711, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 3712, "end": 3737, "ctxt": 0 }, "value": "AdjustStartOffsetIfNeeded", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 3738, "end": 3743, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 3745, "end": 3749, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } }, { "type": "IfStatement", "span": { "start": 3840, "end": 3945, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 3844, "end": 3897, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 3844, "end": 3875, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 3844, "end": 3848, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 3849, "end": 3875, "ctxt": 0 }, "value": "scriptBlockBeginLineNumber", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 3879, "end": 3897, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 3879, "end": 3895, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 3879, "end": 3884, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 3885, "end": 3895, "ctxt": 0 }, "value": "lineNumber", "optional": false } }, "arguments": [], "typeArguments": null } }, "consequent": { "type": "BlockStatement", "span": { "start": 3899, "end": 3945, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 3917, "end": 3931, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 3924, "end": 3930, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 4006, "end": 4106, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4010, "end": 4058, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 4010, "end": 4025, "ctxt": 0 }, "operator": "!", "argument": { "type": "Identifier", "span": { "start": 4011, "end": 4025, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 4029, "end": 4058, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4029, "end": 4051, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 4029, "end": 4033, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 4034, "end": 4051, "ctxt": 0 }, "value": "IsMultiLineString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4052, "end": 4057, "ctxt": 0 }, "value": "token", "optional": false } } ], "typeArguments": null } }, "consequent": { "type": "BlockStatement", "span": { "start": 4060, "end": 4106, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 4078, "end": 4092, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 4085, "end": 4091, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 4230, "end": 4292, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4230, "end": 4291, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 4230, "end": 4245, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 4248, "end": 4291, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4248, "end": 4278, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 4248, "end": 4252, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 4253, "end": 4278, "ctxt": 0 }, "value": "GetSpecialCaseIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4279, "end": 4284, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 4286, "end": 4290, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } }, { "type": "IfStatement", "span": { "start": 4305, "end": 6196, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4309, "end": 4332, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 4309, "end": 4324, "ctxt": 0 }, "value": "indentationInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 4328, "end": 4332, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 4334, "end": 6196, "ctxt": 0 }, "stmts": [ { "type": "WhileStatement", "span": { "start": 4567, "end": 4728, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4574, "end": 4687, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 4574, "end": 4614, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 4574, "end": 4591, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 4575, "end": 4591, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4575, "end": 4589, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4575, "end": 4579, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4580, "end": 4589, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } }, "right": { "type": "BinaryExpression", "span": { "start": 4595, "end": 4614, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 4595, "end": 4606, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4595, "end": 4599, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4600, "end": 4606, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 4610, "end": 4614, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 4618, "end": 4687, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 4618, "end": 4641, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4618, "end": 4639, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4618, "end": 4633, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4618, "end": 4628, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4618, "end": 4623, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4624, "end": 4628, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4629, "end": 4633, "ctxt": 0 }, "value": "span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4634, "end": 4639, "ctxt": 0 }, "value": "start", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "MemberExpression", "span": { "start": 4645, "end": 4687, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4645, "end": 4675, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4645, "end": 4667, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4645, "end": 4656, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4645, "end": 4649, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4650, "end": 4656, "ctxt": 0 }, "value": "Parent", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4657, "end": 4667, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4668, "end": 4675, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4676, "end": 4687, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, "body": { "type": "ExpressionStatement", "span": { "start": 4709, "end": 4728, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4709, "end": 4727, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 4709, "end": 4713, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 4716, "end": 4727, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4716, "end": 4720, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4721, "end": 4727, "ctxt": 0 }, "value": "Parent", "optional": false } } } } }, { "type": "IfStatement", "span": { "start": 4746, "end": 6182, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 4750, "end": 4832, "ctxt": 0 }, "operator": "&&", "left": { "type": "CallExpression", "span": { "start": 4750, "end": 4766, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4750, "end": 4764, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4750, "end": 4754, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4755, "end": 4764, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "BinaryExpression", "span": { "start": 4770, "end": 4832, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 4770, "end": 4793, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4770, "end": 4791, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4770, "end": 4785, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4770, "end": 4780, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4770, "end": 4775, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4776, "end": 4780, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4781, "end": 4785, "ctxt": 0 }, "value": "span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4786, "end": 4791, "ctxt": 0 }, "value": "start", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "MemberExpression", "span": { "start": 4797, "end": 4832, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4797, "end": 4820, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 4797, "end": 4812, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4797, "end": 4801, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4802, "end": 4812, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4813, "end": 4820, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 4821, "end": 4832, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 4834, "end": 4927, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 4856, "end": 4909, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 4856, "end": 4908, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 4856, "end": 4871, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 4874, "end": 4908, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 4874, "end": 4902, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 4874, "end": 4878, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 4879, "end": 4902, "ctxt": 0 }, "value": "GetEffectiveIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 4903, "end": 4907, "ctxt": 0 } } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 4949, "end": 6182, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 5148, "end": 6164, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 5152, "end": 5264, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 5152, "end": 5217, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 5152, "end": 5196, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 5152, "end": 5163, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5152, "end": 5157, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5158, "end": 5163, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 5167, "end": 5196, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5167, "end": 5182, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5183, "end": 5196, "ctxt": 0 }, "value": "atkIdentifier", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 5200, "end": 5217, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 5200, "end": 5209, "ctxt": 0 }, "value": "nextToken", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 5213, "end": 5217, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 5221, "end": 5264, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 5221, "end": 5236, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5221, "end": 5230, "ctxt": 0 }, "value": "nextToken", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5231, "end": 5236, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 5240, "end": 5264, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5240, "end": 5255, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5256, "end": 5264, "ctxt": 0 }, "value": "atkColon", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 5266, "end": 5698, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 5615, "end": 5676, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 5615, "end": 5675, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 5615, "end": 5630, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 5633, "end": 5675, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 5633, "end": 5669, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 5633, "end": 5637, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 5638, "end": 5669, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 5670, "end": 5674, "ctxt": 0 } } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 5724, "end": 6164, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6074, "end": 6142, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 6074, "end": 6141, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 6074, "end": 6089, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 6092, "end": 6141, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6092, "end": 6128, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6092, "end": 6096, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6097, "end": 6128, "ctxt": 0 }, "value": "ApplyIndentationDeltaFromParent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6129, "end": 6134, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6136, "end": 6140, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } } ] } } ] } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 6271, "end": 6981, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6275, "end": 6298, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 6275, "end": 6290, "ctxt": 0 }, "value": "indentationInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 6294, "end": 6298, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 6300, "end": 6981, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 6318, "end": 6409, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 6322, "end": 6408, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 6322, "end": 6326, "ctxt": 0 }, "value": "edit", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 6329, "end": 6408, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6329, "end": 6347, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6329, "end": 6333, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6334, "end": 6347, "ctxt": 0 }, "value": "GetIndentEdit", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6348, "end": 6363, "ctxt": 0 }, "value": "indentationInfo", "optional": false } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 6365, "end": 6391, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6365, "end": 6389, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 6365, "end": 6375, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6365, "end": 6370, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6371, "end": 6375, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 6376, "end": 6389, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6393, "end": 6407, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 6426, "end": 6967, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6430, "end": 6442, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 6430, "end": 6434, "ctxt": 0 }, "value": "edit", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 6438, "end": 6442, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 6444, "end": 6967, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6466, "end": 6513, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6466, "end": 6512, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6466, "end": 6490, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6466, "end": 6470, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6471, "end": 6490, "ctxt": 0 }, "value": "RegisterIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6491, "end": 6495, "ctxt": 0 }, "value": "edit", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6497, "end": 6511, "ctxt": 0 }, "value": "sameLineIndent", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 6535, "end": 6552, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6535, "end": 6551, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6535, "end": 6545, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6535, "end": 6541, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6542, "end": 6545, "ctxt": 0 }, "value": "add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6546, "end": 6550, "ctxt": 0 }, "value": "edit", "optional": false } } ], "typeArguments": null } }, { "type": "IfStatement", "span": { "start": 6665, "end": 6949, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 6669, "end": 6710, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 6669, "end": 6680, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6669, "end": 6674, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6675, "end": 6680, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 6684, "end": 6710, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6684, "end": 6699, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6700, "end": 6710, "ctxt": 0 }, "value": "atkComment", "optional": false } } }, "consequent": { "type": "BlockStatement", "span": { "start": 6712, "end": 6949, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 6738, "end": 6796, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 6742, "end": 6795, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 6742, "end": 6754, "ctxt": 0 }, "value": "commentEdits", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 6757, "end": 6795, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6757, "end": 6788, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 6757, "end": 6761, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 6762, "end": 6788, "ctxt": 0 }, "value": "GetCommentIndentationEdits", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6789, "end": 6794, "ctxt": 0 }, "value": "token", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 6821, "end": 6927, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6821, "end": 6926, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6821, "end": 6841, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6821, "end": 6833, "ctxt": 0 }, "value": "commentEdits", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6834, "end": 6841, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 6842, "end": 6925, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 6843, "end": 6847, "ctxt": 0 }, "value": "item", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 6852, "end": 6925, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 6882, "end": 6899, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 6882, "end": 6898, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 6882, "end": 6892, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 6882, "end": 6888, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 6889, "end": 6892, "ctxt": 0 }, "value": "add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 6893, "end": 6897, "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": 6995, "end": 7009, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 7002, "end": 7008, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 2911, "end": 2930, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 2913, "end": 2930, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 2913, "end": 2930, "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": 7029, "end": 8549, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 7037, "end": 7063, "ctxt": 0 }, "value": "GetCommentIndentationEdits", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 7064, "end": 7080, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 7064, "end": 7080, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 7069, "end": 7080, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 7071, "end": 7080, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 7071, "end": 7080, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 7029, "end": 8549, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 7101, "end": 8549, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 7115, "end": 7152, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7119, "end": 7151, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7119, "end": 7125, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 7128, "end": 7151, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 7132, "end": 7149, "ctxt": 0 }, "value": "List_TextEditInfo", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7166, "end": 7243, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 7170, "end": 7211, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 7170, "end": 7181, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7170, "end": 7175, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7176, "end": 7181, "ctxt": 0 }, "value": "Token", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 7185, "end": 7211, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7185, "end": 7200, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7201, "end": 7211, "ctxt": 0 }, "value": "atkComment", "optional": false } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 7229, "end": 7243, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 7236, "end": 7242, "ctxt": 0 }, "value": "result", "optional": false } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 7257, "end": 7351, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7261, "end": 7350, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7261, "end": 7282, "ctxt": 0 }, "value": "commentLastLineNumber", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7285, "end": 7350, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7285, "end": 7324, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7285, "end": 7298, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7285, "end": 7289, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7290, "end": 7298, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7299, "end": 7324, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 7325, "end": 7349, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7325, "end": 7347, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7325, "end": 7335, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7325, "end": 7330, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7331, "end": 7335, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7336, "end": 7347, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7364, "end": 7443, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 7368, "end": 7411, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 7368, "end": 7386, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7368, "end": 7384, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7368, "end": 7373, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7374, "end": 7384, "ctxt": 0 }, "value": "lineNumber", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "Identifier", "span": { "start": 7390, "end": 7411, "ctxt": 0 }, "value": "commentLastLineNumber", "optional": false } }, "consequent": { "type": "ReturnStatement", "span": { "start": 7429, "end": 7443, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 7436, "end": 7442, "ctxt": 0 }, "value": "result", "optional": false } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 7457, "end": 7555, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7461, "end": 7554, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7461, "end": 7493, "ctxt": 0 }, "value": "commentFirstLineIndentationDelta", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7496, "end": 7554, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7496, "end": 7520, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7496, "end": 7500, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7501, "end": 7520, "ctxt": 0 }, "value": "GetIndentationDelta", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 7521, "end": 7547, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7521, "end": 7545, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7521, "end": 7531, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7521, "end": 7526, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7527, "end": 7531, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7532, "end": 7545, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 7549, "end": 7553, "ctxt": 0 } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 7568, "end": 8511, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 7572, "end": 7617, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 7572, "end": 7604, "ctxt": 0 }, "value": "commentFirstLineIndentationDelta", "optional": false }, "right": { "type": "Identifier", "span": { "start": 7608, "end": 7617, "ctxt": 0 }, "value": "undefined", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 7619, "end": 8511, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 7637, "end": 8497, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 7642, "end": 7675, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7646, "end": 7675, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7646, "end": 7650, "ctxt": 0 }, "value": "line", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 7653, "end": 7675, "ctxt": 0 }, "operator": "+", "left": { "type": "CallExpression", "span": { "start": 7653, "end": 7671, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7653, "end": 7669, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 7653, "end": 7658, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 7659, "end": 7669, "ctxt": 0 }, "value": "lineNumber", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "NumericLiteral", "span": { "start": 7674, "end": 7675, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 7677, "end": 7706, "ctxt": 0 }, "operator": "<=", "left": { "type": "Identifier", "span": { "start": 7677, "end": 7681, "ctxt": 0 }, "value": "line", "optional": false }, "right": { "type": "Identifier", "span": { "start": 7685, "end": 7706, "ctxt": 0 }, "value": "commentLastLineNumber", "optional": false } }, "update": { "type": "UpdateExpression", "span": { "start": 7708, "end": 7714, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 7708, "end": 7712, "ctxt": 0 }, "value": "line", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 7716, "end": 8497, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 7738, "end": 7820, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7742, "end": 7819, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7742, "end": 7759, "ctxt": 0 }, "value": "lineStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7762, "end": 7819, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7762, "end": 7817, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 7762, "end": 7803, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7762, "end": 7797, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 7762, "end": 7775, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7762, "end": 7766, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7767, "end": 7775, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 7776, "end": 7797, "ctxt": 0 }, "value": "GetLineFromLineNumber", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 7798, "end": 7802, "ctxt": 0 }, "value": "line", "optional": false } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 7804, "end": 7817, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 7841, "end": 7910, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7845, "end": 7909, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7845, "end": 7855, "ctxt": 0 }, "value": "lineIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7858, "end": 7909, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7858, "end": 7890, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7858, "end": 7862, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7863, "end": 7890, "ctxt": 0 }, "value": "GetLineIndentationForOffset", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 7891, "end": 7908, "ctxt": 0 }, "value": "lineStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 7932, "end": 8035, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 7936, "end": 8034, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 7936, "end": 7958, "ctxt": 0 }, "value": "commentIndentationInfo", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 7961, "end": 8034, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 7961, "end": 7988, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 7961, "end": 7965, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 7966, "end": 7988, "ctxt": 0 }, "value": "ApplyIndentationDelta2", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 7989, "end": 7999, "ctxt": 0 }, "value": "lineIndent", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8001, "end": 8033, "ctxt": 0 }, "value": "commentFirstLineIndentationDelta", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 8056, "end": 8479, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 8060, "end": 8090, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 8060, "end": 8082, "ctxt": 0 }, "value": "commentIndentationInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 8086, "end": 8090, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 8092, "end": 8479, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 8118, "end": 8181, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8122, "end": 8180, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8122, "end": 8140, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 8143, "end": 8180, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 8143, "end": 8160, "ctxt": 0 }, "value": "lineStartPosition", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 8163, "end": 8180, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8163, "end": 8173, "ctxt": 0 }, "value": "lineIndent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8174, "end": 8180, "ctxt": 0 }, "value": "length", "optional": false } } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 8206, "end": 8305, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8210, "end": 8304, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8210, "end": 8232, "ctxt": 0 }, "value": "commentIndentationEdit", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 8235, "end": 8304, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8235, "end": 8253, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 8235, "end": 8239, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 8240, "end": 8253, "ctxt": 0 }, "value": "GetIndentEdit", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8254, "end": 8276, "ctxt": 0 }, "value": "commentIndentationInfo", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8278, "end": 8296, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 8298, "end": 8303, "ctxt": 0 }, "value": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 8330, "end": 8457, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 8334, "end": 8364, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 8334, "end": 8356, "ctxt": 0 }, "value": "commentIndentationEdit", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 8360, "end": 8364, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 8366, "end": 8457, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 8396, "end": 8431, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 8396, "end": 8430, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 8396, "end": 8406, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8396, "end": 8402, "ctxt": 0 }, "value": "result", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8403, "end": 8406, "ctxt": 0 }, "value": "add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8407, "end": 8429, "ctxt": 0 }, "value": "commentIndentationEdit", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "alternate": null } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 8525, "end": 8539, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 8532, "end": 8538, "ctxt": 0 }, "value": "result", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 7081, "end": 7100, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 7083, "end": 7100, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 7083, "end": 7100, "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": 8559, "end": 8775, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 8566, "end": 8593, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 8594, "end": 8612, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8594, "end": 8612, "ctxt": 0 }, "value": "indentText", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8604, "end": 8612, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8606, "end": 8612, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 8614, "end": 8651, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8614, "end": 8651, "ctxt": 0 }, "value": "editorOptions", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8627, "end": 8651, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 8629, "end": 8651, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 8629, "end": 8637, "ctxt": 0 }, "value": "Services", "optional": false }, "right": { "type": "Identifier", "span": { "start": 8638, "end": 8651, "ctxt": 0 }, "value": "EditorOptions", "optional": false } }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 8559, "end": 8775, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 8661, "end": 8775, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 8675, "end": 8765, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 8682, "end": 8764, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 8682, "end": 8703, "ctxt": 0 }, "value": "GetIndentSizeFromText", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8704, "end": 8714, "ctxt": 0 }, "value": "indentText", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 8716, "end": 8729, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 8758, "end": 8763, "ctxt": 0 }, "value": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 8652, "end": 8660, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8654, "end": 8660, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 8785, "end": 9488, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 8792, "end": 8813, "ctxt": 0 }, "value": "GetIndentSizeFromText", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 8814, "end": 8826, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8814, "end": 8826, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8818, "end": 8826, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8820, "end": 8826, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 8828, "end": 8865, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8828, "end": 8865, "ctxt": 0 }, "value": "editorOptions", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8841, "end": 8865, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 8843, "end": 8865, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 8843, "end": 8851, "ctxt": 0 }, "value": "Services", "optional": false }, "right": { "type": "Identifier", "span": { "start": 8852, "end": 8865, "ctxt": 0 }, "value": "EditorOptions", "optional": false } }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 8867, "end": 8897, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 8867, "end": 8897, "ctxt": 0 }, "value": "includeNonIndentChars", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 8888, "end": 8897, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8890, "end": 8897, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 8785, "end": 9488, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 8907, "end": 9488, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 8921, "end": 8940, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8925, "end": 8939, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8925, "end": 8935, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 8938, "end": 8939, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false } ] }, { "type": "ForStatement", "span": { "start": 8954, "end": 9446, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 8959, "end": 8968, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 8963, "end": 8968, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 8963, "end": 8964, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 8967, "end": 8968, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 8970, "end": 8985, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 8970, "end": 8971, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 8974, "end": 8985, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 8974, "end": 8978, "ctxt": 0 }, "value": "text", "optional": false }, "property": { "type": "Identifier", "span": { "start": 8979, "end": 8985, "ctxt": 0 }, "value": "length", "optional": false } } }, "update": { "type": "UpdateExpression", "span": { "start": 8987, "end": 8990, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 8987, "end": 8988, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 8992, "end": 9446, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 9010, "end": 9033, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 9014, "end": 9032, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 9014, "end": 9015, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 9018, "end": 9032, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 9018, "end": 9029, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9018, "end": 9022, "ctxt": 0 }, "value": "text", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9023, "end": 9029, "ctxt": 0 }, "value": "charAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 9030, "end": 9031, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 9051, "end": 9432, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 9055, "end": 9064, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 9055, "end": 9056, "ctxt": 0 }, "value": "c", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 9060, "end": 9064, "ctxt": 0 }, "value": "\t", "raw": "'\\t'" } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 9086, "end": 9175, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9086, "end": 9174, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 9086, "end": 9096, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 9099, "end": 9174, "ctxt": 0 }, "operator": "-", "left": { "type": "ParenthesisExpression", "span": { "start": 9099, "end": 9135, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 9100, "end": 9134, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 9100, "end": 9110, "ctxt": 0 }, "value": "indentSize", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 9113, "end": 9134, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9113, "end": 9126, "ctxt": 0 }, "value": "editorOptions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9127, "end": 9134, "ctxt": 0 }, "value": "TabSize", "optional": false } } } }, "right": { "type": "ParenthesisExpression", "span": { "start": 9138, "end": 9174, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 9139, "end": 9173, "ctxt": 0 }, "operator": "%", "left": { "type": "Identifier", "span": { "start": 9139, "end": 9149, "ctxt": 0 }, "value": "indentSize", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 9152, "end": 9173, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9152, "end": 9165, "ctxt": 0 }, "value": "editorOptions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9166, "end": 9173, "ctxt": 0 }, "value": "TabSize", "optional": false } } } } } } }, "alternate": { "type": "IfStatement", "span": { "start": 9197, "end": 9432, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 9201, "end": 9209, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 9201, "end": 9202, "ctxt": 0 }, "value": "c", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 9206, "end": 9209, "ctxt": 0 }, "value": " ", "raw": "' '" } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 9231, "end": 9247, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9231, "end": 9246, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 9231, "end": 9241, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 9245, "end": 9246, "ctxt": 0 }, "value": 1.0, "raw": "1" } } }, "alternate": { "type": "BlockStatement", "span": { "start": 9269, "end": 9432, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 9291, "end": 9414, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 9295, "end": 9316, "ctxt": 0 }, "value": "includeNonIndentChars", "optional": false }, "consequent": { "type": "ExpressionStatement", "span": { "start": 9342, "end": 9358, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9342, "end": 9357, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 9342, "end": 9352, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 9356, "end": 9357, "ctxt": 0 }, "value": 1.0, "raw": "1" } } }, "alternate": { "type": "BreakStatement", "span": { "start": 9408, "end": 9414, "ctxt": 0 }, "label": null } } ] } } } ] } }, { "type": "ReturnStatement", "span": { "start": 9460, "end": 9478, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 9467, "end": 9477, "ctxt": 0 }, "value": "indentSize", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 8898, "end": 8906, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 8900, "end": 8906, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 9498, "end": 11375, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 9506, "end": 9531, "ctxt": 0 }, "value": "GetSpecialCaseIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 9532, "end": 9548, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 9532, "end": 9548, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 9537, "end": 9548, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9539, "end": 9548, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9539, "end": 9548, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 9550, "end": 9565, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 9550, "end": 9565, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 9554, "end": 9565, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9556, "end": 9565, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9556, "end": 9565, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 9498, "end": 11375, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 9584, "end": 11375, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 9598, "end": 9642, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 9602, "end": 9641, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 9602, "end": 9617, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 9617, "end": 9634, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9619, "end": 9634, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9619, "end": 9634, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 9637, "end": 9641, "ctxt": 0 } }, "definite": false } ] }, { "type": "SwitchStatement", "span": { "start": 9656, "end": 11365, "ctxt": 0 }, "discriminant": { "type": "MemberExpression", "span": { "start": 9664, "end": 9675, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9664, "end": 9669, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9670, "end": 9675, "ctxt": 0 }, "value": "Token", "optional": false } }, "cases": [ { "type": "SwitchCase", "span": { "start": 9695, "end": 9884, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 9700, "end": 9725, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9700, "end": 9715, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9716, "end": 9725, "ctxt": 0 }, "value": "atkLCurly", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 9776, "end": 9840, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 9776, "end": 9839, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 9776, "end": 9791, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 9794, "end": 9839, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 9794, "end": 9833, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 9794, "end": 9798, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 9799, "end": 9833, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForLCurly", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 9834, "end": 9838, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 9861, "end": 9884, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 9868, "end": 9883, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, { "type": "SwitchCase", "span": { "start": 9902, "end": 9931, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 9907, "end": 9930, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9907, "end": 9922, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 9923, "end": 9930, "ctxt": 0 }, "value": "atkElse", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 9982, "end": 10164, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 9987, "end": 10012, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 9987, "end": 10002, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10003, "end": 10012, "ctxt": 0 }, "value": "atkRBrack", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 10063, "end": 10120, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10063, "end": 10119, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10063, "end": 10078, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 10081, "end": 10119, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 10081, "end": 10113, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10081, "end": 10085, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10086, "end": 10113, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 10114, "end": 10118, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 10141, "end": 10164, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 10148, "end": 10163, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, { "type": "SwitchCase", "span": { "start": 10182, "end": 10644, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 10187, "end": 10212, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10187, "end": 10202, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10203, "end": 10212, "ctxt": 0 }, "value": "atkRCurly", "optional": false } }, "consequent": [ { "type": "IfStatement", "span": { "start": 10351, "end": 10522, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 10355, "end": 10477, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 10355, "end": 10416, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 10355, "end": 10383, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10355, "end": 10378, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10355, "end": 10370, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10355, "end": 10359, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10360, "end": 10370, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10371, "end": 10378, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10379, "end": 10383, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 10387, "end": 10416, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10387, "end": 10406, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10407, "end": 10416, "ctxt": 0 }, "value": "apnkBlock", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 10420, "end": 10477, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 10420, "end": 10445, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10420, "end": 10435, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10420, "end": 10424, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10425, "end": 10435, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10436, "end": 10445, "ctxt": 0 }, "value": "EdgeLabel", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 10449, "end": 10477, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10449, "end": 10468, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10469, "end": 10477, "ctxt": 0 }, "value": "apneBody", "optional": false } } } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 10503, "end": 10522, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10503, "end": 10521, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10503, "end": 10507, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 10510, "end": 10521, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10510, "end": 10514, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10515, "end": 10521, "ctxt": 0 }, "value": "Parent", "optional": false } } } }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 10543, "end": 10600, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10543, "end": 10599, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10543, "end": 10558, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 10561, "end": 10599, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 10561, "end": 10593, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10561, "end": 10565, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10566, "end": 10593, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 10594, "end": 10598, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 10621, "end": 10644, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 10628, "end": 10643, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, { "type": "SwitchCase", "span": { "start": 10662, "end": 11016, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 10667, "end": 10691, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10667, "end": 10682, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10683, "end": 10691, "ctxt": 0 }, "value": "atkWhile", "optional": false } }, "consequent": [ { "type": "IfStatement", "span": { "start": 10760, "end": 10982, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 10764, "end": 10827, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 10764, "end": 10792, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10764, "end": 10787, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 10764, "end": 10779, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10764, "end": 10768, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10769, "end": 10779, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10780, "end": 10787, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 10788, "end": 10792, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 10796, "end": 10827, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10796, "end": 10815, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10816, "end": 10827, "ctxt": 0 }, "value": "apnkDoWhile", "optional": false } } }, "consequent": { "type": "BlockStatement", "span": { "start": 10829, "end": 10982, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 10855, "end": 10912, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 10855, "end": 10911, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 10855, "end": 10870, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 10873, "end": 10911, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 10873, "end": 10905, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 10873, "end": 10877, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 10878, "end": 10905, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 10906, "end": 10910, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 10937, "end": 10960, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 10944, "end": 10959, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 11004, "end": 11016, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 11011, "end": 11015, "ctxt": 0 } } } ] }, { "type": "SwitchCase", "span": { "start": 11034, "end": 11149, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 11039, "end": 11064, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11039, "end": 11054, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11055, "end": 11064, "ctxt": 0 }, "value": "atkSColon", "optional": false } }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 11086, "end": 11149, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 11093, "end": 11148, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 11093, "end": 11135, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 11093, "end": 11097, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 11098, "end": 11135, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForSemicolon", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11136, "end": 11141, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11143, "end": 11147, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } ] }, { "type": "SwitchCase", "span": { "start": 11167, "end": 11281, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 11172, "end": 11198, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11172, "end": 11187, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11188, "end": 11198, "ctxt": 0 }, "value": "atkComment", "optional": false } }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 11220, "end": 11281, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 11227, "end": 11280, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 11227, "end": 11267, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 11227, "end": 11231, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 11232, "end": 11267, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForComment", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11268, "end": 11273, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 11275, "end": 11279, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } ] }, { "type": "SwitchCase", "span": { "start": 11299, "end": 11351, "ctxt": 0 }, "test": null, "consequent": [ { "type": "ReturnStatement", "span": { "start": 11328, "end": 11351, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 11335, "end": 11350, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] } ] } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 9566, "end": 9583, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 9568, "end": 9583, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 9568, "end": 9583, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 11385, "end": 12332, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 11393, "end": 11427, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForLCurly", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 11428, "end": 11443, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 11428, "end": 11443, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 11432, "end": 11443, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 11434, "end": 11443, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 11434, "end": 11443, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 11385, "end": 12332, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 11462, "end": 12332, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 11476, "end": 11520, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 11480, "end": 11519, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 11480, "end": 11495, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 11495, "end": 11512, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 11497, "end": 11512, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 11497, "end": 11512, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 11515, "end": 11519, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 11534, "end": 12170, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 11538, "end": 11739, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 11538, "end": 11678, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 11538, "end": 11601, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11538, "end": 11566, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11538, "end": 11561, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11538, "end": 11553, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11538, "end": 11542, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11543, "end": 11553, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11554, "end": 11561, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11562, "end": 11566, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11570, "end": 11601, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11570, "end": 11589, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11590, "end": 11601, "ctxt": 0 }, "value": "apnkFncDecl", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 11621, "end": 11678, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11621, "end": 11646, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11621, "end": 11636, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11621, "end": 11625, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11626, "end": 11636, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11637, "end": 11646, "ctxt": 0 }, "value": "EdgeLabel", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11650, "end": 11678, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11650, "end": 11669, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11670, "end": 11678, "ctxt": 0 }, "value": "apneThen", "optional": false } } } }, "right": { "type": "BinaryExpression", "span": { "start": 11682, "end": 11739, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11682, "end": 11707, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11682, "end": 11697, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11682, "end": 11686, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11687, "end": 11697, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11698, "end": 11707, "ctxt": 0 }, "value": "EdgeLabel", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11711, "end": 11739, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11711, "end": 11730, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11731, "end": 11739, "ctxt": 0 }, "value": "apneElse", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 11741, "end": 11931, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 11820, "end": 11877, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 11820, "end": 11876, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 11820, "end": 11835, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 11838, "end": 11876, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 11838, "end": 11870, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11838, "end": 11842, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11843, "end": 11870, "ctxt": 0 }, "value": "GetNodeStartLineIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 11871, "end": 11875, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 11894, "end": 11917, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 11901, "end": 11916, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": { "type": "IfStatement", "span": { "start": 11949, "end": 12170, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 11953, "end": 12036, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 11953, "end": 12015, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 11953, "end": 11981, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11953, "end": 11976, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 11953, "end": 11968, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11953, "end": 11957, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 11958, "end": 11968, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11969, "end": 11976, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 11977, "end": 11981, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 11985, "end": 12015, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 11985, "end": 12004, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12005, "end": 12015, "ctxt": 0 }, "value": "apnkObject", "optional": false } } }, "right": { "type": "UnaryExpression", "span": { "start": 12019, "end": 12036, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 12020, "end": 12036, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 12020, "end": 12034, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12020, "end": 12024, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12025, "end": 12034, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } } }, "consequent": { "type": "BlockStatement", "span": { "start": 12038, "end": 12170, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 12144, "end": 12156, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 12151, "end": 12155, "ctxt": 0 } } } ] }, "alternate": null } }, { "type": "ExpressionStatement", "span": { "start": 12233, "end": 12286, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 12233, "end": 12285, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 12233, "end": 12248, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 12251, "end": 12285, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 12251, "end": 12279, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12251, "end": 12255, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12256, "end": 12279, "ctxt": 0 }, "value": "GetEffectiveIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 12280, "end": 12284, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 12299, "end": 12322, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 12306, "end": 12321, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 11444, "end": 11461, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 11446, "end": 11461, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 11446, "end": 11461, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 12342, "end": 13626, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 12350, "end": 12387, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForSemicolon", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 12388, "end": 12404, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 12388, "end": 12404, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 12393, "end": 12404, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12395, "end": 12404, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12395, "end": 12404, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 12406, "end": 12421, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 12406, "end": 12421, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 12410, "end": 12421, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12412, "end": 12421, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12412, "end": 12421, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 12342, "end": 13626, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 12440, "end": 13626, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 12454, "end": 12498, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 12458, "end": 12497, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 12458, "end": 12473, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 12473, "end": 12490, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12475, "end": 12490, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12475, "end": 12490, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 12493, "end": 12497, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 12512, "end": 13590, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 12516, "end": 12532, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 12516, "end": 12520, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 12521, "end": 12532, "ctxt": 0 }, "value": "smartIndent", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 12534, "end": 12667, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 12552, "end": 12613, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 12552, "end": 12612, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 12552, "end": 12567, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 12570, "end": 12612, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 12570, "end": 12606, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12570, "end": 12574, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12575, "end": 12606, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 12607, "end": 12611, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 12630, "end": 12653, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 12637, "end": 12652, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 12685, "end": 13590, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 12834, "end": 13576, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 12838, "end": 12897, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 12838, "end": 12866, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 12838, "end": 12861, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 12838, "end": 12853, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12838, "end": 12842, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12843, "end": 12853, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 12854, "end": 12861, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 12862, "end": 12866, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 12870, "end": 12897, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 12870, "end": 12889, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 12890, "end": 12897, "ctxt": 0 }, "value": "apnkFor", "optional": false } } }, "consequent": { "type": "BlockStatement", "span": { "start": 12899, "end": 13576, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 13262, "end": 13327, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 13266, "end": 13326, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 13266, "end": 13284, "ctxt": 0 }, "value": "semiColonStartSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 13287, "end": 13326, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 13291, "end": 13295, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 13296, "end": 13322, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13296, "end": 13320, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 13296, "end": 13306, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13296, "end": 13301, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13302, "end": 13306, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 13307, "end": 13320, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 13324, "end": 13325, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 13348, "end": 13432, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 13348, "end": 13431, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 13348, "end": 13352, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 13355, "end": 13431, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13355, "end": 13385, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13355, "end": 13364, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13365, "end": 13385, "ctxt": 0 }, "value": "FindCommonParentNode", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 13386, "end": 13404, "ctxt": 0 }, "value": "semiColonStartSpan", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 13406, "end": 13424, "ctxt": 0 }, "value": "semiColonStartSpan", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 13426, "end": 13430, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 13453, "end": 13514, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 13453, "end": 13513, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 13453, "end": 13468, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 13471, "end": 13513, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13471, "end": 13507, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13471, "end": 13475, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13476, "end": 13507, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 13508, "end": 13512, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ReturnStatement", "span": { "start": 13535, "end": 13558, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 13542, "end": 13557, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "alternate": null } ] } }, { "type": "ReturnStatement", "span": { "start": 13604, "end": 13616, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 13611, "end": 13615, "ctxt": 0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 12422, "end": 12439, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 12424, "end": 12439, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 12424, "end": 12439, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 13636, "end": 14555, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 13644, "end": 13679, "ctxt": 0 }, "value": "GetSpecialCaseIndentationForComment", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 13680, "end": 13696, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 13680, "end": 13696, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 13685, "end": 13696, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13687, "end": 13696, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13687, "end": 13696, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 13698, "end": 13713, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 13698, "end": 13713, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 13702, "end": 13713, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13704, "end": 13713, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13704, "end": 13713, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 13636, "end": 14555, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 13732, "end": 14555, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 13746, "end": 13790, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 13750, "end": 13789, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 13750, "end": 13765, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 13765, "end": 13782, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13767, "end": 13782, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13767, "end": 13782, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 13785, "end": 13789, "ctxt": 0 } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 13880, "end": 13963, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 13884, "end": 13962, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 13884, "end": 13895, "ctxt": 0 }, "value": "twoCharSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 13898, "end": 13962, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13898, "end": 13921, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 13898, "end": 13908, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13898, "end": 13903, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13904, "end": 13908, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 13909, "end": 13921, "ctxt": 0 }, "value": "Intersection", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 13922, "end": 13961, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 13926, "end": 13930, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 13931, "end": 13957, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 13931, "end": 13955, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 13931, "end": 13941, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 13931, "end": 13936, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 13937, "end": 13941, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 13942, "end": 13955, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 13959, "end": 13960, "ctxt": 0 }, "value": 2.0, "raw": "2" } } ], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 13976, "end": 14508, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 13980, "end": 14067, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 13980, "end": 13999, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 13980, "end": 13991, "ctxt": 0 }, "value": "twoCharSpan", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 13995, "end": 13999, "ctxt": 0 } } }, "right": { "type": "ParenthesisExpression", "span": { "start": 14003, "end": 14067, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 14004, "end": 14066, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 14004, "end": 14033, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 14004, "end": 14025, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14004, "end": 14023, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14004, "end": 14015, "ctxt": 0 }, "value": "twoCharSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14016, "end": 14023, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 14029, "end": 14033, "ctxt": 0 }, "value": "//", "raw": "\"//\"" } }, "right": { "type": "BinaryExpression", "span": { "start": 14037, "end": 14066, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 14037, "end": 14058, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14037, "end": 14056, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14037, "end": 14048, "ctxt": 0 }, "value": "twoCharSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14049, "end": 14056, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 14062, "end": 14066, "ctxt": 0 }, "value": "/*", "raw": "\"/*\"" } } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 14069, "end": 14508, "ctxt": 0 }, "stmts": [ { "type": "WhileStatement", "span": { "start": 14087, "end": 14195, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 14094, "end": 14154, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 14094, "end": 14131, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 14094, "end": 14123, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14094, "end": 14098, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14099, "end": 14123, "ctxt": 0 }, "value": "ChildrenIndentationDelta", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 14127, "end": 14131, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 14135, "end": 14154, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 14135, "end": 14146, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14135, "end": 14139, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14140, "end": 14146, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 14150, "end": 14154, "ctxt": 0 } } } }, "body": { "type": "ExpressionStatement", "span": { "start": 14176, "end": 14195, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 14176, "end": 14194, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 14176, "end": 14180, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 14183, "end": 14194, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14183, "end": 14187, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14188, "end": 14194, "ctxt": 0 }, "value": "Parent", "optional": false } } } } }, { "type": "IfStatement", "span": { "start": 14213, "end": 14494, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 14217, "end": 14251, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14217, "end": 14238, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 14217, "end": 14221, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 14222, "end": 14238, "ctxt": 0 }, "value": "CanIndentComment", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14239, "end": 14244, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14246, "end": 14250, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 14253, "end": 14364, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 14275, "end": 14346, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 14275, "end": 14345, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 14275, "end": 14290, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 14293, "end": 14345, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14293, "end": 14339, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14293, "end": 14297, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14298, "end": 14339, "ctxt": 0 }, "value": "GetEffectiveChildrenIndentationForComment", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 14340, "end": 14344, "ctxt": 0 } } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 14386, "end": 14494, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 14408, "end": 14476, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 14408, "end": 14475, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 14408, "end": 14423, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 14426, "end": 14475, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 14426, "end": 14462, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 14426, "end": 14430, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 14431, "end": 14462, "ctxt": 0 }, "value": "ApplyIndentationDeltaFromParent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14463, "end": 14468, "ctxt": 0 }, "value": "token", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 14470, "end": 14474, "ctxt": 0 }, "value": "node", "optional": false } } ], "typeArguments": null } } } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 14522, "end": 14545, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 14529, "end": 14544, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 13714, "end": 13731, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 13716, "end": 13731, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 13716, "end": 13731, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 14565, "end": 16244, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 14573, "end": 14589, "ctxt": 0 }, "value": "CanIndentComment", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 14590, "end": 14606, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 14590, "end": 14606, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 14595, "end": 14606, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 14597, "end": 14606, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 14597, "end": 14606, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 14608, "end": 14623, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 14608, "end": 14623, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 14612, "end": 14623, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 14614, "end": 14623, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 14614, "end": 14623, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 14565, "end": 16244, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 14634, "end": 16244, "ctxt": 0 }, "stmts": [ { "type": "SwitchStatement", "span": { "start": 14648, "end": 16207, "ctxt": 0 }, "discriminant": { "type": "MemberExpression", "span": { "start": 14656, "end": 14684, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 14656, "end": 14679, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 14656, "end": 14671, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14656, "end": 14660, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14661, "end": 14671, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 14672, "end": 14679, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 14680, "end": 14684, "ctxt": 0 }, "value": "Kind", "optional": false } }, "cases": [ { "type": "SwitchCase", "span": { "start": 14704, "end": 14738, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14709, "end": 14737, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14709, "end": 14728, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14729, "end": 14737, "ctxt": 0 }, "value": "apnkProg", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14755, "end": 14790, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14760, "end": 14789, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14760, "end": 14779, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14780, "end": 14789, "ctxt": 0 }, "value": "apnkBlock", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14807, "end": 14843, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14812, "end": 14842, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14812, "end": 14831, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14832, "end": 14842, "ctxt": 0 }, "value": "apnkSwitch", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14860, "end": 14894, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14865, "end": 14893, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14865, "end": 14884, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14885, "end": 14893, "ctxt": 0 }, "value": "apnkCase", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14911, "end": 14952, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14916, "end": 14951, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14916, "end": 14935, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14936, "end": 14951, "ctxt": 0 }, "value": "apnkDefaultCase", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 14969, "end": 15001, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 14974, "end": 15000, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 14974, "end": 14993, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 14994, "end": 15000, "ctxt": 0 }, "value": "apnkIf", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15018, "end": 15051, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15023, "end": 15050, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15023, "end": 15042, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15043, "end": 15050, "ctxt": 0 }, "value": "apnkFor", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15068, "end": 15103, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15073, "end": 15102, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15073, "end": 15092, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15093, "end": 15102, "ctxt": 0 }, "value": "apnkForIn", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15120, "end": 15155, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15125, "end": 15154, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15125, "end": 15144, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15145, "end": 15154, "ctxt": 0 }, "value": "apnkWhile", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15172, "end": 15206, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15177, "end": 15205, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15177, "end": 15196, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15197, "end": 15205, "ctxt": 0 }, "value": "apnkWith", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15223, "end": 15260, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15228, "end": 15259, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15228, "end": 15247, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15248, "end": 15259, "ctxt": 0 }, "value": "apnkDoWhile", "optional": false } }, "consequent": [] }, { "type": "SwitchCase", "span": { "start": 15277, "end": 15346, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15282, "end": 15312, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15282, "end": 15301, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15302, "end": 15312, "ctxt": 0 }, "value": "apnkObject", "optional": false } }, "consequent": [ { "type": "ReturnStatement", "span": { "start": 15334, "end": 15346, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 15341, "end": 15345, "ctxt": 0 }, "value": true } } ] }, { "type": "SwitchCase", "span": { "start": 15364, "end": 16193, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 15369, "end": 15400, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15369, "end": 15388, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15389, "end": 15400, "ctxt": 0 }, "value": "apnkFncDecl", "optional": false } }, "consequent": [ { "type": "VariableDeclaration", "span": { "start": 15795, "end": 15813, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 15799, "end": 15812, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 15799, "end": 15805, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "init": { "type": "BooleanLiteral", "span": { "start": 15808, "end": 15812, "ctxt": 0 }, "value": true }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 15834, "end": 15930, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 15838, "end": 15929, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 15838, "end": 15846, "ctxt": 0 }, "value": "children", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 15849, "end": 15929, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 15849, "end": 15889, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15849, "end": 15868, "ctxt": 0 }, "value": "ParseNodeExtensions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15869, "end": 15889, "ctxt": 0 }, "value": "FindChildrenWithEdge", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 15890, "end": 15894, "ctxt": 0 }, "value": "node", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 15896, "end": 15928, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15896, "end": 15915, "ctxt": 0 }, "value": "AuthorParseNodeEdge", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15916, "end": 15928, "ctxt": 0 }, "value": "apneArgument", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 15951, "end": 16157, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 15951, "end": 16156, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 15951, "end": 15967, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 15951, "end": 15959, "ctxt": 0 }, "value": "children", "optional": false }, "property": { "type": "Identifier", "span": { "start": 15960, "end": 15967, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 15968, "end": 16155, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 15969, "end": 15981, "ctxt": 0 }, "value": "argumentNode", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 15986, "end": 16155, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 16012, "end": 16133, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 16016, "end": 16088, "ctxt": 0 }, "operator": "<", "left": { "type": "CallExpression", "span": { "start": 16016, "end": 16042, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 16016, "end": 16040, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 16016, "end": 16026, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 16016, "end": 16021, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 16022, "end": 16026, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 16027, "end": 16040, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "right": { "type": "MemberExpression", "span": { "start": 16045, "end": 16088, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 16045, "end": 16076, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 16045, "end": 16068, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 16045, "end": 16057, "ctxt": 0 }, "value": "argumentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 16058, "end": 16068, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 16069, "end": 16076, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 16077, "end": 16088, "ctxt": 0 }, "value": "StartOffset", "optional": false } } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 16118, "end": 16133, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 16118, "end": 16132, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 16118, "end": 16124, "ctxt": 0 }, "value": "result", "optional": false, "typeAnnotation": null }, "right": { "type": "BooleanLiteral", "span": { "start": 16127, "end": 16132, "ctxt": 0 }, "value": false } } }, "alternate": null } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ReturnStatement", "span": { "start": 16179, "end": 16193, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 16186, "end": 16192, "ctxt": 0 }, "value": "result", "optional": false } } ] } ] }, { "type": "ReturnStatement", "span": { "start": 16221, "end": 16234, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 16228, "end": 16233, "ctxt": 0 }, "value": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 14624, "end": 14633, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 14626, "end": 14633, "ctxt": 0 }, "kind": "boolean" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 16254, "end": 18907, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 16262, "end": 16289, "ctxt": 0 }, "value": "ApplyScriptBlockIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 16290, "end": 16321, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 16290, "end": 16321, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 16313, "end": 16321, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 16315, "end": 16321, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 16323, "end": 16338, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 16323, "end": 16338, "ctxt": 0 }, "value": "tree", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 16327, "end": 16338, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 16329, "end": 16338, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 16329, "end": 16338, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 16254, "end": 18907, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 16354, "end": 18907, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 16368, "end": 16458, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 16372, "end": 16433, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 16372, "end": 16403, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 16372, "end": 16395, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 16399, "end": 16403, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 16407, "end": 16433, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 16407, "end": 16425, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 16407, "end": 16411, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 16412, "end": 16425, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 16429, "end": 16433, "ctxt": 0 } } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 16451, "end": 16458, "ctxt": 0 }, "argument": null }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 16472, "end": 16556, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 16476, "end": 16555, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 16476, "end": 16498, "ctxt": 0 }, "value": "scriptBlockIndentation", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 16501, "end": 16555, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 16501, "end": 16527, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 16501, "end": 16505, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 16506, "end": 16527, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 16528, "end": 16551, "ctxt": 0 }, "value": "languageHostIndentation", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 16553, "end": 16554, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 18840, "end": 18897, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 18840, "end": 18896, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 18840, "end": 18872, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 18840, "end": 18849, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 18840, "end": 18844, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 18845, "end": 18849, "ctxt": 0 }, "value": "Root", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 18850, "end": 18872, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 18873, "end": 18895, "ctxt": 0 }, "value": "scriptBlockIndentation", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 16339, "end": 16345, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 16341, "end": 16345, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 18917, "end": 20413, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 18925, "end": 18938, "ctxt": 0 }, "value": "GetIndentEdit", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 18939, "end": 18966, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 18939, "end": 18966, "ctxt": 0 }, "value": "indentInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 18949, "end": 18966, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 18951, "end": 18966, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 18951, "end": 18966, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 18968, "end": 18994, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 18968, "end": 18994, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 18986, "end": 18994, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 18988, "end": 18994, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 18996, "end": 19019, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 18996, "end": 19019, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 19010, "end": 19019, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 19012, "end": 19019, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 18917, "end": 20413, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 19035, "end": 20413, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 19049, "end": 19130, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19053, "end": 19129, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19053, "end": 19063, "ctxt": 0 }, "value": "indentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19066, "end": 19129, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19066, "end": 19092, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19066, "end": 19070, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19071, "end": 19092, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 19093, "end": 19110, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19093, "end": 19103, "ctxt": 0 }, "value": "indentInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19104, "end": 19110, "ctxt": 0 }, "value": "Prefix", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 19112, "end": 19128, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19112, "end": 19122, "ctxt": 0 }, "value": "indentInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19123, "end": 19128, "ctxt": 0 }, "value": "Level", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 19144, "end": 20377, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 19148, "end": 19162, "ctxt": 0 }, "value": "sameLineIndent", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 19164, "end": 19255, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 19182, "end": 19241, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 19189, "end": 19240, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 19193, "end": 19205, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19206, "end": 19224, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 19226, "end": 19227, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19229, "end": 19239, "ctxt": 0 }, "value": "indentText", "optional": false } } ], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 19273, "end": 20377, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 19291, "end": 19364, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19295, "end": 19363, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19295, "end": 19307, "ctxt": 0 }, "value": "snapshotLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19310, "end": 19363, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19310, "end": 19343, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 19310, "end": 19323, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19310, "end": 19314, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19315, "end": 19323, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 19324, "end": 19343, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19344, "end": 19362, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 19381, "end": 19495, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19385, "end": 19494, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19385, "end": 19402, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 19405, "end": 19494, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 19409, "end": 19413, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 19414, "end": 19442, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19414, "end": 19440, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19414, "end": 19426, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19427, "end": 19440, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 19444, "end": 19493, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 19444, "end": 19462, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 19465, "end": 19493, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19465, "end": 19491, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19465, "end": 19477, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19478, "end": 19491, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 19512, "end": 19577, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19516, "end": 19576, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19516, "end": 19533, "ctxt": 0 }, "value": "currentIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19536, "end": 19576, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19536, "end": 19557, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 19536, "end": 19549, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19536, "end": 19540, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19541, "end": 19549, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 19550, "end": 19557, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19558, "end": 19575, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 19595, "end": 20363, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 19599, "end": 19631, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 19599, "end": 19616, "ctxt": 0 }, "value": "currentIndentText", "optional": false }, "right": { "type": "Identifier", "span": { "start": 19621, "end": 19631, "ctxt": 0 }, "value": "indentText", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 19633, "end": 20363, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 19655, "end": 20233, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 19659, "end": 19678, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19659, "end": 19676, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 19659, "end": 19670, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 19659, "end": 19663, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 19664, "end": 19670, "ctxt": 0 }, "value": "logger", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 19671, "end": 19676, "ctxt": 0 }, "value": "debug", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 19680, "end": 20233, "ctxt": 0 }, "stmts": [ { "type": "ForStatement", "span": { "start": 19782, "end": 20211, "ctxt": 0 }, "init": { "type": "VariableDeclaration", "span": { "start": 19787, "end": 19828, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19791, "end": 19796, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19791, "end": 19792, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 19795, "end": 19796, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false }, { "type": "VariableDeclarator", "span": { "start": 19798, "end": 19828, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19798, "end": 19801, "ctxt": 0 }, "value": "len", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 19804, "end": 19828, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19804, "end": 19821, "ctxt": 0 }, "value": "currentIndentText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19822, "end": 19828, "ctxt": 0 }, "value": "length", "optional": false } }, "definite": false } ] }, "test": { "type": "BinaryExpression", "span": { "start": 19830, "end": 19837, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 19830, "end": 19831, "ctxt": 0 }, "value": "i", "optional": false }, "right": { "type": "Identifier", "span": { "start": 19834, "end": 19837, "ctxt": 0 }, "value": "len", "optional": false } }, "update": { "type": "UpdateExpression", "span": { "start": 19839, "end": 19842, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 19839, "end": 19840, "ctxt": 0 }, "value": "i", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 19844, "end": 20211, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 19874, "end": 19914, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 19878, "end": 19913, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 19878, "end": 19879, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 19882, "end": 19913, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19882, "end": 19910, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19882, "end": 19899, "ctxt": 0 }, "value": "currentIndentText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19900, "end": 19910, "ctxt": 0 }, "value": "charCodeAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19911, "end": 19912, "ctxt": 0 }, "value": "i", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 19943, "end": 20185, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 19947, "end": 19975, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 19948, "end": 19975, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 19948, "end": 19972, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 19948, "end": 19959, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 19960, "end": 19972, "ctxt": 0 }, "value": "IsWhiteSpace", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 19973, "end": 19974, "ctxt": 0 }, "value": "c", "optional": false } } ], "typeArguments": null } }, "consequent": { "type": "BlockStatement", "span": { "start": 19977, "end": 20185, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 20011, "end": 20116, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 20011, "end": 20115, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20011, "end": 20021, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20011, "end": 20016, "ctxt": 0 }, "value": "Debug", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20017, "end": 20021, "ctxt": 0 }, "value": "Fail", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 20022, "end": 20114, "ctxt": 0 }, "operator": "+", "left": { "type": "StringLiteral", "span": { "start": 20022, "end": 20089, "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": 20092, "end": 20114, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20092, "end": 20112, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20092, "end": 20104, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20105, "end": 20112, "ctxt": 0 }, "value": "getText", "optional": false } }, "arguments": [], "typeArguments": null } } } ], "typeArguments": null } }, { "type": "BreakStatement", "span": { "start": 20149, "end": 20155, "ctxt": 0 }, "label": null } ] }, "alternate": null } ] } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 20254, "end": 20345, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 20261, "end": 20344, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 20265, "end": 20277, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 20278, "end": 20303, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20278, "end": 20301, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20278, "end": 20295, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20296, "end": 20301, "ctxt": 0 }, "value": "start", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 20305, "end": 20331, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20305, "end": 20329, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20305, "end": 20322, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20323, "end": 20329, "ctxt": 0 }, "value": "length", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 20333, "end": 20343, "ctxt": 0 }, "value": "indentText", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null } ] } }, { "type": "ReturnStatement", "span": { "start": 20391, "end": 20403, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 20398, "end": 20402, "ctxt": 0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 19020, "end": 19034, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 19022, "end": 19034, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 19022, "end": 19034, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 20423, "end": 21525, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 20431, "end": 20452, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 20453, "end": 20480, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 20453, "end": 20480, "ctxt": 0 }, "value": "existingIndentation", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 20472, "end": 20480, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 20474, "end": 20480, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 20482, "end": 20495, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 20482, "end": 20495, "ctxt": 0 }, "value": "level", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 20487, "end": 20495, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 20489, "end": 20495, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 20423, "end": 21525, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 20505, "end": 21525, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 20519, "end": 20566, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20523, "end": 20565, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20523, "end": 20533, "ctxt": 0 }, "value": "indentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 20536, "end": 20565, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 20536, "end": 20554, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 20536, "end": 20540, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 20541, "end": 20554, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 20555, "end": 20565, "ctxt": 0 }, "value": "IndentSize", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 20579, "end": 20620, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20583, "end": 20619, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20583, "end": 20590, "ctxt": 0 }, "value": "tabSize", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 20593, "end": 20619, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 20593, "end": 20611, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 20593, "end": 20597, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 20598, "end": 20611, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 20612, "end": 20619, "ctxt": 0 }, "value": "TabSize", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 20633, "end": 20698, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20637, "end": 20697, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20637, "end": 20656, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 20659, "end": 20697, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 20659, "end": 20677, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 20659, "end": 20663, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 20664, "end": 20677, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 20678, "end": 20697, "ctxt": 0 }, "value": "ConvertTabsToSpaces", "optional": false } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 20712, "end": 21351, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 20716, "end": 20725, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 20716, "end": 20721, "ctxt": 0 }, "value": "level", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 20724, "end": 20725, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, "consequent": { "type": "BlockStatement", "span": { "start": 20727, "end": 21351, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 20745, "end": 20827, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 20749, "end": 20795, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20749, "end": 20774, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20749, "end": 20760, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20761, "end": 20774, "ctxt": 0 }, "value": "IsNullOrEmpty", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 20775, "end": 20794, "ctxt": 0 }, "value": "existingIndentation", "optional": false } } ], "typeArguments": null }, "consequent": { "type": "ReturnStatement", "span": { "start": 20817, "end": 20827, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 20824, "end": 20826, "ctxt": 0 }, "value": "", "raw": "\"\"" } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 20845, "end": 20865, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20849, "end": 20864, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20849, "end": 20860, "ctxt": 0 }, "value": "totalIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 20863, "end": 20864, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 20882, "end": 21098, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 20882, "end": 21097, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 20882, "end": 20901, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 20882, "end": 20893, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 20894, "end": 20901, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 20902, "end": 20921, "ctxt": 0 }, "value": "existingIndentation", "optional": false } }, { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 20923, "end": 21096, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 20924, "end": 20925, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 20930, "end": 21096, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 20952, "end": 21078, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 20956, "end": 20965, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 20956, "end": 20957, "ctxt": 0 }, "value": "c", "optional": false }, "right": { "type": "StringLiteral", "span": { "start": 20961, "end": 20965, "ctxt": 0 }, "value": "\t", "raw": "'\\t'" } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 20991, "end": 21014, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 20991, "end": 21013, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 20991, "end": 21002, "ctxt": 0 }, "value": "totalIndent", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 21006, "end": 21013, "ctxt": 0 }, "value": "tabSize", "optional": false } } }, "alternate": { "type": "ExpressionStatement", "span": { "start": 21064, "end": 21078, "ctxt": 0 }, "expression": { "type": "UpdateExpression", "span": { "start": 21064, "end": 21077, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 21064, "end": 21075, "ctxt": 0 }, "value": "totalIndent", "optional": false } } } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 21116, "end": 21150, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 21116, "end": 21149, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 21116, "end": 21127, "ctxt": 0 }, "value": "totalIndent", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 21131, "end": 21149, "ctxt": 0 }, "operator": "*", "left": { "type": "Identifier", "span": { "start": 21131, "end": 21136, "ctxt": 0 }, "value": "level", "optional": false }, "right": { "type": "Identifier", "span": { "start": 21139, "end": 21149, "ctxt": 0 }, "value": "indentSize", "optional": false } } } }, { "type": "IfStatement", "span": { "start": 21167, "end": 21337, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 21171, "end": 21186, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 21171, "end": 21182, "ctxt": 0 }, "value": "totalIndent", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 21185, "end": 21186, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, "consequent": { "type": "ReturnStatement", "span": { "start": 21208, "end": 21218, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 21215, "end": 21217, "ctxt": 0 }, "value": "", "raw": "\"\"" } }, "alternate": { "type": "ReturnStatement", "span": { "start": 21260, "end": 21337, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 21267, "end": 21336, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21267, "end": 21287, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 21267, "end": 21271, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 21272, "end": 21287, "ctxt": 0 }, "value": "GetIndentString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 21288, "end": 21292, "ctxt": 0 } } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21294, "end": 21305, "ctxt": 0 }, "value": "totalIndent", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21307, "end": 21314, "ctxt": 0 }, "value": "tabSize", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21316, "end": 21335, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false } } ], "typeArguments": null } } } ] }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 21365, "end": 21406, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21369, "end": 21405, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21369, "end": 21384, "ctxt": 0 }, "value": "totalIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 21387, "end": 21405, "ctxt": 0 }, "operator": "*", "left": { "type": "Identifier", "span": { "start": 21387, "end": 21392, "ctxt": 0 }, "value": "level", "optional": false }, "right": { "type": "Identifier", "span": { "start": 21395, "end": 21405, "ctxt": 0 }, "value": "indentSize", "optional": false } }, "definite": false } ] }, { "type": "ReturnStatement", "span": { "start": 21419, "end": 21515, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 21426, "end": 21514, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21426, "end": 21446, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 21426, "end": 21430, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 21431, "end": 21446, "ctxt": 0 }, "value": "GetIndentString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21447, "end": 21466, "ctxt": 0 }, "value": "existingIndentation", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21468, "end": 21483, "ctxt": 0 }, "value": "totalIndentSize", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21485, "end": 21492, "ctxt": 0 }, "value": "tabSize", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21494, "end": 21513, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 20496, "end": 20504, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 20498, "end": 20504, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 21535, "end": 22250, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 21543, "end": 21558, "ctxt": 0 }, "value": "GetIndentString", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 21559, "end": 21573, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21559, "end": 21573, "ctxt": 0 }, "value": "prefix", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21565, "end": 21573, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21567, "end": 21573, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 21575, "end": 21598, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21575, "end": 21598, "ctxt": 0 }, "value": "totalIndentSize", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21590, "end": 21598, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21592, "end": 21598, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 21600, "end": 21615, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21600, "end": 21615, "ctxt": 0 }, "value": "tabSize", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21607, "end": 21615, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21609, "end": 21615, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 21617, "end": 21645, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 21617, "end": 21645, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21636, "end": 21645, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21638, "end": 21645, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 21535, "end": 22250, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 21655, "end": 22250, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 21669, "end": 21747, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21673, "end": 21746, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21673, "end": 21682, "ctxt": 0 }, "value": "tabString", "optional": false, "typeAnnotation": null }, "init": { "type": "ConditionalExpression", "span": { "start": 21685, "end": 21746, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 21685, "end": 21704, "ctxt": 0 }, "value": "convertTabsToSpaces", "optional": false }, "consequent": { "type": "CallExpression", "span": { "start": 21707, "end": 21739, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21707, "end": 21725, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 21707, "end": 21718, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 21719, "end": 21725, "ctxt": 0 }, "value": "create", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 21726, "end": 21729, "ctxt": 0 }, "value": " ", "raw": "' '" } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21731, "end": 21738, "ctxt": 0 }, "value": "tabSize", "optional": false } } ], "typeArguments": null }, "alternate": { "type": "StringLiteral", "span": { "start": 21742, "end": 21746, "ctxt": 0 }, "value": "\t", "raw": "\"\\t\"" } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 21761, "end": 21775, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21765, "end": 21774, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21765, "end": 21769, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "init": { "type": "StringLiteral", "span": { "start": 21772, "end": 21774, "ctxt": 0 }, "value": "", "raw": "\"\"" }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 21788, "end": 21859, "ctxt": 0 }, "test": { "type": "UnaryExpression", "span": { "start": 21792, "end": 21826, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 21793, "end": 21826, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 21793, "end": 21818, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 21793, "end": 21804, "ctxt": 0 }, "value": "StringUtils", "optional": false }, "property": { "type": "Identifier", "span": { "start": 21805, "end": 21818, "ctxt": 0 }, "value": "IsNullOrEmpty", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 21819, "end": 21825, "ctxt": 0 }, "value": "prefix", "optional": false } } ], "typeArguments": null } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 21844, "end": 21859, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 21844, "end": 21858, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 21844, "end": 21848, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 21852, "end": 21858, "ctxt": 0 }, "value": "prefix", "optional": false } } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 21873, "end": 21885, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 21877, "end": 21884, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 21877, "end": 21880, "ctxt": 0 }, "value": "pos", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 21883, "end": 21884, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 21935, "end": 22058, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 21942, "end": 21974, "ctxt": 0 }, "operator": "<=", "left": { "type": "Identifier", "span": { "start": 21942, "end": 21945, "ctxt": 0 }, "value": "pos", "optional": false }, "right": { "type": "BinaryExpression", "span": { "start": 21949, "end": 21974, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 21949, "end": 21964, "ctxt": 0 }, "value": "totalIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 21967, "end": 21974, "ctxt": 0 }, "value": "tabSize", "optional": false } } }, "body": { "type": "BlockStatement", "span": { "start": 21976, "end": 22058, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 21994, "end": 22012, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 21994, "end": 22011, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 21994, "end": 21998, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 22002, "end": 22011, "ctxt": 0 }, "value": "tabString", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 22029, "end": 22044, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22029, "end": 22043, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 22029, "end": 22032, "ctxt": 0 }, "value": "pos", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 22036, "end": 22043, "ctxt": 0 }, "value": "tabSize", "optional": false } } } ] } }, { "type": "WhileStatement", "span": { "start": 22117, "end": 22214, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22124, "end": 22145, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 22124, "end": 22127, "ctxt": 0 }, "value": "pos", "optional": false }, "right": { "type": "Identifier", "span": { "start": 22130, "end": 22145, "ctxt": 0 }, "value": "totalIndentSize", "optional": false } }, "body": { "type": "BlockStatement", "span": { "start": 22147, "end": 22214, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 22165, "end": 22177, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22165, "end": 22176, "ctxt": 0 }, "operator": "+=", "left": { "type": "Identifier", "span": { "start": 22165, "end": 22169, "ctxt": 0 }, "value": "text", "optional": false, "typeAnnotation": null }, "right": { "type": "StringLiteral", "span": { "start": 22173, "end": 22176, "ctxt": 0 }, "value": " ", "raw": "' '" } } }, { "type": "ExpressionStatement", "span": { "start": 22194, "end": 22200, "ctxt": 0 }, "expression": { "type": "UpdateExpression", "span": { "start": 22194, "end": 22199, "ctxt": 0 }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "span": { "start": 22194, "end": 22197, "ctxt": 0 }, "value": "pos", "optional": false } } } ] } }, { "type": "ReturnStatement", "span": { "start": 22228, "end": 22240, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 22235, "end": 22239, "ctxt": 0 }, "value": "text", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 21646, "end": 21654, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 21648, "end": 21654, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 22260, "end": 23130, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 22269, "end": 22300, "ctxt": 0 }, "value": "ApplyIndentationDeltaFromParent", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 22301, "end": 22317, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 22301, "end": 22317, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 22306, "end": 22317, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22308, "end": 22317, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22308, "end": 22317, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 22319, "end": 22334, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 22319, "end": 22334, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 22323, "end": 22334, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22325, "end": 22334, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22325, "end": 22334, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 22260, "end": 23130, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 22353, "end": 23130, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 22367, "end": 22411, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 22371, "end": 22410, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 22371, "end": 22386, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 22386, "end": 22403, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22388, "end": 22403, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22388, "end": 22403, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 22406, "end": 22410, "ctxt": 0 } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 22425, "end": 22453, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 22429, "end": 22452, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 22429, "end": 22445, "ctxt": 0 }, "value": "indentableParent", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 22448, "end": 22452, "ctxt": 0 }, "value": "node", "optional": false }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 22466, "end": 22591, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22473, "end": 22530, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 22473, "end": 22497, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 22473, "end": 22489, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 22493, "end": 22497, "ctxt": 0 } } }, "right": { "type": "UnaryExpression", "span": { "start": 22501, "end": 22530, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 22502, "end": 22530, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22502, "end": 22528, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22502, "end": 22518, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22519, "end": 22528, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } } }, "body": { "type": "ExpressionStatement", "span": { "start": 22548, "end": 22591, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22548, "end": 22590, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 22548, "end": 22564, "ctxt": 0 }, "value": "indentableParent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 22567, "end": 22590, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22567, "end": 22583, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22584, "end": 22590, "ctxt": 0 }, "value": "Parent", "optional": false } } } } }, { "type": "IfStatement", "span": { "start": 22605, "end": 23083, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22609, "end": 22709, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 22609, "end": 22633, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 22609, "end": 22625, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 22629, "end": 22633, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 22637, "end": 22709, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 22637, "end": 22677, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22637, "end": 22672, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22637, "end": 22664, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22637, "end": 22653, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22654, "end": 22664, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22665, "end": 22672, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22673, "end": 22677, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 22681, "end": 22709, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22681, "end": 22700, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22701, "end": 22709, "ctxt": 0 }, "value": "apnkProg", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 22711, "end": 23083, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 22729, "end": 22864, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 22733, "end": 22863, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 22733, "end": 22759, "ctxt": 0 }, "value": "parentIndentationDeltaSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 22762, "end": 22863, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22762, "end": 22786, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 22762, "end": 22766, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 22767, "end": 22786, "ctxt": 0 }, "value": "GetIndentationDelta", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 22787, "end": 22834, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22787, "end": 22822, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22787, "end": 22814, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22787, "end": 22803, "ctxt": 0 }, "value": "indentableParent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22804, "end": 22814, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22815, "end": 22822, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22823, "end": 22834, "ctxt": 0 }, "value": "StartOffset", "optional": false } } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 22836, "end": 22862, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22836, "end": 22860, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22836, "end": 22846, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22836, "end": 22841, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 22842, "end": 22846, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 22847, "end": 22860, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 22881, "end": 23069, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 22885, "end": 22925, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 22885, "end": 22911, "ctxt": 0 }, "value": "parentIndentationDeltaSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 22916, "end": 22925, "ctxt": 0 }, "value": "undefined", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 22927, "end": 23069, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 22949, "end": 23051, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 22949, "end": 23050, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 22949, "end": 22964, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 22967, "end": 23050, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22967, "end": 22994, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 22967, "end": 22971, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 22972, "end": 22994, "ctxt": 0 }, "value": "ApplyIndentationDelta1", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 22995, "end": 23021, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 22995, "end": 23019, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 22995, "end": 23005, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 22995, "end": 23000, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23001, "end": 23005, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 23006, "end": 23019, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23023, "end": 23049, "ctxt": 0 }, "value": "parentIndentationDeltaSize", "optional": false } } ], "typeArguments": null } } } ] }, "alternate": null } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 23097, "end": 23120, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 23104, "end": 23119, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 22335, "end": 22352, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 22337, "end": 22352, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 22337, "end": 22352, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 23140, "end": 23715, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 23148, "end": 23170, "ctxt": 0 }, "value": "ApplyIndentationDelta1", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 23171, "end": 23197, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23171, "end": 23197, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23189, "end": 23197, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23191, "end": 23197, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 23199, "end": 23212, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23199, "end": 23212, "ctxt": 0 }, "value": "delta", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23204, "end": 23212, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23206, "end": 23212, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 23140, "end": 23715, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 23231, "end": 23715, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 23284, "end": 23357, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23288, "end": 23356, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23288, "end": 23300, "ctxt": 0 }, "value": "snapshotLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 23303, "end": 23356, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23303, "end": 23336, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 23303, "end": 23316, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23303, "end": 23307, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23308, "end": 23316, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 23317, "end": 23336, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23337, "end": 23355, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 23370, "end": 23484, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23374, "end": 23483, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23374, "end": 23391, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 23394, "end": 23483, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 23398, "end": 23402, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 23403, "end": 23431, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23403, "end": 23429, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 23403, "end": 23415, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23416, "end": 23429, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 23433, "end": 23482, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 23433, "end": 23451, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 23454, "end": 23482, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23454, "end": 23480, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 23454, "end": 23466, "ctxt": 0 }, "value": "snapshotLine", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23467, "end": 23480, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 23497, "end": 23558, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23501, "end": 23557, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23501, "end": 23514, "ctxt": 0 }, "value": "currentIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 23517, "end": 23557, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23517, "end": 23538, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 23517, "end": 23530, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23517, "end": 23521, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23522, "end": 23530, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 23531, "end": 23538, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23539, "end": 23556, "ctxt": 0 }, "value": "currentIndentSpan", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ReturnStatement", "span": { "start": 23648, "end": 23705, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 23655, "end": 23704, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23655, "end": 23682, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23655, "end": 23659, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23660, "end": 23682, "ctxt": 0 }, "value": "ApplyIndentationDelta2", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23683, "end": 23696, "ctxt": 0 }, "value": "currentIndent", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23698, "end": 23703, "ctxt": 0 }, "value": "delta", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 23213, "end": 23230, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 23215, "end": 23230, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 23215, "end": 23230, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 23725, "end": 24410, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 23733, "end": 23755, "ctxt": 0 }, "value": "ApplyIndentationDelta2", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 23756, "end": 23777, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23756, "end": 23777, "ctxt": 0 }, "value": "currentIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23769, "end": 23777, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23771, "end": 23777, "ctxt": 0 }, "kind": "string" } } } }, { "type": "Parameter", "span": { "start": 23779, "end": 23792, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 23779, "end": 23792, "ctxt": 0 }, "value": "delta", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 23784, "end": 23792, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23786, "end": 23792, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 23725, "end": 24410, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 23811, "end": 24410, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 23825, "end": 23869, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 23829, "end": 23839, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 23829, "end": 23834, "ctxt": 0 }, "value": "delta", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 23838, "end": 23839, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, "consequent": { "type": "ReturnStatement", "span": { "start": 23857, "end": 23869, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 23864, "end": 23868, "ctxt": 0 } } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 23883, "end": 23979, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23887, "end": 23978, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23887, "end": 23904, "ctxt": 0 }, "value": "currentIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 23907, "end": 23978, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 23907, "end": 23943, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 23907, "end": 23915, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 23916, "end": 23943, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 23944, "end": 23957, "ctxt": 0 }, "value": "currentIndent", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 23959, "end": 23977, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 23959, "end": 23963, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 23964, "end": 23977, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 23993, "end": 24039, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 23997, "end": 24038, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 23997, "end": 24010, "ctxt": 0 }, "value": "newIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 24013, "end": 24038, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 24013, "end": 24030, "ctxt": 0 }, "value": "currentIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 24033, "end": 24038, "ctxt": 0 }, "value": "delta", "optional": false } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24052, "end": 24125, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24056, "end": 24073, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 24056, "end": 24069, "ctxt": 0 }, "value": "newIndentSize", "optional": false }, "right": { "type": "NumericLiteral", "span": { "start": 24072, "end": 24073, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, "consequent": { "type": "BlockStatement", "span": { "start": 24075, "end": 24125, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 24093, "end": 24111, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 24093, "end": 24110, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 24093, "end": 24106, "ctxt": 0 }, "value": "newIndentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 24109, "end": 24110, "ctxt": 0 }, "value": 0.0, "raw": "0" } } } ] }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 24139, "end": 24265, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 24143, "end": 24264, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 24143, "end": 24152, "ctxt": 0 }, "value": "newIndent", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 24155, "end": 24264, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24155, "end": 24175, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24155, "end": 24159, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24160, "end": 24175, "ctxt": 0 }, "value": "GetIndentString", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 24176, "end": 24180, "ctxt": 0 } } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24182, "end": 24195, "ctxt": 0 }, "value": "newIndentSize", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 24197, "end": 24223, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24197, "end": 24215, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24197, "end": 24201, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24202, "end": 24215, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24216, "end": 24223, "ctxt": 0 }, "value": "TabSize", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 24225, "end": 24263, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24225, "end": 24243, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24225, "end": 24229, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24230, "end": 24243, "ctxt": 0 }, "value": "editorOptions", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24244, "end": 24263, "ctxt": 0 }, "value": "ConvertTabsToSpaces", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24278, "end": 24374, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24282, "end": 24299, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 24282, "end": 24291, "ctxt": 0 }, "value": "newIndent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 24295, "end": 24299, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 24301, "end": 24374, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 24319, "end": 24360, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 24326, "end": 24359, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 24330, "end": 24345, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24346, "end": 24355, "ctxt": 0 }, "value": "newIndent", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 24357, "end": 24358, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ], "typeArguments": null } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 24388, "end": 24400, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 24395, "end": 24399, "ctxt": 0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 23793, "end": 23810, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 23795, "end": 23810, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 23795, "end": 23810, "ctxt": 0 }, "value": "IndentationInfo", "optional": false }, "typeParams": null } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 24420, "end": 27403, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 24428, "end": 24447, "ctxt": 0 }, "value": "GetIndentationDelta", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 24448, "end": 24474, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 24448, "end": 24474, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 24466, "end": 24474, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 24468, "end": 24474, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 24476, "end": 24507, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 24476, "end": 24507, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 24499, "end": 24507, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 24501, "end": 24507, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 24420, "end": 27403, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 24527, "end": 27403, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 24541, "end": 24650, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 24541, "end": 24649, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24541, "end": 24553, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 24541, "end": 24546, "ctxt": 0 }, "value": "Debug", "optional": false }, "property": { "type": "Identifier", "span": { "start": 24547, "end": 24553, "ctxt": 0 }, "value": "Assert", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 24554, "end": 24591, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 24554, "end": 24577, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false }, "right": { "type": "Identifier", "span": { "start": 24582, "end": 24591, "ctxt": 0 }, "value": "undefined", "optional": false } } }, { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 24593, "end": 24648, "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": 24664, "end": 24749, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 24668, "end": 24748, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 24668, "end": 24688, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 24691, "end": 24748, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24691, "end": 24728, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24691, "end": 24719, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24691, "end": 24695, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24696, "end": 24719, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24720, "end": 24728, "ctxt": 0 }, "value": "GetValue", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24729, "end": 24747, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24762, "end": 27351, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24766, "end": 24795, "ctxt": 0 }, "operator": "===", "left": { "type": "Identifier", "span": { "start": 24766, "end": 24786, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 24791, "end": 24795, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 24797, "end": 27351, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 24815, "end": 24887, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 24819, "end": 24886, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 24819, "end": 24833, "ctxt": 0 }, "value": "indentEditInfo", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 24836, "end": 24886, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 24836, "end": 24866, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 24836, "end": 24855, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 24836, "end": 24840, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 24841, "end": 24855, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 24856, "end": 24866, "ctxt": 0 }, "value": "FindIndent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 24867, "end": 24885, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 24961, "end": 25021, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 24965, "end": 24987, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 24965, "end": 24979, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 24983, "end": 24987, "ctxt": 0 } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 25009, "end": 25021, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 25016, "end": 25020, "ctxt": 0 } } }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 25039, "end": 25162, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25043, "end": 25161, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25043, "end": 25057, "ctxt": 0 }, "value": "origIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25060, "end": 25161, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25060, "end": 25081, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 25060, "end": 25073, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 25060, "end": 25064, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 25065, "end": 25073, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 25074, "end": 25081, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 25082, "end": 25160, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 25086, "end": 25090, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 25091, "end": 25124, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25091, "end": 25105, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25106, "end": 25124, "ctxt": 0 }, "value": "OrigIndentPosition", "optional": false } } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 25126, "end": 25159, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25126, "end": 25157, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25126, "end": 25140, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25141, "end": 25157, "ctxt": 0 }, "value": "OrigIndentLength", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 25179, "end": 25228, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25183, "end": 25227, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25183, "end": 25196, "ctxt": 0 }, "value": "newIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25199, "end": 25227, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25199, "end": 25225, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25199, "end": 25213, "ctxt": 0 }, "value": "indentEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25214, "end": 25225, "ctxt": 0 }, "value": "Indentation", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 25246, "end": 25365, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25250, "end": 25364, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25250, "end": 25264, "ctxt": 0 }, "value": "origIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25267, "end": 25364, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25267, "end": 25297, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25267, "end": 25275, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25276, "end": 25297, "ctxt": 0 }, "value": "GetIndentSizeFromText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 25298, "end": 25312, "ctxt": 0 }, "value": "origIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 25314, "end": 25332, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 25314, "end": 25318, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 25319, "end": 25332, "ctxt": 0 }, "value": "editorOptions", "optional": false } } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 25359, "end": 25363, "ctxt": 0 }, "value": true } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 25382, "end": 25474, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 25386, "end": 25473, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 25386, "end": 25399, "ctxt": 0 }, "value": "newIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 25402, "end": 25473, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 25402, "end": 25438, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 25402, "end": 25410, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 25411, "end": 25438, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 25439, "end": 25452, "ctxt": 0 }, "value": "newIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 25454, "end": 25472, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 25454, "end": 25458, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 25459, "end": 25472, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 26535, "end": 27173, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 26539, "end": 26571, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 26539, "end": 26562, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 26567, "end": 26571, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 26573, "end": 27173, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 26595, "end": 26704, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 26599, "end": 26703, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 26599, "end": 26626, "ctxt": 0 }, "value": "childTokenLineStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 26629, "end": 26703, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26629, "end": 26701, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 26629, "end": 26687, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26629, "end": 26662, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 26629, "end": 26642, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 26629, "end": 26633, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 26634, "end": 26642, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 26643, "end": 26662, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 26663, "end": 26686, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 26688, "end": 26701, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 26725, "end": 26863, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 26729, "end": 26862, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 26729, "end": 26744, "ctxt": 0 }, "value": "childIndentText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 26747, "end": 26862, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26747, "end": 26768, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 26747, "end": 26760, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 26747, "end": 26751, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 26752, "end": 26760, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 26761, "end": 26768, "ctxt": 0 }, "value": "GetText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 26769, "end": 26861, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 26773, "end": 26777, "ctxt": 0 }, "value": "Span", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 26778, "end": 26805, "ctxt": 0 }, "value": "childTokenLineStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 26807, "end": 26860, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 26807, "end": 26830, "ctxt": 0 }, "value": "childTokenStartPosition", "optional": false }, "right": { "type": "Identifier", "span": { "start": 26833, "end": 26860, "ctxt": 0 }, "value": "childTokenLineStartPosition", "optional": false } } } ], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 26885, "end": 26981, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 26889, "end": 26980, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 26889, "end": 26904, "ctxt": 0 }, "value": "childIndentSize", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 26907, "end": 26980, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 26907, "end": 26943, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 26907, "end": 26915, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 26916, "end": 26943, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 26944, "end": 26959, "ctxt": 0 }, "value": "childIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 26961, "end": 26979, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 26961, "end": 26965, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 26966, "end": 26979, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 27003, "end": 27155, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 27007, "end": 27039, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 27007, "end": 27022, "ctxt": 0 }, "value": "childIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 27025, "end": 27039, "ctxt": 0 }, "value": "origIndentSize", "optional": false } }, "consequent": { "type": "ExpressionStatement", "span": { "start": 27065, "end": 27155, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27065, "end": 27154, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27065, "end": 27079, "ctxt": 0 }, "value": "origIndentSize", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 27082, "end": 27154, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 27082, "end": 27118, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27082, "end": 27090, "ctxt": 0 }, "value": "Indenter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27091, "end": 27118, "ctxt": 0 }, "value": "GetIndentSizeFromIndentText", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 27119, "end": 27133, "ctxt": 0 }, "value": "origIndentText", "optional": false } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 27135, "end": 27153, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 27135, "end": 27139, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 27140, "end": 27153, "ctxt": 0 }, "value": "editorOptions", "optional": false } } } ], "typeArguments": null } } }, "alternate": null } ] }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 27191, "end": 27245, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27191, "end": 27244, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27191, "end": 27211, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 27214, "end": 27244, "ctxt": 0 }, "operator": "-", "left": { "type": "Identifier", "span": { "start": 27214, "end": 27227, "ctxt": 0 }, "value": "newIndentSize", "optional": false }, "right": { "type": "Identifier", "span": { "start": 27230, "end": 27244, "ctxt": 0 }, "value": "origIndentSize", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 27262, "end": 27337, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 27262, "end": 27336, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 27262, "end": 27294, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27262, "end": 27290, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 27262, "end": 27266, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 27267, "end": 27290, "ctxt": 0 }, "value": "offsetIndentationDeltas", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27291, "end": 27294, "ctxt": 0 }, "value": "Add", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 27295, "end": 27313, "ctxt": 0 }, "value": "tokenStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 27315, "end": 27335, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false } } ], "typeArguments": null } } ] }, "alternate": null }, { "type": "ReturnStatement", "span": { "start": 27365, "end": 27393, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 27372, "end": 27392, "ctxt": 0 }, "value": "indentationDeltaSize", "optional": false } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 24513, "end": 24521, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 24515, "end": 24521, "ctxt": 0 }, "kind": "number" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 27413, "end": 32327, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 27421, "end": 27445, "ctxt": 0 }, "value": "FillInheritedIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 27446, "end": 27461, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 27446, "end": 27461, "ctxt": 0 }, "value": "tree", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 27450, "end": 27461, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 27452, "end": 27461, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 27452, "end": 27461, "ctxt": 0 }, "value": "ParseTree", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 27413, "end": 32327, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 27477, "end": 32327, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 27491, "end": 27507, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 27495, "end": 27506, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 27495, "end": 27501, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": null }, "init": { "type": "UnaryExpression", "span": { "start": 27504, "end": 27506, "ctxt": 0 }, "operator": "-", "argument": { "type": "NumericLiteral", "span": { "start": 27505, "end": 27506, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 27520, "end": 27553, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 27524, "end": 27552, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 27524, "end": 27534, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 27534, "end": 27545, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 27536, "end": 27545, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 27536, "end": 27545, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 27548, "end": 27552, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 27567, "end": 30598, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 27571, "end": 27597, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 27571, "end": 27589, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27571, "end": 27575, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27576, "end": 27589, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 27593, "end": 27597, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 27599, "end": 30598, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 27617, "end": 30584, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 27621, "end": 27768, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 27621, "end": 27724, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 27621, "end": 27680, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 27621, "end": 27638, "ctxt": 0 }, "operator": "!", "argument": { "type": "MemberExpression", "span": { "start": 27622, "end": 27638, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 27622, "end": 27626, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 27627, "end": 27638, "ctxt": 0 }, "value": "smartIndent", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 27642, "end": 27680, "ctxt": 0 }, "operator": "!==", "left": { "type": "MemberExpression", "span": { "start": 27642, "end": 27671, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27642, "end": 27646, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27647, "end": 27671, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 27676, "end": 27680, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 27684, "end": 27724, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 27684, "end": 27719, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27684, "end": 27713, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27684, "end": 27702, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27684, "end": 27688, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27689, "end": 27702, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27703, "end": 27713, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27714, "end": 27719, "ctxt": 0 }, "value": "Label", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 27723, "end": 27724, "ctxt": 0 }, "value": 0.0, "raw": "0" } } }, "right": { "type": "BinaryExpression", "span": { "start": 27728, "end": 27768, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 27728, "end": 27763, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27728, "end": 27757, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27728, "end": 27732, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27733, "end": 27757, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27758, "end": 27763, "ctxt": 0 }, "value": "Label", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 27767, "end": 27768, "ctxt": 0 }, "value": 0.0, "raw": "0" } } }, "consequent": { "type": "BlockStatement", "span": { "start": 27770, "end": 28726, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 27792, "end": 27824, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27792, "end": 27823, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27792, "end": 27802, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 27805, "end": 27823, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27805, "end": 27809, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27810, "end": 27823, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 27845, "end": 27904, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 27845, "end": 27903, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 27845, "end": 27851, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 27854, "end": 27903, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27854, "end": 27891, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 27854, "end": 27883, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 27854, "end": 27858, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 27859, "end": 27883, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27884, "end": 27891, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 27892, "end": 27903, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, { "type": "VariableDeclaration", "span": { "start": 28207, "end": 28269, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 28211, "end": 28268, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 28211, "end": 28218, "ctxt": 0 }, "value": "lineNum", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 28221, "end": 28268, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 28221, "end": 28260, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28221, "end": 28234, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 28221, "end": 28225, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 28226, "end": 28234, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28235, "end": 28260, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 28261, "end": 28267, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 28290, "end": 28312, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 28294, "end": 28311, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 28294, "end": 28298, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 28301, "end": 28311, "ctxt": 0 }, "value": "indentNode", "optional": false }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 28333, "end": 28708, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 28340, "end": 28457, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 28340, "end": 28359, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 28340, "end": 28351, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28340, "end": 28344, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28345, "end": 28351, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 28355, "end": 28359, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 28363, "end": 28457, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 28363, "end": 28446, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 28363, "end": 28402, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28363, "end": 28376, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 28363, "end": 28367, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 28368, "end": 28376, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28377, "end": 28402, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 28403, "end": 28445, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28403, "end": 28433, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28403, "end": 28425, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 28403, "end": 28414, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28403, "end": 28407, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28408, "end": 28414, "ctxt": 0 }, "value": "Parent", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28415, "end": 28425, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28426, "end": 28433, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 28434, "end": 28445, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "right": { "type": "Identifier", "span": { "start": 28450, "end": 28457, "ctxt": 0 }, "value": "lineNum", "optional": false } } }, "body": { "type": "BlockStatement", "span": { "start": 28459, "end": 28708, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 28485, "end": 28504, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 28485, "end": 28503, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 28485, "end": 28489, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 28492, "end": 28503, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28492, "end": 28496, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28497, "end": 28503, "ctxt": 0 }, "value": "Parent", "optional": false } } } }, { "type": "IfStatement", "span": { "start": 28529, "end": 28686, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 28533, "end": 28549, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 28533, "end": 28547, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28533, "end": 28537, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28538, "end": 28547, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 28551, "end": 28686, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 28581, "end": 28599, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 28581, "end": 28598, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 28581, "end": 28591, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 28594, "end": 28598, "ctxt": 0 }, "value": "node", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 28628, "end": 28660, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 28628, "end": 28659, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 28628, "end": 28655, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 28628, "end": 28638, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 28639, "end": 28655, "ctxt": 0 }, "value": "IndentationDelta", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 28658, "end": 28659, "ctxt": 0 }, "value": 0.0, "raw": "0" } } } ] }, "alternate": null } ] } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 28748, "end": 30584, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 28770, "end": 28792, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 28774, "end": 28791, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 28774, "end": 28780, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 28780, "end": 28791, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 28782, "end": 28791, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 28782, "end": 28791, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 28875, "end": 30010, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 28879, "end": 28895, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 28879, "end": 28883, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 28884, "end": 28895, "ctxt": 0 }, "value": "smartIndent", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 28897, "end": 29399, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 29169, "end": 29197, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29169, "end": 29196, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29169, "end": 29175, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29178, "end": 29196, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29178, "end": 29182, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29183, "end": 29196, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } } } }, { "type": "WhileStatement", "span": { "start": 29222, "end": 29377, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 29229, "end": 29324, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 29229, "end": 29243, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 29229, "end": 29235, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 29239, "end": 29243, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 29247, "end": 29324, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 29247, "end": 29284, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29247, "end": 29272, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29247, "end": 29264, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29247, "end": 29253, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29254, "end": 29264, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29265, "end": 29272, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29273, "end": 29284, "ctxt": 0 }, "value": "StartOffset", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 29288, "end": 29324, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 29288, "end": 29322, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29288, "end": 29308, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29288, "end": 29303, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 29288, "end": 29292, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 29293, "end": 29303, "ctxt": 0 }, "value": "firstToken", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29304, "end": 29308, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29309, "end": 29322, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } }, "body": { "type": "ExpressionStatement", "span": { "start": 29354, "end": 29377, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29354, "end": 29376, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29354, "end": 29360, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29363, "end": 29376, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29363, "end": 29369, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29370, "end": 29376, "ctxt": 0 }, "value": "Parent", "optional": false } } } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 29425, "end": 30010, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 29547, "end": 29664, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 29551, "end": 29663, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 29551, "end": 29570, "ctxt": 0 }, "value": "startNodeLineNumber", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 29573, "end": 29663, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 29573, "end": 29612, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29573, "end": 29586, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 29573, "end": 29577, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 29578, "end": 29586, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29587, "end": 29612, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 29613, "end": 29662, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29613, "end": 29650, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29613, "end": 29642, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29613, "end": 29631, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29613, "end": 29617, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29618, "end": 29631, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29632, "end": 29642, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29643, "end": 29650, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29651, "end": 29662, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 29689, "end": 29724, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29689, "end": 29723, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29689, "end": 29695, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29698, "end": 29723, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29698, "end": 29716, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29698, "end": 29702, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29703, "end": 29716, "ctxt": 0 }, "value": "StartNodeSelf", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29717, "end": 29723, "ctxt": 0 }, "value": "Parent", "optional": false } } } }, { "type": "WhileStatement", "span": { "start": 29749, "end": 29988, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 29756, "end": 29907, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 29756, "end": 29770, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 29756, "end": 29762, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 29766, "end": 29770, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 29806, "end": 29907, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 29806, "end": 29825, "ctxt": 0 }, "value": "startNodeLineNumber", "optional": false }, "right": { "type": "CallExpression", "span": { "start": 29829, "end": 29907, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 29829, "end": 29868, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29829, "end": 29842, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 29829, "end": 29833, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 29834, "end": 29842, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29843, "end": 29868, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 29869, "end": 29906, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29869, "end": 29894, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 29869, "end": 29886, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29869, "end": 29875, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29876, "end": 29886, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29887, "end": 29894, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 29895, "end": 29906, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null } } }, "body": { "type": "BlockStatement", "span": { "start": 29909, "end": 29988, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 29939, "end": 29962, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 29939, "end": 29961, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 29939, "end": 29945, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 29948, "end": 29961, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 29948, "end": 29954, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 29955, "end": 29961, "ctxt": 0 }, "value": "Parent", "optional": false } } } } ] } } ] } }, { "type": "WhileStatement", "span": { "start": 30137, "end": 30254, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30144, "end": 30181, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 30144, "end": 30158, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 30144, "end": 30150, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 30154, "end": 30158, "ctxt": 0 } } }, "right": { "type": "UnaryExpression", "span": { "start": 30162, "end": 30181, "ctxt": 0 }, "operator": "!", "argument": { "type": "CallExpression", "span": { "start": 30163, "end": 30181, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30163, "end": 30179, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30163, "end": 30169, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30170, "end": 30179, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null } } }, "body": { "type": "BlockStatement", "span": { "start": 30183, "end": 30254, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 30209, "end": 30232, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 30209, "end": 30231, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 30209, "end": 30215, "ctxt": 0 }, "value": "parent", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 30218, "end": 30231, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30218, "end": 30224, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30225, "end": 30231, "ctxt": 0 }, "value": "Parent", "optional": false } } } } ] } }, { "type": "IfStatement", "span": { "start": 30340, "end": 30566, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30344, "end": 30424, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 30344, "end": 30358, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 30344, "end": 30350, "ctxt": 0 }, "value": "parent", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 30354, "end": 30358, "ctxt": 0 } } }, "right": { "type": "BinaryExpression", "span": { "start": 30362, "end": 30424, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 30362, "end": 30392, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30362, "end": 30387, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30362, "end": 30379, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30362, "end": 30368, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30369, "end": 30379, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30380, "end": 30387, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30388, "end": 30392, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 30396, "end": 30424, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30396, "end": 30415, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30416, "end": 30424, "ctxt": 0 }, "value": "apnkProg", "optional": false } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 30426, "end": 30566, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 30452, "end": 30499, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 30452, "end": 30498, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 30452, "end": 30458, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 30461, "end": 30498, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30461, "end": 30486, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 30461, "end": 30478, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30461, "end": 30467, "ctxt": 0 }, "value": "parent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30468, "end": 30478, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30479, "end": 30486, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 30487, "end": 30498, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 30524, "end": 30544, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 30524, "end": 30543, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 30524, "end": 30534, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 30537, "end": 30543, "ctxt": 0 }, "value": "parent", "optional": false } } } ] }, "alternate": null } ] } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 30612, "end": 32317, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30616, "end": 30634, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 30616, "end": 30626, "ctxt": 0 }, "value": "indentNode", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 30630, "end": 30634, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 30636, "end": 32317, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 30654, "end": 30716, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 30658, "end": 30715, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 30658, "end": 30672, "ctxt": 0 }, "value": "indentOverride", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 30675, "end": 30715, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30675, "end": 30707, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 30675, "end": 30679, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 30680, "end": 30707, "ctxt": 0 }, "value": "GetLineIndentationForOffset", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 30708, "end": 30714, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 30822, "end": 31266, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 30826, "end": 30914, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 30826, "end": 30885, "ctxt": 0 }, "operator": "&&", "left": { "type": "UnaryExpression", "span": { "start": 30826, "end": 30843, "ctxt": 0 }, "operator": "!", "argument": { "type": "MemberExpression", "span": { "start": 30827, "end": 30843, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 30827, "end": 30831, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 30832, "end": 30843, "ctxt": 0 }, "value": "smartIndent", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 30847, "end": 30885, "ctxt": 0 }, "operator": "!==", "left": { "type": "MemberExpression", "span": { "start": 30847, "end": 30876, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30847, "end": 30851, "ctxt": 0 }, "value": "tree", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30852, "end": 30876, "ctxt": 0 }, "value": "StartNodePreviousSibling", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 30881, "end": 30885, "ctxt": 0 } } } }, "right": { "type": "BinaryExpression", "span": { "start": 30889, "end": 30914, "ctxt": 0 }, "operator": "!=", "left": { "type": "MemberExpression", "span": { "start": 30889, "end": 30906, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30889, "end": 30899, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30900, "end": 30906, "ctxt": 0 }, "value": "Parent", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 30910, "end": 30914, "ctxt": 0 } } } }, "consequent": { "type": "BlockStatement", "span": { "start": 30916, "end": 31266, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 30938, "end": 31248, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 30938, "end": 31247, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30938, "end": 30996, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 30938, "end": 30988, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 30938, "end": 30969, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30938, "end": 30957, "ctxt": 0 }, "value": "ParseNodeExtensions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30958, "end": 30969, "ctxt": 0 }, "value": "GetChildren", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 30970, "end": 30987, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30970, "end": 30980, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 30981, "end": 30987, "ctxt": 0 }, "value": "Parent", "optional": false } } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 30989, "end": 30996, "ctxt": 0 }, "value": "foreach", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 30997, "end": 31246, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 30998, "end": 31005, "ctxt": 0 }, "value": "sibling", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 31010, "end": 31246, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 31036, "end": 31224, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 31040, "end": 31062, "ctxt": 0 }, "operator": "!==", "left": { "type": "Identifier", "span": { "start": 31040, "end": 31047, "ctxt": 0 }, "value": "sibling", "optional": false }, "right": { "type": "Identifier", "span": { "start": 31052, "end": 31062, "ctxt": 0 }, "value": "indentNode", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 31064, "end": 31224, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 31094, "end": 31198, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 31098, "end": 31117, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31098, "end": 31115, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31098, "end": 31105, "ctxt": 0 }, "value": "sibling", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31106, "end": 31115, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "ExpressionStatement", "span": { "start": 31151, "end": 31198, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 31151, "end": 31197, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31151, "end": 31181, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31151, "end": 31158, "ctxt": 0 }, "value": "sibling", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31159, "end": 31181, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 31182, "end": 31196, "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": 31442, "end": 31460, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 31446, "end": 31459, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 31446, "end": 31455, "ctxt": 0 }, "value": "lastDelta", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 31458, "end": 31459, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 31477, "end": 31575, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 31481, "end": 31574, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 31481, "end": 31489, "ctxt": 0 }, "value": "lastLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 31492, "end": 31574, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31492, "end": 31531, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31492, "end": 31505, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 31492, "end": 31496, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 31497, "end": 31505, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31506, "end": 31531, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 31532, "end": 31573, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31532, "end": 31561, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31532, "end": 31553, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31532, "end": 31542, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31543, "end": 31553, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31554, "end": 31561, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31562, "end": 31573, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "DoWhileStatement", "span": { "start": 31592, "end": 32303, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 32283, "end": 32301, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 32283, "end": 32293, "ctxt": 0 }, "value": "indentNode", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 32297, "end": 32301, "ctxt": 0 } } }, "body": { "type": "BlockStatement", "span": { "start": 31595, "end": 32259, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 31617, "end": 31718, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 31621, "end": 31717, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 31621, "end": 31632, "ctxt": 0 }, "value": "currentLine", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 31635, "end": 31717, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31635, "end": 31674, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31635, "end": 31648, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 31635, "end": 31639, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 31640, "end": 31648, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31649, "end": 31674, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 31675, "end": 31716, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31675, "end": 31704, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 31675, "end": 31696, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31675, "end": 31685, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 31686, "end": 31696, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31697, "end": 31704, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 31705, "end": 31716, "ctxt": 0 }, "value": "StartOffset", "optional": false } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 31739, "end": 31975, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 31743, "end": 31766, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 31743, "end": 31751, "ctxt": 0 }, "value": "lastLine", "optional": false }, "right": { "type": "Identifier", "span": { "start": 31755, "end": 31766, "ctxt": 0 }, "value": "currentLine", "optional": false } }, "consequent": { "type": "BlockStatement", "span": { "start": 31768, "end": 31975, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 31794, "end": 31817, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 31794, "end": 31816, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 31794, "end": 31802, "ctxt": 0 }, "value": "lastLine", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 31805, "end": 31816, "ctxt": 0 }, "value": "currentLine", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 31842, "end": 31914, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 31842, "end": 31913, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 31842, "end": 31856, "ctxt": 0 }, "value": "indentOverride", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 31859, "end": 31913, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 31859, "end": 31885, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 31859, "end": 31863, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 31864, "end": 31885, "ctxt": 0 }, "value": "ApplyIndentationLevel", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 31886, "end": 31900, "ctxt": 0 }, "value": "indentOverride", "optional": false } }, { "spread": null, "expression": { "type": "UnaryExpression", "span": { "start": 31902, "end": 31912, "ctxt": 0 }, "operator": "-", "argument": { "type": "Identifier", "span": { "start": 31903, "end": 31912, "ctxt": 0 }, "value": "lastDelta", "optional": false } } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 31939, "end": 31953, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 31939, "end": 31952, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 31939, "end": 31948, "ctxt": 0 }, "value": "lastDelta", "optional": false, "typeAnnotation": null }, "right": { "type": "NumericLiteral", "span": { "start": 31951, "end": 31952, "ctxt": 0 }, "value": 0.0, "raw": "0" } } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 31997, "end": 32188, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 32001, "end": 32023, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32001, "end": 32021, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32001, "end": 32011, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32012, "end": 32021, "ctxt": 0 }, "value": "CanIndent", "optional": false } }, "arguments": [], "typeArguments": null }, "consequent": { "type": "BlockStatement", "span": { "start": 32025, "end": 32188, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 32051, "end": 32101, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 32051, "end": 32100, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32051, "end": 32084, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32051, "end": 32061, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32062, "end": 32084, "ctxt": 0 }, "value": "SetIndentationOverride", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 32085, "end": 32099, "ctxt": 0 }, "value": "indentOverride", "optional": false } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 32126, "end": 32166, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 32126, "end": 32165, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 32126, "end": 32135, "ctxt": 0 }, "value": "lastDelta", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 32138, "end": 32165, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32138, "end": 32148, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32149, "end": 32165, "ctxt": 0 }, "value": "IndentationDelta", "optional": false } } } } ] }, "alternate": null }, { "type": "ExpressionStatement", "span": { "start": 32210, "end": 32241, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 32210, "end": 32240, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 32210, "end": 32220, "ctxt": 0 }, "value": "indentNode", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 32223, "end": 32240, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32223, "end": 32233, "ctxt": 0 }, "value": "indentNode", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32234, "end": 32240, "ctxt": 0 }, "value": "Parent", "optional": false } } } } ] } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 27462, "end": 27468, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 27464, "end": 27468, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 32337, "end": 33198, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 32344, "end": 32371, "ctxt": 0 }, "value": "GetLineIndentationForOffset", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 32372, "end": 32386, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 32372, "end": 32386, "ctxt": 0 }, "value": "offset", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 32378, "end": 32386, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 32380, "end": 32386, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 32337, "end": 33198, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 32396, "end": 33198, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 32410, "end": 32451, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32414, "end": 32450, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32414, "end": 32429, "ctxt": 0 }, "value": "indentationEdit", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 32429, "end": 32450, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 32431, "end": 32450, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 32431, "end": 32450, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 32551, "end": 32608, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 32551, "end": 32607, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 32551, "end": 32566, "ctxt": 0 }, "value": "indentationEdit", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 32569, "end": 32607, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32569, "end": 32599, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 32569, "end": 32588, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 32569, "end": 32573, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 32574, "end": 32588, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 32589, "end": 32599, "ctxt": 0 }, "value": "FindIndent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 32600, "end": 32606, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null } } }, { "type": "IfStatement", "span": { "start": 32621, "end": 33188, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 32625, "end": 32648, "ctxt": 0 }, "operator": "!=", "left": { "type": "Identifier", "span": { "start": 32625, "end": 32640, "ctxt": 0 }, "value": "indentationEdit", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 32644, "end": 32648, "ctxt": 0 } } }, "consequent": { "type": "BlockStatement", "span": { "start": 32650, "end": 32719, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 32668, "end": 32705, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 32675, "end": 32704, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32675, "end": 32702, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32675, "end": 32690, "ctxt": 0 }, "value": "indentationEdit", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32691, "end": 32702, "ctxt": 0 }, "value": "Indentation", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 32737, "end": 33188, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 32825, "end": 32878, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32829, "end": 32877, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32829, "end": 32833, "ctxt": 0 }, "value": "line", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 32836, "end": 32877, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32836, "end": 32869, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 32836, "end": 32849, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 32836, "end": 32840, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 32841, "end": 32849, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 32850, "end": 32869, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 32870, "end": 32876, "ctxt": 0 }, "value": "offset", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 32895, "end": 32925, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32899, "end": 32924, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32899, "end": 32907, "ctxt": 0 }, "value": "lineText", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 32910, "end": 32924, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 32910, "end": 32922, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32910, "end": 32914, "ctxt": 0 }, "value": "line", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32915, "end": 32922, "ctxt": 0 }, "value": "getText", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 32942, "end": 32956, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 32946, "end": 32955, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32946, "end": 32951, "ctxt": 0 }, "value": "index", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 32954, "end": 32955, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "definite": false } ] }, { "type": "WhileStatement", "span": { "start": 32974, "end": 33123, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 32981, "end": 33073, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 32981, "end": 33004, "ctxt": 0 }, "operator": "<", "left": { "type": "Identifier", "span": { "start": 32981, "end": 32986, "ctxt": 0 }, "value": "index", "optional": false }, "right": { "type": "MemberExpression", "span": { "start": 32989, "end": 33004, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 32989, "end": 32997, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 32998, "end": 33004, "ctxt": 0 }, "value": "length", "optional": false } } }, "right": { "type": "ParenthesisExpression", "span": { "start": 33008, "end": 33073, "ctxt": 0 }, "expression": { "type": "BinaryExpression", "span": { "start": 33009, "end": 33072, "ctxt": 0 }, "operator": "||", "left": { "type": "BinaryExpression", "span": { "start": 33009, "end": 33038, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 33009, "end": 33031, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33009, "end": 33024, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33009, "end": 33017, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33018, "end": 33024, "ctxt": 0 }, "value": "charAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33025, "end": 33030, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 33035, "end": 33038, "ctxt": 0 }, "value": " ", "raw": "' '" } }, "right": { "type": "BinaryExpression", "span": { "start": 33042, "end": 33072, "ctxt": 0 }, "operator": "==", "left": { "type": "CallExpression", "span": { "start": 33042, "end": 33064, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33042, "end": 33057, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33042, "end": 33050, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33051, "end": 33057, "ctxt": 0 }, "value": "charAt", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33058, "end": 33063, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null }, "right": { "type": "StringLiteral", "span": { "start": 33068, "end": 33072, "ctxt": 0 }, "value": "\t", "raw": "'\\t'" } } } } }, "body": { "type": "BlockStatement", "span": { "start": 33075, "end": 33123, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 33097, "end": 33105, "ctxt": 0 }, "expression": { "type": "UpdateExpression", "span": { "start": 33097, "end": 33104, "ctxt": 0 }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "span": { "start": 33099, "end": 33104, "ctxt": 0 }, "value": "index", "optional": false } } } ] } }, { "type": "ReturnStatement", "span": { "start": 33141, "end": 33174, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 33148, "end": 33173, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33148, "end": 33163, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33148, "end": 33156, "ctxt": 0 }, "value": "lineText", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33157, "end": 33163, "ctxt": 0 }, "value": "substr", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 33164, "end": 33165, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33167, "end": 33172, "ctxt": 0 }, "value": "index", "optional": false } } ], "typeArguments": null } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 32387, "end": 32395, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 32389, "end": 32395, "ctxt": 0 }, "kind": "string" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 33208, "end": 34042, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 33216, "end": 33235, "ctxt": 0 }, "value": "RegisterIndentation", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 33236, "end": 33256, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 33236, "end": 33256, "ctxt": 0 }, "value": "indent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33242, "end": 33256, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 33244, "end": 33256, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 33244, "end": 33256, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 33258, "end": 33281, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 33258, "end": 33281, "ctxt": 0 }, "value": "sameLineIndent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33272, "end": 33281, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 33274, "end": 33281, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 33208, "end": 34042, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 33297, "end": 34042, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 33311, "end": 33359, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 33315, "end": 33358, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 33315, "end": 33330, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33330, "end": 33351, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 33332, "end": 33351, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 33332, "end": 33351, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "typeParams": null } } }, "init": { "type": "NullLiteral", "span": { "start": 33354, "end": 33358, "ctxt": 0 } }, "definite": false } ] }, { "type": "IfStatement", "span": { "start": 33373, "end": 33971, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 33377, "end": 33391, "ctxt": 0 }, "value": "sameLineIndent", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 33393, "end": 33871, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 33552, "end": 33643, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 33556, "end": 33642, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 33556, "end": 33573, "ctxt": 0 }, "value": "lineStartPosition", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 33576, "end": 33642, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33576, "end": 33640, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 33576, "end": 33626, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33576, "end": 33609, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 33576, "end": 33589, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 33576, "end": 33580, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 33581, "end": 33589, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 33590, "end": 33609, "ctxt": 0 }, "value": "GetLineFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 33610, "end": 33625, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33610, "end": 33616, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33617, "end": 33625, "ctxt": 0 }, "value": "Position", "optional": false } } } ], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 33627, "end": 33640, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 33660, "end": 33719, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 33664, "end": 33718, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 33664, "end": 33680, "ctxt": 0 }, "value": "lineIndentLength", "optional": false, "typeAnnotation": null }, "init": { "type": "BinaryExpression", "span": { "start": 33683, "end": 33718, "ctxt": 0 }, "operator": "-", "left": { "type": "MemberExpression", "span": { "start": 33683, "end": 33698, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33683, "end": 33689, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33690, "end": 33698, "ctxt": 0 }, "value": "Position", "optional": false } }, "right": { "type": "Identifier", "span": { "start": 33701, "end": 33718, "ctxt": 0 }, "value": "lineStartPosition", "optional": false } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 33737, "end": 33857, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 33737, "end": 33856, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 33737, "end": 33752, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "CallExpression", "span": { "start": 33755, "end": 33856, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33755, "end": 33782, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33755, "end": 33774, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33775, "end": 33782, "ctxt": 0 }, "value": "create2", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 33783, "end": 33798, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33783, "end": 33789, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33790, "end": 33798, "ctxt": 0 }, "value": "Position", "optional": false } } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 33800, "end": 33818, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 33800, "end": 33806, "ctxt": 0 }, "value": "indent", "optional": false }, "property": { "type": "Identifier", "span": { "start": 33807, "end": 33818, "ctxt": 0 }, "value": "ReplaceWith", "optional": false } } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33820, "end": 33837, "ctxt": 0 }, "value": "lineStartPosition", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33839, "end": 33855, "ctxt": 0 }, "value": "lineIndentLength", "optional": false } } ], "typeArguments": null } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 33889, "end": 33971, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 33907, "end": 33957, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 33907, "end": 33956, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 33907, "end": 33922, "ctxt": 0 }, "value": "indentationInfo", "optional": false, "typeAnnotation": null }, "right": { "type": "NewExpression", "span": { "start": 33925, "end": 33956, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 33929, "end": 33948, "ctxt": 0 }, "value": "IndentationEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 33949, "end": 33955, "ctxt": 0 }, "value": "indent", "optional": false } } ], "typeArguments": null } } } ] } }, { "type": "ExpressionStatement", "span": { "start": 33985, "end": 34032, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 33985, "end": 34031, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 33985, "end": 34014, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 33985, "end": 34004, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 33985, "end": 33989, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 33990, "end": 34004, "ctxt": 0 }, "value": "indentationBag", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34005, "end": 34014, "ctxt": 0 }, "value": "AddIndent", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 34015, "end": 34030, "ctxt": 0 }, "value": "indentationInfo", "optional": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 33282, "end": 33288, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 33284, "end": 33288, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 34052, "end": 34223, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 34059, "end": 34079, "ctxt": 0 }, "value": "RegisterIndentation2", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 34080, "end": 34096, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34080, "end": 34096, "ctxt": 0 }, "value": "position", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34088, "end": 34096, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34090, "end": 34096, "ctxt": 0 }, "kind": "number" } } } }, { "type": "Parameter", "span": { "start": 34098, "end": 34112, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34098, "end": 34112, "ctxt": 0 }, "value": "indent", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34104, "end": 34112, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34106, "end": 34112, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 34052, "end": 34223, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 34128, "end": 34223, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 34142, "end": 34213, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 34142, "end": 34212, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 34142, "end": 34166, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 34142, "end": 34146, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 34147, "end": 34166, "ctxt": 0 }, "value": "RegisterIndentation", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "NewExpression", "span": { "start": 34167, "end": 34204, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 34171, "end": 34183, "ctxt": 0 }, "value": "TextEditInfo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 34184, "end": 34192, "ctxt": 0 }, "value": "position", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 34194, "end": 34195, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 34197, "end": 34203, "ctxt": 0 }, "value": "indent", "optional": false } } ], "typeArguments": null } }, { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 34206, "end": 34211, "ctxt": 0 }, "value": false } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 34113, "end": 34119, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34115, "end": 34119, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "public", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 34233, "end": 35187, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 34241, "end": 34266, "ctxt": 0 }, "value": "AdjustStartOffsetIfNeeded", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 34267, "end": 34283, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34267, "end": 34283, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34272, "end": 34283, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 34274, "end": 34283, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 34274, "end": 34283, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 34285, "end": 34300, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 34285, "end": 34300, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 34289, "end": 34300, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 34291, "end": 34300, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 34291, "end": 34300, "ctxt": 0 }, "value": "ParseNode", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 34233, "end": 35187, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 34316, "end": 35187, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 34330, "end": 34372, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 34334, "end": 34347, "ctxt": 0 }, "operator": "==", "left": { "type": "Identifier", "span": { "start": 34334, "end": 34339, "ctxt": 0 }, "value": "token", "optional": false }, "right": { "type": "NullLiteral", "span": { "start": 34343, "end": 34347, "ctxt": 0 } } }, "consequent": { "type": "ReturnStatement", "span": { "start": 34365, "end": 34372, "ctxt": 0 }, "argument": null }, "alternate": null }, { "type": "VariableDeclaration", "span": { "start": 34386, "end": 34416, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 34390, "end": 34415, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 34390, "end": 34407, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "init": { "type": "BooleanLiteral", "span": { "start": 34410, "end": 34415, "ctxt": 0 }, "value": false }, "definite": false } ] }, { "type": "SwitchStatement", "span": { "start": 34430, "end": 35007, "ctxt": 0 }, "discriminant": { "type": "MemberExpression", "span": { "start": 34438, "end": 34449, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34438, "end": 34443, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34444, "end": 34449, "ctxt": 0 }, "value": "Token", "optional": false } }, "cases": [ { "type": "SwitchCase", "span": { "start": 34469, "end": 34634, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 34474, "end": 34501, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34474, "end": 34489, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34490, "end": 34501, "ctxt": 0 }, "value": "atkFunction", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 34523, "end": 34607, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 34523, "end": 34606, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 34523, "end": 34540, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 34543, "end": 34606, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 34543, "end": 34571, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34543, "end": 34566, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34543, "end": 34558, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34543, "end": 34547, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34548, "end": 34558, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34559, "end": 34566, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34567, "end": 34571, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 34575, "end": 34606, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34575, "end": 34594, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34595, "end": 34606, "ctxt": 0 }, "value": "apnkFncDecl", "optional": false } } } } }, { "type": "BreakStatement", "span": { "start": 34628, "end": 34634, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 34652, "end": 34814, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 34657, "end": 34682, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34657, "end": 34672, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34673, "end": 34682, "ctxt": 0 }, "value": "atkLCurly", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 34704, "end": 34787, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 34704, "end": 34786, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 34704, "end": 34721, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 34724, "end": 34786, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 34724, "end": 34752, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34724, "end": 34747, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34724, "end": 34739, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34724, "end": 34728, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34729, "end": 34739, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34740, "end": 34747, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34748, "end": 34752, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 34756, "end": 34786, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34756, "end": 34775, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34776, "end": 34786, "ctxt": 0 }, "value": "apnkObject", "optional": false } } } } }, { "type": "BreakStatement", "span": { "start": 34808, "end": 34814, "ctxt": 0 }, "label": null } ] }, { "type": "SwitchCase", "span": { "start": 34832, "end": 34993, "ctxt": 0 }, "test": { "type": "MemberExpression", "span": { "start": 34837, "end": 34862, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34837, "end": 34852, "ctxt": 0 }, "value": "AuthorTokenKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34853, "end": 34862, "ctxt": 0 }, "value": "atkLBrack", "optional": false } }, "consequent": [ { "type": "ExpressionStatement", "span": { "start": 34884, "end": 34966, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 34884, "end": 34965, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 34884, "end": 34901, "ctxt": 0 }, "value": "updateStartOffset", "optional": false, "typeAnnotation": null }, "right": { "type": "BinaryExpression", "span": { "start": 34904, "end": 34965, "ctxt": 0 }, "operator": "==", "left": { "type": "MemberExpression", "span": { "start": 34904, "end": 34932, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34904, "end": 34927, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 34904, "end": 34919, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34904, "end": 34908, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34909, "end": 34919, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34920, "end": 34927, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 34928, "end": 34932, "ctxt": 0 }, "value": "Kind", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 34936, "end": 34965, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 34936, "end": 34955, "ctxt": 0 }, "value": "AuthorParseNodeKind", "optional": false }, "property": { "type": "Identifier", "span": { "start": 34956, "end": 34965, "ctxt": 0 }, "value": "apnkArray", "optional": false } } } } }, { "type": "BreakStatement", "span": { "start": 34987, "end": 34993, "ctxt": 0 }, "label": null } ] } ] }, { "type": "IfStatement", "span": { "start": 35021, "end": 35177, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 35025, "end": 35042, "ctxt": 0 }, "value": "updateStartOffset", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 35044, "end": 35177, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 35062, "end": 35163, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 35062, "end": 35162, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35062, "end": 35093, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35062, "end": 35081, "ctxt": 0 }, "value": "ParseNodeExtensions", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35082, "end": 35093, "ctxt": 0 }, "value": "SetNodeSpan", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 35094, "end": 35098, "ctxt": 0 }, "value": "node", "optional": false } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 35100, "end": 35126, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35100, "end": 35124, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35100, "end": 35110, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35100, "end": 35105, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35106, "end": 35110, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35111, "end": 35124, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } }, { "spread": null, "expression": { "type": "MemberExpression", "span": { "start": 35128, "end": 35161, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35128, "end": 35151, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35128, "end": 35143, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35128, "end": 35132, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35133, "end": 35143, "ctxt": 0 }, "value": "AuthorNode", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35144, "end": 35151, "ctxt": 0 }, "value": "Details", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35152, "end": 35161, "ctxt": 0 }, "value": "EndOffset", "optional": false } } } ], "typeArguments": null } } ] }, "alternate": null } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 34301, "end": 34307, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34303, "end": 34307, "ctxt": 0 }, "kind": "void" } } }, "kind": "method", "isStatic": false, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 35197, "end": 35487, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 35205, "end": 35222, "ctxt": 0 }, "value": "IsMultiLineString", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 35223, "end": 35239, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 35223, "end": 35239, "ctxt": 0 }, "value": "token", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 35228, "end": 35239, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 35230, "end": 35239, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 35230, "end": 35239, "ctxt": 0 }, "value": "TokenSpan", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 35197, "end": 35487, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 35250, "end": 35487, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 35264, "end": 35477, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 35271, "end": 35476, "ctxt": 0 }, "operator": "&&", "left": { "type": "BinaryExpression", "span": { "start": 35271, "end": 35321, "ctxt": 0 }, "operator": "===", "left": { "type": "MemberExpression", "span": { "start": 35271, "end": 35284, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35271, "end": 35276, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35277, "end": 35284, "ctxt": 0 }, "value": "tokenID", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 35289, "end": 35321, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35289, "end": 35307, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35289, "end": 35299, "ctxt": 0 }, "value": "TypeScript", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35300, "end": 35307, "ctxt": 0 }, "value": "TokenID", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35308, "end": 35321, "ctxt": 0 }, "value": "StringLiteral", "optional": false } } }, "right": { "type": "BinaryExpression", "span": { "start": 35341, "end": 35476, "ctxt": 0 }, "operator": ">", "left": { "type": "CallExpression", "span": { "start": 35341, "end": 35406, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35341, "end": 35380, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35341, "end": 35354, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 35341, "end": 35345, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 35346, "end": 35354, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35355, "end": 35380, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 35381, "end": 35405, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35381, "end": 35403, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35381, "end": 35391, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35381, "end": 35386, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35387, "end": 35391, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35392, "end": 35403, "ctxt": 0 }, "value": "endPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null }, "right": { "type": "CallExpression", "span": { "start": 35409, "end": 35476, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35409, "end": 35448, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35409, "end": 35422, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 35409, "end": 35413, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 35414, "end": 35422, "ctxt": 0 }, "value": "snapshot", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35423, "end": 35448, "ctxt": 0 }, "value": "GetLineNumberFromPosition", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 35449, "end": 35475, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 35449, "end": 35473, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 35449, "end": 35459, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 35449, "end": 35454, "ctxt": 0 }, "value": "token", "optional": false }, "property": { "type": "Identifier", "span": { "start": 35455, "end": 35459, "ctxt": 0 }, "value": "Span", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 35460, "end": 35473, "ctxt": 0 }, "value": "startPosition", "optional": false } }, "arguments": [], "typeArguments": null } } ], "typeArguments": null } } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 35240, "end": 35249, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 35242, "end": 35249, "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": 724, "end": 747, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 724, "end": 747, "ctxt": 0 }, "value": "ILineIndenationResolver", "optional": false }, "typeArguments": null } ] } } ] } } ], "interpreter": null }