Skip to content

Commit e11ae95

Browse files
committed
Fixed merge issues
1 parent 6150781 commit e11ae95

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"name": "FCS Test",
9898
"type": "coreclr",
9999
"request": "launch",
100-
"program": "${workspaceFolder}/artifacts/bin/fcs-test/Debug/net8.0/fcs-test.dll",
100+
"program": "${workspaceFolder}/artifacts/bin/fcs-test/Debug/net10.0/fcs-test.dll",
101101
"args": [],
102102
"cwd": "${workspaceFolder}/fcs/fcs-test",
103103
"console": "internalConsole",

buildtools/buildtools.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
BeforeTargets="CoreCompile">
2121

2222
<PropertyGroup>
23-
<FsLexPath Condition="'$(FsLexPath)' == ''">$(ArtifactsDir)\bin\fslex\Release\net9.0\linux-x64\fslex.dll</FsLexPath>
23+
<FsLexPath Condition="'$(FsLexPath)' == ''">$(ArtifactsDir)\bin\fslex\Release\net10.0\linux-x64\fslex.dll</FsLexPath>
2424
</PropertyGroup>
2525

2626
<!-- Create the output directory -->
@@ -44,7 +44,7 @@
4444
BeforeTargets="CoreCompile">
4545

4646
<PropertyGroup>
47-
<FsYaccPath Condition="'$(FsYaccPath)' == ''">$(ArtifactsDir)\bin\fsyacc\Release\net9.0\linux-x64\fsyacc.dll</FsYaccPath>
47+
<FsYaccPath Condition="'$(FsYaccPath)' == ''">$(ArtifactsDir)\bin\fsyacc\Release\net10.0\linux-x64\fsyacc.dll</FsYaccPath>
4848
</PropertyGroup>
4949

5050
<!-- Create the output directory -->

fcs/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
dotnet build -c Release buildtools/fslex
44
dotnet build -c Release buildtools/fsyacc
55
dotnet build -c Release src/Compiler
6-
dotnet run -c Release --project fcs/fcs-test
6+
dotnet run -c Release --project fcs/fcs-test/fcs-test.fsproj
77
echo "Binaries can be found here: /artifacts/bin/FSharp.Compiler.Service/Release/netstandard2.0/"

fcs/fcs-test/Program.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ open Buildalyzer
88

99
let getProjectOptionsFromProjectFile (isMain: bool) (projFile: string) =
1010

11-
let tryGetResult (isMain: bool) (manager: AnalyzerManager) (maybeCsprojFile: string) =
11+
let tryGetResult (_isMain: bool) (manager: AnalyzerManager) (maybeCsprojFile: string) =
1212

1313
let analyzer = manager.GetProject(maybeCsprojFile)
1414
let env = analyzer.EnvironmentFactory.GetBuildEnvironment(Environment.EnvironmentOptions(DesignTime=true,Restore=false))
@@ -129,7 +129,7 @@ let printAst title (projectResults: FSharpCheckProjectResults) =
129129
decls |> printfn "%s"
130130

131131
[<EntryPoint>]
132-
let main argv =
132+
let main _argv =
133133
let projName = "Project.fsproj"
134134
let fileName = __SOURCE_DIRECTORY__ + "/test_script.fsx"
135135
let fileNames = [| fileName |]

fcs/fcs-test/fcs-test.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
77
</PropertyGroup>
88

fcs/service_slim.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ module internal ParseAndCheck =
169169
let dependencyFiles = parseResults |> Seq.map (fun x -> x.DependencyFiles) |> Array.concat
170170
let getAssemblyData () = None
171171
let details = (compilerState.tcGlobals, compilerState.tcImports, tcState.Ccu, tcState.CcuSig, symbolUses, topAttrsOpt,
172-
getAssemblyData, assemblyRef, access, tcImplFilesOpt, dependencyFiles, compilerState.projectOptions)
172+
getAssemblyData, assemblyRef, access, tcImplFilesOpt, dependencyFiles, Some compilerState.projectOptions)
173173
let keepAssemblyContents = true
174174
FSharpCheckProjectResults (projectFileName, Some compilerState.tcConfig, keepAssemblyContents, errors, Some details)
175175

@@ -203,7 +203,7 @@ module internal ParseAndCheck =
203203
let input = parseResults.ParseTree
204204
let diagnosticsOptions = compilerState.tcConfig.diagnosticsOptions
205205
let capturingLogger = CompilationDiagnosticLogger("TypeCheckFile", diagnosticsOptions)
206-
let diagnosticsLogger = GetDiagnosticsLoggerFilteringByScopedPragmas(false, input.ScopedPragmas, diagnosticsOptions, capturingLogger)
206+
let diagnosticsLogger = GetDiagnosticsLoggerFilteringByScopedNowarn(diagnosticsOptions, capturingLogger)
207207
use _scope = new CompilationGlobalsScope (diagnosticsLogger, BuildPhase.TypeCheck)
208208

209209
let checkForErrors () = parseResults.ParseHadErrors || diagnosticsLogger.ErrorCount > 0
@@ -235,7 +235,7 @@ module internal ParseAndCheck =
235235
let errors = Array.append parseResults.Diagnostics tcErrors
236236

237237
let scope = TypeCheckInfo (compilerState.tcConfig, compilerState.tcGlobals, ccuSigForFile, tcState.Ccu, compilerState.tcImports, tcEnvAtEnd.AccessRights,
238-
projectFileName, fileName, compilerState.projectOptions, sink.GetResolutions(), sink.GetSymbolUses(), tcEnvAtEnd.NameEnv,
238+
projectFileName, fileName, Some compilerState.projectOptions, sink.GetResolutions(), sink.GetSymbolUses(), tcEnvAtEnd.NameEnv,
239239
loadClosure, implFile, sink.GetOpenDeclarations())
240240
FSharpCheckFileResults (fileName, errors, Some scope, parseResults.DependencyFiles, None, keepAssemblyContents)
241241

src/Compiler/Service/FSharpCheckerResults.fsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ type internal TypeCheckInfo =
256256
tcAccessRights: AccessorDomain *
257257
projectFileName: string *
258258
mainInputFileName: string *
259-
projectOptions: FSharpProjectOptions *
259+
projectOptions: FSharpProjectOptions option *
260260
sResolutions: TcResolutions *
261261
sSymbolUses: TcSymbolUses *
262262
sFallback: NameResolutionEnv *

0 commit comments

Comments
 (0)