@@ -1681,32 +1681,32 @@ end
16811681 @test length (StaticLint. loose_refs (bindingof (cst[1 ][3 ][3 ][1 ]))) == 2
16821682end
16831683
1684- @testset " test workspace packages" begin
1685- empty! (server. files)
1686- s1 = """
1687- module WorkspaceMod
1688- inner_sym = 1
1689- exported_sym = 1
1690- export exported_sym
1691- end"""
1692- f1 = StaticLint. File (" workspacemod.jl" , s1, CSTParser. parse (s1, true ), nothing , server)
1693- StaticLint. setroot (f1, f1)
1694- StaticLint. setfile (server, f1. path, f1)
1695- StaticLint. semantic_pass (f1)
1696- server. workspacepackages[" WorkspaceMod" ] = f1
1697- s2 = """
1698- using WorkspaceMod
1699- exported_sym
1700- WorkspaceMod.inner_sym
1701- """
1702- f2 = StaticLint. File (" someotherfile.jl" , s2, CSTParser. parse (s2, true ), nothing , server)
1703- StaticLint. setroot (f2, f2)
1704- StaticLint. setfile (server, f2. path, f2)
1705- StaticLint. semantic_pass (f2)
1706- @test StaticLint. hasref (StaticLint. getcst (f2)[1 ][2 ][1 ])
1707- @test StaticLint. hasref (StaticLint. getcst (f2)[2 ])
1708- @test StaticLint. hasref (StaticLint. getcst (f2)[3 ][3 ][1 ])
1709- end
1684+ # @testset "test workspace packages" begin
1685+ # empty!(server.files)
1686+ # s1 = """
1687+ # module WorkspaceMod
1688+ # inner_sym = 1
1689+ # exported_sym = 1
1690+ # export exported_sym
1691+ # end"""
1692+ # f1 = StaticLint.File("workspacemod.jl", s1, CSTParser.parse(s1, true), nothing, server)
1693+ # StaticLint.setroot(f1, f1)
1694+ # StaticLint.setfile(server, f1.path, f1)
1695+ # StaticLint.semantic_pass(f1)
1696+ # server.workspacepackages["WorkspaceMod"] = f1
1697+ # s2 = """
1698+ # using WorkspaceMod
1699+ # exported_sym
1700+ # WorkspaceMod.inner_sym
1701+ # """
1702+ # f2 = StaticLint.File("someotherfile.jl", s2, CSTParser.parse(s2, true), nothing, server)
1703+ # StaticLint.setroot(f2, f2)
1704+ # StaticLint.setfile(server, f2.path, f2)
1705+ # StaticLint.semantic_pass(f2)
1706+ # @test StaticLint.hasref(StaticLint.getcst(f2)[1][2][1])
1707+ # @test StaticLint.hasref(StaticLint.getcst(f2)[2])
1708+ # @test StaticLint.hasref(StaticLint.getcst(f2)[3][3][1])
1709+ # end
17101710@testset " #1218" begin
17111711 cst = parse_and_pass (""" function foo(a; p) a+p end
17121712 foo(1, p = true)""" )
0 commit comments