From fc4f6a9cf6034dfb6b1f6eddbadd62ef362381a8 Mon Sep 17 00:00:00 2001 From: nojaf Date: Fri, 1 Dec 2023 08:46:11 +0100 Subject: [PATCH] Clean up ProjectCracker.fsi --- src/Fable.Compiler/ProjectCracker.fsi | 89 +-------------------------- 1 file changed, 2 insertions(+), 87 deletions(-) diff --git a/src/Fable.Compiler/ProjectCracker.fsi b/src/Fable.Compiler/ProjectCracker.fsi index 665d1e9ffb..3ed6dbf62b 100644 --- a/src/Fable.Compiler/ProjectCracker.fsi +++ b/src/Fable.Compiler/ProjectCracker.fsi @@ -2,26 +2,11 @@ /// Fable-specific tasks like tracking the sources of Fable Nuget packages module Fable.Compiler.ProjectCracker -open System -open System.Xml.Linq -open System.Text.RegularExpressions -open System.Collections.Generic open FSharp.Compiler.CodeAnalysis -open FSharp.Compiler.Text open Fable open Fable.AST open Fable.Compiler.Util -open Globbing.Operators -open Buildalyzer -// type FablePackage = -// { Id: string -// Version: string -// FsprojPath: string -// DllPath: string -// SourcePaths: string list -// Dependencies: Set } -// type CacheInfo = { Version: string @@ -39,14 +24,7 @@ type CacheInfo = SourceMaps: bool SourceMapsRoot: string option } -// -// static member GetPath: fableModulesDir: string * isDebug: bool -> string -// member GetTimestamp: unit -> DateTime -// static member TryRead: fableModulesDir: string * isDebug: bool -> CacheInfo option -// member Write: unit -> unit -// /// Checks if there's also cache info for the alternate build mode (Debug/Release) and whether is more recent -// member IsMostRecent: bool -// + type CrackerOptions = new: cliArgs: CliArgs -> CrackerOptions member NoCache: bool @@ -80,68 +58,5 @@ type CrackerResponse = PrecompiledInfo: PrecompiledInfoImpl option CanReuseCompiledFiles: bool } -// -// val isSystemPackage: pkgName: string -> bool -// -// type CrackedFsproj = -// { ProjectFile: string -// SourceFiles: string list -// ProjectReferences: string list -// DllReferences: IDictionary -// PackageReferences: FablePackage list -// OtherCompilerOptions: string list -// OutputType: string option -// TargetFramework: string } -// -// val makeProjectOptions: -// opts: CrackerOptions -> otherOptions: string seq -> sources: string array -> FSharpProjectOptions -// -// val tryGetFablePackage: opts: CrackerOptions -> dllPath: string -> FablePackage option -// val sortFablePackages: pkgs: FablePackage list -> FablePackage list -// val getBasicCompilerArgs: unit -> string array -// val MSBUILD_CONDITION: Regex -// /// Simplistic XML-parsing of .fsproj to get source files, as we cannot -// /// run `dotnet restore` on .fsproj files embedded in Nuget packages. -// val getSourcesFromFablePkg: opts: CrackerOptions -> projFile: string -> string list -// val excludeProjRef: opts: CrackerOptions -> dllRefs: IDictionary -> projRef: string -> string option -// -// val getCrackedMainFsproj: -// opts: CrackerOptions -> -// projOpts: string array * -// projRefs: string array * -// msbuildProps: IReadOnlyDictionary * -// targetFramework: string -> -// CrackedFsproj -// -// val getProjectOptionsFromScript: opts: CrackerOptions -> CrackedFsproj -// -// val getProjectOptionsFromProjectFile: -// (bool -> CrackerOptions -> string -> string array * string array * IReadOnlyDictionary * string) -// -// /// Use Buildalyzer to invoke MSBuild and get F# compiler args from an .fsproj file. -// /// As we'll merge this later with other projects we'll only take the sources and -// /// the references, checking if some .dlls correspond to Fable libraries -// val crackMainProject: opts: CrackerOptions -> CrackedFsproj -// -// /// For project references of main project, ignore dll and package references -// val crackReferenceProject: -// opts: CrackerOptions -> dllRefs: IDictionary -> projFile: string -> CrackedFsproj -// -// val getCrackedProjectsFromMainFsproj: opts: CrackerOptions -> CrackedFsproj list * CrackedFsproj -// val getCrackedProjects: opts: CrackerOptions -> CrackedFsproj list * CrackedFsproj -// val retryGetCrackedProjects: opts: CrackerOptions -> CrackedFsproj list * CrackedFsproj -// val changeFsprojToFableproj: path: string -> string -// val copyDir: replaceFsprojExt: bool -> source: string -> target: string -> unit -// val copyDirIfDoesNotExist: replaceFsprojExt: bool -> source: string -> target: string -> unit -// val getFableLibraryPath: opts: CrackerOptions -> string -// val copyFableLibraryAndPackageSources: opts: CrackerOptions -> pkgs: FablePackage list -> string * FablePackage list -// val copyFableLibraryAndPackageSourcesPy: opts: CrackerOptions -> pkgs: FablePackage list -> string * FablePackage list -// val removeFilesInObjFolder: sourceFiles: string array -> string array -// -// val loadPrecompiledInfo: -// opts: CrackerOptions -> -// otherOptions: string array -> -// sourceFiles: string array -> -// PrecompiledInfoImpl option * string array * string array -// + val getFullProjectOpts: opts: CrackerOptions -> CrackerResponse