Skip to content

Commit a26d32a

Browse files
authored
Suggested namespace rename (dotnet#6248)
* Microsoft.FSharp.Comiler --> FSharp.Compiler * Microsoft.FSharp.Build --> FSharp.Build * fix small mistakes * fix build * fix flakey test (?)
1 parent ec04e47 commit a26d32a

File tree

342 files changed

+1853
-1814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+1853
-1814
lines changed

benchmarks/CompilerServiceBenchmarks/Program.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
open System.IO
33
open BenchmarkDotNet.Attributes
44
open BenchmarkDotNet.Running
5-
open Microsoft.FSharp.Compiler.ErrorLogger
6-
open Microsoft.FSharp.Compiler.SourceCodeServices
5+
open FSharp.Compiler.ErrorLogger
6+
open FSharp.Compiler.SourceCodeServices
77
open System.Text
88

99
[<ClrJob(baseline = true)>]

fcs/FSharp.Compiler.Service.ProjectCracker/ProjectCracker.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.FSharp.Compiler.SourceCodeServices
1+
namespace FSharp.Compiler.SourceCodeServices
22

33
#if !NETSTANDARD1_6
44
open System.Runtime.Serialization.Json
@@ -69,7 +69,7 @@ type ProjectCracker =
6969
yield v
7070
|]
7171

72-
let ret, opts = Microsoft.FSharp.Compiler.SourceCodeServices.ProjectCrackerTool.ProjectCrackerTool.crackOpen arguments
72+
let ret, opts = FSharp.Compiler.SourceCodeServices.ProjectCrackerTool.ProjectCrackerTool.crackOpen arguments
7373
ignore ret
7474
#else
7575
let arguments = new StringBuilder()

fcs/FSharp.Compiler.Service.ProjectCrackerTool/Program.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.FSharp.Compiler.SourceCodeServices.ProjectCrackerTool
1+
namespace FSharp.Compiler.SourceCodeServices.ProjectCrackerTool
22

33
open System
44
open System.Reflection

fcs/FSharp.Compiler.Service.ProjectCrackerTool/ProjectCrackerOptions.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.FSharp.Compiler.SourceCodeServices.ProjectCrackerTool
1+
namespace FSharp.Compiler.SourceCodeServices.ProjectCrackerTool
22

33
[<CLIMutable>]
44
type ProjectOptions =

fcs/FSharp.Compiler.Service.ProjectCrackerTool/ProjectCrackerTool.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.FSharp.Compiler.SourceCodeServices.ProjectCrackerTool
1+
namespace FSharp.Compiler.SourceCodeServices.ProjectCrackerTool
22

33
open System
44
open System.IO

fcs/FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
<LogicalName>FSStrings.resources</LogicalName>
5858
</EmbeddedResource>
5959
<FsYacc Include="$(FSharpSourcesRoot)\absil\ilpars.fsy">
60-
<OtherFlags>--module Microsoft.FSharp.Compiler.AbstractIL.Internal.AsciiParser --open Microsoft.FSharp.Compiler.AbstractIL --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
60+
<OtherFlags>--module FSharp.Compiler.AbstractIL.Internal.AsciiParser --open FSharp.Compiler.AbstractIL --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
6161
<Link>ilpars.fsy</Link>
6262
</FsYacc>
6363
<FsYacc Include="$(FSharpSourcesRoot)\fsharp\pars.fsy">
64-
<OtherFlags>--module Microsoft.FSharp.Compiler.Parser --open Microsoft.FSharp.Compiler --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
64+
<OtherFlags>--module FSharp.Compiler.Parser --open FSharp.Compiler --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
6565
<Link>pars.fsy</Link>
6666
</FsYacc>
6767
<Compile Include="$(FSharpSourcesRoot)/fsharp/Logger.fsi">
@@ -294,7 +294,7 @@
294294
<Link>ParserAndUntypedAST/pplex.fsl</Link>
295295
</FsLex>
296296
<FsYacc Include="$(FSharpSourcesRoot)\fsharp\pppars.fsy">
297-
<OtherFlags>--module Microsoft.FSharp.Compiler.PPParser --open Microsoft.FSharp.Compiler --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
297+
<OtherFlags>--module FSharp.Compiler.PPParser --open FSharp.Compiler --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
298298
<Link>ParserAndUntypedAST/pppars.fsy</Link>
299299
</FsYacc>
300300
<Compile Include="$(FSharpSourcesRoot)/fsharp/UnicodeLexing.fsi">

fcs/docsrc/content/compiler.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ First, we need to reference the libraries that contain F# interactive service:
2929

3030
#r "FSharp.Compiler.Service.dll"
3131
open System.IO
32-
open Microsoft.FSharp.Compiler.SourceCodeServices
32+
open FSharp.Compiler.SourceCodeServices
3333

3434
// Create an interactive checker instance
3535
let checker = FSharpChecker.Create()

fcs/docsrc/content/editor.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ of `InteractiveChecker`:
2626
#r "FSharp.Compiler.Service.dll"
2727

2828
open System
29-
open Microsoft.FSharp.Compiler.SourceCodeServices
29+
open FSharp.Compiler.SourceCodeServices
3030

3131
// Create an interactive checker instance
3232
let checker = FSharpChecker.Create()
@@ -127,7 +127,7 @@ identifier (the other option lets you get tooltip with full assembly location wh
127127
128128
*)
129129
// Get tag of the IDENT token to be used as the last argument
130-
open Microsoft.FSharp.Compiler
130+
open FSharp.Compiler
131131
let identToken = FSharpTokenTag.Identifier
132132

133133
// Get tool tip at the specified location

fcs/docsrc/content/filesystem.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ open System
2121
open System.IO
2222
open System.Collections.Generic
2323
open System.Text
24-
open Microsoft.FSharp.Compiler.AbstractIL.Internal.Library
24+
open FSharp.Compiler.AbstractIL.Internal.Library
2525

2626
let defaultFileSystem = Shim.FileSystem
2727

@@ -90,7 +90,7 @@ Doing a compilation with the FileSystem
9090
---------------------------------------
9191
9292
*)
93-
open Microsoft.FSharp.Compiler.SourceCodeServices
93+
open FSharp.Compiler.SourceCodeServices
9494

9595
let checker = FSharpChecker.Create()
9696

fcs/docsrc/content/interactive.fsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ First, we need to reference the libraries that contain F# interactive service:
3131
*)
3232

3333
#r "FSharp.Compiler.Service.dll"
34-
open Microsoft.FSharp.Compiler.SourceCodeServices
35-
open Microsoft.FSharp.Compiler.Interactive.Shell
34+
open FSharp.Compiler.SourceCodeServices
35+
open FSharp.Compiler.Interactive.Shell
3636

3737
(**
3838
To communicate with F# interactive, we need to create streams that represent input and
@@ -225,7 +225,7 @@ based on the declarations executed so far.
225225
226226
You can also request declaration list information, tooltip text and symbol resolution:
227227
*)
228-
open Microsoft.FSharp.Compiler
228+
open FSharp.Compiler
229229

230230
// get a tooltip
231231
checkResults.GetToolTipTextAlternate(1, 2, "xxx + xx", ["xxx"], FSharpTokenTag.IDENT)

0 commit comments

Comments
 (0)