File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15
15
16
16
[compat ]
17
17
julia = " 1"
18
- CSTParser = " 3"
18
+ CSTParser = " 3.1 "
19
19
SymbolServer = " 5.1.1"
20
20
21
21
[targets ]
Original file line number Diff line number Diff line change @@ -1476,3 +1476,17 @@ end
1476
1476
""" )
1477
1477
@test ! StaticLint. haserror (cst. args[2 ])
1478
1478
end
1479
+
1480
+ @testset " reparse" begin
1481
+ cst = parse_and_pass ("""
1482
+ x = 1
1483
+ function f(arg)
1484
+ x
1485
+ end
1486
+ """ )
1487
+ @test StaticLint. hasref (cst. args[2 ]. args[2 ]. args[1 ])
1488
+ StaticLint. clear_meta (cst[2 ])
1489
+ @test ! StaticLint. hasref (cst. args[2 ]. args[2 ]. args[1 ])
1490
+ StaticLint. semantic_pass (server. files[" " ], CSTParser. EXPR[cst[2 ]])
1491
+ @test StaticLint. hasref (cst. args[2 ]. args[2 ]. args[1 ])
1492
+ end
You can’t perform that action at this time.
0 commit comments