Skip to content

Commit 7de1d91

Browse files
committed
Start implementing AST visitor
1 parent d59a2f4 commit 7de1d91

File tree

5 files changed

+11562
-0
lines changed

5 files changed

+11562
-0
lines changed

FSharp.Compiler.Service.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
4040
src\Compiler\FSComp.txt = src\Compiler\FSComp.txt
4141
EndProjectSection
4242
EndProject
43+
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Compiler.Service.Tests2", "tests\FSharp.Compiler.Service.Tests2\FSharp.Compiler.Service.Tests2.fsproj", "{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}"
44+
EndProject
4345
Global
4446
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4547
Debug|Any CPU = Debug|Any CPU
@@ -86,6 +88,10 @@ Global
8688
{07CD957A-3C31-4F75-A735-16CE72E1BD71}.Debug|Any CPU.Build.0 = Debug|Any CPU
8789
{07CD957A-3C31-4F75-A735-16CE72E1BD71}.Release|Any CPU.ActiveCfg = Release|Any CPU
8890
{07CD957A-3C31-4F75-A735-16CE72E1BD71}.Release|Any CPU.Build.0 = Release|Any CPU
91+
{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92+
{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
93+
{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
94+
{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}.Release|Any CPU.Build.0 = Release|Any CPU
8995
EndGlobalSection
9096
GlobalSection(SolutionProperties) = preSolution
9197
HideSolutionNode = FALSE

src/Compiler/FSharp.Compiler.Service.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
<InternalsVisibleTo Include="VisualFSharp.UnitTests" />
7575
<InternalsVisibleTo Include="FSharp.Compiler.UnitTests" />
7676
<InternalsVisibleTo Include="FSharp.Compiler.Service.Tests" />
77+
<InternalsVisibleTo Include="FSharp.Compiler.Service.Tests2" />
7778
<InternalsVisibleTo Include="HostedCompilerServer" />
7879
<InternalsVisibleTo Include="FSharp.Tests.FSharpSuite" />
7980
<InternalsVisibleTo Include="LanguageServiceProfiling" />
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
4+
<PropertyGroup>
5+
<OutputType>Exe</OutputType>
6+
<TargetFrameworks>net7.0</TargetFrameworks>
7+
<!-- Workaround to get rid of:
8+
error NU1505: Duplicate 'PackageDownload' items found.
9+
Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior.
10+
The duplicate 'PackageDownload' items are:
11+
Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2].
12+
-->
13+
<NoWarn>$(NoWarn);NU1505</NoWarn>
14+
<NoWarn>$(NoWarn);44;75;</NoWarn>
15+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
16+
<GenerateProgramFile>false</GenerateProgramFile>
17+
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
18+
<UnitTestType>nunit</UnitTestType>
19+
<RootNamespace>FSharp.Compiler.Service.Tests</RootNamespace>
20+
</PropertyGroup>
21+
22+
<ItemGroup>
23+
<Compile Include="..\service\FsUnit.fs">
24+
<Link>FsUnit.fs</Link>
25+
</Compile>
26+
<Compile Include="..\service\Common.fs">
27+
<Link>Common.fs</Link>
28+
</Compile>
29+
<Compile Include="TypeTests.fs" />
30+
<Compile Include="..\service\Program.fs">
31+
<Link>Program.fs</Link>
32+
</Compile>
33+
</ItemGroup>
34+
35+
<ItemGroup>
36+
<PackageReference Include="Dotnet.ProjInfo" Version="0.37.0" />
37+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
38+
<!-- Force a newer Newtonsoft.Json version to avoid conflicts. -->
39+
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
40+
<ProjectReference Include="..\..\src\Compiler\FSharp.Compiler.Service.fsproj" />
41+
<ProjectReference Include="..\..\tests\FSharp.Test.Utilities\FSharp.Test.Utilities.fsproj" />
42+
</ItemGroup>
43+
44+
</Project>

0 commit comments

Comments
 (0)