z_mirror/luapls

git clone https://git.raiguard.me/z_mirror/luapls

Caleb HeuerFix testsa9d7242

main
1.2 KiB58 linesraw
1[
2  {
3    "Label": "member",
4    "Input": "foo.bar = 'baz'",
5    "AST": {
6      "Type": "Block",
7      "Range": {
8        "Start": 0,
9        "End": 15
10      },
11      "Stmts": [
12        {
13          "Type": "AssignmentStatement",
14          "Range": {
15            "Start": 0,
16            "End": 15
17          },
18          "Vars": [
19            {
20              "Type": "IndexExpression",
21              "Range": {
22                "Start": 0,
23                "End": 7
24              },
25              "Left": {
26                "Type": "Identifier",
27                "Range": {
28                  "Start": 0,
29                  "End": 3
30                },
31                "Literal": "foo"
32              },
33              "Indexer": "dot",
34              "Inner": {
35                "Type": "Identifier",
36                "Range": {
37                  "Start": 4,
38                  "End": 7
39                },
40                "Literal": "bar"
41              }
42            }
43          ],
44          "Exps": [
45            {
46              "Type": "StringLiteral",
47              "Range": {
48                "Start": 10,
49                "End": 15
50              },
51              "Literal": "'baz'"
52            }
53          ]
54        }
55      ]
56    }
57  }
58]