Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move SourceText: Microsoft.FSharp -> FSharp #6356

Merged
merged 1 commit into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fcs/samples/EditorService/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open FSharp.Compiler.QuickParse
let checker = FSharpChecker.Create()

let parseWithTypeInfo (file, input) =
let input = Microsoft.FSharp.Compiler.Text.SourceText.ofString input
let input = FSharp.Compiler.Text.SourceText.ofString input
let checkOptions, _errors = checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously
let parsingOptions, _errors = checker.GetParsingOptionsFromProjectOptions(checkOptions)
let untypedRes = checker.ParseFile(file, input, parsingOptions) |> Async.RunSynchronously
Expand Down
2 changes: 1 addition & 1 deletion fcs/samples/UntypedTree/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let checker = FSharpChecker.Create()
// Get untyped tree for a specified input
let getUntypedTree (file, input) =
let parsingOptions = { FSharpParsingOptions.Default with SourceFiles = [| file |] }
let untypedRes = checker.ParseFile(file, Microsoft.FSharp.Compiler.Text.SourceText.ofString input, parsingOptions) |> Async.RunSynchronously
let untypedRes = checker.ParseFile(file, FSharp.Compiler.Text.SourceText.ofString input, parsingOptions) |> Async.RunSynchronously
match untypedRes.ParseTree with
| Some tree -> tree
| None -> failwith "Something went wrong during parsing!"
Expand Down
3 changes: 1 addition & 2 deletions src/fsharp/CompileOps.fs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ open FSharp.Compiler.TypeChecker
open FSharp.Compiler.Tast
open FSharp.Compiler.Tastops
open FSharp.Compiler.TcGlobals

open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text

#if !NO_EXTENSIONTYPING
open FSharp.Compiler.ExtensionTyping
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/CompileOps.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ open FSharp.Compiler.Ast
open FSharp.Compiler.ErrorLogger
open FSharp.Compiler.Tast
open FSharp.Compiler.TcGlobals
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text
open Microsoft.FSharp.Core.CompilerServices
#if !NO_EXTENSIONTYPING
open FSharp.Compiler.ExtensionTyping
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/NameResolution.fs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ open FSharp.Compiler.AccessibilityLogic
open FSharp.Compiler.AttributeChecking
open FSharp.Compiler.InfoReader
open FSharp.Compiler.PrettyNaming
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text
open System.Collections.Generic

#if !NO_EXTENSIONTYPING
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/NameResolution.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open FSharp.Compiler.Tastops
open FSharp.Compiler.TcGlobals
open FSharp.Compiler.AbstractIL.Internal.Library
open FSharp.Compiler.PrettyNaming
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text

/// A NameResolver is a context for name resolution. It primarily holds an InfoReader.
type NameResolver =
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/UnicodeLexing.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module internal FSharp.Compiler.UnicodeLexing

open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text
open Microsoft.FSharp.Text
open Internal.Utilities.Text.Lexing

Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/fsi/fsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ open FSharp.Compiler.Tastops
open FSharp.Compiler.TcGlobals
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.ReferenceResolver
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text

open Internal.Utilities
open Internal.Utilities.Collections
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/service/ServiceXmlDocParser.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace FSharp.Compiler.SourceCodeServices

open FSharp.Compiler
open FSharp.Compiler.AbstractIL.Internal.Library
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text

/// Represent an Xml documentation block in source code
type XmlDocable =
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/service/ServiceXmlDocParser.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Range
open FSharp.Compiler.Ast
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text

/// Represent an Xml documentation block in source code
type public XmlDocable =
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/service/service.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ open FSharp.Compiler.Infos
open FSharp.Compiler.InfoReader
open FSharp.Compiler.NameResolution
open FSharp.Compiler.TypeChecker
open FSharp.Compiler.Text
open FSharp.Compiler.SourceCodeServices.SymbolHelpers
open Microsoft.FSharp.Compiler.Text

open Internal.Utilities
open Internal.Utilities.Collections
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/service/service.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ open FSharp.Compiler.Infos
open FSharp.Compiler.InfoReader
open FSharp.Compiler.Tast
open FSharp.Compiler.Tastops
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text

/// Represents the reason why the GetDeclarationLocation operation failed.
[<RequireQualifiedAccess>]
Expand Down
4 changes: 2 additions & 2 deletions src/utils/prim-lexing.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#nowarn "47" // recursive initialization of LexBuffer

namespace Microsoft.FSharp.Compiler.Text
namespace FSharp.Compiler.Text

open System
open System.IO
Expand Down Expand Up @@ -103,8 +103,8 @@ module SourceText =

namespace Internal.Utilities.Text.Lexing

open FSharp.Compiler.Text
open Microsoft.FSharp.Core
open Microsoft.FSharp.Compiler.Text
open Microsoft.FSharp.Collections
open System.Collections.Generic

Expand Down
4 changes: 2 additions & 2 deletions src/utils/prim-lexing.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LexBuffers are for use with automatically generated lexical analyzers,
// in particular those produced by 'fslex'.

namespace Microsoft.FSharp.Compiler.Text
namespace FSharp.Compiler.Text

type ISourceText =

Expand Down Expand Up @@ -36,7 +36,7 @@ module SourceText =
namespace Internal.Utilities.Text.Lexing

open System.Collections.Generic
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text
open Microsoft.FSharp.Core
open Microsoft.FSharp.Control

Expand Down
2 changes: 1 addition & 1 deletion tests/FSharp.Compiler.UnitTests/Compiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace FSharp.Compiler.UnitTests

open System
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text
open FSharp.Compiler.SourceCodeServices

open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion tests/FSharp.Compiler.UnitTests/SourceTextTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace FSharp.Compiler.UnitTests
open System
open NUnit.Framework

open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text

[<TestFixture>]
module SourceTextTests =
Expand Down
2 changes: 1 addition & 1 deletion tests/service/AssemblyContentProviderTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let (=>) (source: string) (expected: string list) =
// http://stackoverflow.com/questions/19365404/stringreader-omits-trailing-linebreak
yield "" |]

let _, checkFileAnswer = checker.ParseAndCheckFileInProject(filePath, 0, Microsoft.FSharp.Compiler.Text.SourceText.ofString source, projectOptions) |> Async.RunSynchronously
let _, checkFileAnswer = checker.ParseAndCheckFileInProject(filePath, 0, FSharp.Compiler.Text.SourceText.ofString source, projectOptions) |> Async.RunSynchronously

let checkFileResults =
match checkFileAnswer with
Expand Down
2 changes: 1 addition & 1 deletion tests/service/AssemblyReaderShim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ let x = 123
"""

let fileName, options = Common.mkTestFileAndOptions source [| |]
Common.checker.ParseAndCheckFileInProject(fileName, 0, Microsoft.FSharp.Compiler.Text.SourceText.ofString source, options) |> Async.RunSynchronously |> ignore
Common.checker.ParseAndCheckFileInProject(fileName, 0, FSharp.Compiler.Text.SourceText.ofString source, options) |> Async.RunSynchronously |> ignore
gotRequest |> should be True
12 changes: 6 additions & 6 deletions tests/service/Common.fs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ type TempFile(ext, contents) =

let getBackgroundParseResultsForScriptText (input) =
use file = new TempFile("fsx", input)
let checkOptions, _diagnostics = checker.GetProjectOptionsFromScript(file.Name, Microsoft.FSharp.Compiler.Text.SourceText.ofString input) |> Async.RunSynchronously
let checkOptions, _diagnostics = checker.GetProjectOptionsFromScript(file.Name, FSharp.Compiler.Text.SourceText.ofString input) |> Async.RunSynchronously
checker.GetBackgroundParseResultsForFileInProject(file.Name, checkOptions) |> Async.RunSynchronously


let getBackgroundCheckResultsForScriptText (input) =
use file = new TempFile("fsx", input)
let checkOptions, _diagnostics = checker.GetProjectOptionsFromScript(file.Name, Microsoft.FSharp.Compiler.Text.SourceText.ofString input) |> Async.RunSynchronously
let checkOptions, _diagnostics = checker.GetProjectOptionsFromScript(file.Name, FSharp.Compiler.Text.SourceText.ofString input) |> Async.RunSynchronously
checker.GetBackgroundCheckResultsForFileInProject(file.Name, checkOptions) |> Async.RunSynchronously


Expand Down Expand Up @@ -167,7 +167,7 @@ let mkTestFileAndOptions source additionalArgs =
fileName, options

let parseAndCheckFile fileName source options =
match checker.ParseAndCheckFileInProject(fileName, 0, Microsoft.FSharp.Compiler.Text.SourceText.ofString source, options) |> Async.RunSynchronously with
match checker.ParseAndCheckFileInProject(fileName, 0, FSharp.Compiler.Text.SourceText.ofString source, options) |> Async.RunSynchronously with
| parseResults, FSharpCheckFileAnswer.Succeeded(checkResults) -> parseResults, checkResults
| _ -> failwithf "Parsing aborted unexpectedly..."

Expand All @@ -181,11 +181,11 @@ let parseAndCheckScript (file, input) =
let projectOptions = checker.GetProjectOptionsFromCommandLineArgs (projName, args)

#else
let projectOptions, _diagnostics = checker.GetProjectOptionsFromScript(file, Microsoft.FSharp.Compiler.Text.SourceText.ofString input) |> Async.RunSynchronously
let projectOptions, _diagnostics = checker.GetProjectOptionsFromScript(file, FSharp.Compiler.Text.SourceText.ofString input) |> Async.RunSynchronously
printfn "projectOptions = %A" projectOptions
#endif

let parseResult, typedRes = checker.ParseAndCheckFileInProject(file, 0, Microsoft.FSharp.Compiler.Text.SourceText.ofString input, projectOptions) |> Async.RunSynchronously
let parseResult, typedRes = checker.ParseAndCheckFileInProject(file, 0, FSharp.Compiler.Text.SourceText.ofString input, projectOptions) |> Async.RunSynchronously

// if parseResult.Errors.Length > 0 then
// printfn "---> Parse Input = %A" input
Expand All @@ -203,7 +203,7 @@ let parseSourceCode (name: string, code: string) =
let dllPath = Path.Combine(location, name + ".dll")
let args = mkProjectCommandLineArgs(dllPath, [filePath])
let options, errors = checker.GetParsingOptionsFromCommandLineArgs(List.ofArray args)
let parseResults = checker.ParseFile(filePath, Microsoft.FSharp.Compiler.Text.SourceText.ofString code, options) |> Async.RunSynchronously
let parseResults = checker.ParseFile(filePath, FSharp.Compiler.Text.SourceText.ofString code, options) |> Async.RunSynchronously
parseResults.ParseTree

/// Extract range info
Expand Down
4 changes: 2 additions & 2 deletions tests/service/EditorTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ let ``Basic cancellation test`` () =
let file = "/home/user/Test.fsx"
async {
checker.ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients()
let! checkOptions, _diagnostics = checker.GetProjectOptionsFromScript(file, Microsoft.FSharp.Compiler.Text.SourceText.ofString input)
let! parseResult, typedRes = checker.ParseAndCheckFileInProject(file, 0, Microsoft.FSharp.Compiler.Text.SourceText.ofString input, checkOptions)
let! checkOptions, _diagnostics = checker.GetProjectOptionsFromScript(file, FSharp.Compiler.Text.SourceText.ofString input)
let! parseResult, typedRes = checker.ParseAndCheckFileInProject(file, 0, FSharp.Compiler.Text.SourceText.ofString input, checkOptions)
return parseResult, typedRes
} |> Async.RunSynchronously
|> ignore
Expand Down
4 changes: 2 additions & 2 deletions tests/service/MultiProjectAnalysisTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ let ``Type provider project references should not throw exceptions`` () =
//printfn "options: %A" options
let fileName = __SOURCE_DIRECTORY__ + @"/data/TypeProviderConsole/Program.fs"
let fileSource = File.ReadAllText(fileName)
let fileParseResults, fileCheckAnswer = checker.ParseAndCheckFileInProject(fileName, 0, Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource, options) |> Async.RunSynchronously
let fileParseResults, fileCheckAnswer = checker.ParseAndCheckFileInProject(fileName, 0, FSharp.Compiler.Text.SourceText.ofString fileSource, options) |> Async.RunSynchronously
let fileCheckResults =
match fileCheckAnswer with
| FSharpCheckFileAnswer.Succeeded(res) -> res
Expand Down Expand Up @@ -1010,7 +1010,7 @@ let ``Projects creating generated types should not utilize cross-project-referen
//printfn "options: %A" options
let fileName = __SOURCE_DIRECTORY__ + @"/data/TypeProvidersBug/TestConsole/Program.fs"
let fileSource = File.ReadAllText(fileName)
let fileParseResults, fileCheckAnswer = checker.ParseAndCheckFileInProject(fileName, 0, Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource, options) |> Async.RunSynchronously
let fileParseResults, fileCheckAnswer = checker.ParseAndCheckFileInProject(fileName, 0, FSharp.Compiler.Text.SourceText.ofString fileSource, options) |> Async.RunSynchronously
let fileCheckResults =
match fileCheckAnswer with
| FSharpCheckFileAnswer.Succeeded(res) -> res
Expand Down
2 changes: 1 addition & 1 deletion tests/service/PerfTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module internal Project1 =
let projFileName = Path.ChangeExtension(base2, ".fsproj")
let fileSources = [ for (i,f) in fileNamesI -> (f, "module M" + string i) ]
for (f,text) in fileSources do File.WriteAllText(f, text)
let fileSources2 = [ for (i,f) in fileSources -> Microsoft.FSharp.Compiler.Text.SourceText.ofString f ]
let fileSources2 = [ for (i,f) in fileSources -> FSharp.Compiler.Text.SourceText.ofString f ]

let fileNames = [ for (_,f) in fileNamesI -> f ]
let args = mkProjectCommandLineArgs (dllName, fileNames)
Expand Down
22 changes: 11 additions & 11 deletions tests/service/ProjectAnalysisTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let fff () = xxx + xxx

type CAbbrev = C
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)

let fileSource2Text = """
Expand Down Expand Up @@ -84,7 +84,7 @@ let mmmm1 : M.C = new M.C() // note, these don't count as uses of CA
let mmmm2 : M.CAbbrev = new M.CAbbrev() // note, these don't count as uses of C

"""
let fileSource2 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource2Text
let fileSource2 = FSharp.Compiler.Text.SourceText.ofString fileSource2Text
File.WriteAllText(fileName2, fileSource2Text)

let fileNames = [fileName1; fileName2]
Expand Down Expand Up @@ -2429,7 +2429,7 @@ and F = { Field1 : int; Field2 : int }
and G = Case1 | Case2 of int

"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)

let sigFileSource1Text = """
Expand All @@ -2451,7 +2451,7 @@ and F = { Field1 : int; Field2 : int }
and G = Case1 | Case2 of int

"""
let sigFileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString sigFileSource1Text
let sigFileSource1 = FSharp.Compiler.Text.SourceText.ofString sigFileSource1Text
File.WriteAllText(sigFileName1, sigFileSource1Text)
let cleanFileName a = if a = fileName1 then "file1" elif a = sigFileName1 then "sig1" else "??"

Expand Down Expand Up @@ -4514,7 +4514,7 @@ module internal Project35b =
#r "System.dll"
#r "notexist.dll"
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)
let cleanFileName a = if a = fileName1 then "file1" else "??"

Expand Down Expand Up @@ -5158,7 +5158,7 @@ module internal ProjectBig =
let projFileName = Path.ChangeExtension(base2, ".fsproj")
let fileSources = [ for (i,f) in fileNamesI -> (f, "module M" + string i) ]
for (f,text) in fileSources do File.WriteAllText(f, text)
let fileSources2 = [ for (i,f) in fileSources -> Microsoft.FSharp.Compiler.Text.SourceText.ofString f ]
let fileSources2 = [ for (i,f) in fileSources -> FSharp.Compiler.Text.SourceText.ofString f ]

let fileNames = [ for (_,f) in fileNamesI -> f ]
let args = mkProjectCommandLineArgs (dllName, fileNames)
Expand Down Expand Up @@ -5246,7 +5246,7 @@ module M
# 10 "Test.fsy"
let x = (1 = 3.0)
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)
let fileNames = [fileName1]
let args = mkProjectCommandLineArgs (dllName, fileNames)
Expand Down Expand Up @@ -5287,7 +5287,7 @@ let ``ParseAndCheckFileResults contains ImplFile list if FSharpChecker is create
type A(i:int) =
member x.Value = i
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)

let fileNames = [fileName1]
Expand Down Expand Up @@ -5378,7 +5378,7 @@ type UseTheThings(i:int) =
member x.UseSomeUsedModuleContainingExtensionMember() = (3).Q
member x.UseSomeUsedModuleContainingUnion() = A
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)

let fileNames = [fileName1]
Expand Down Expand Up @@ -5451,7 +5451,7 @@ type UseTheThings(i:int) =
member x.UseSomeUsedModuleContainingExtensionMember() = (3).Q
member x.UseSomeUsedModuleContainingUnion() = A
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)

let fileNames = [fileName1]
Expand Down Expand Up @@ -5524,7 +5524,7 @@ type UseTheThings(i:int) =
member x.UseSomeUsedModuleContainingExtensionMember() = (3).Q
member x.UseSomeUsedModuleContainingUnion() = A
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
File.WriteAllText(fileName1, fileSource1Text)

let fileNames = [fileName1]
Expand Down
6 changes: 3 additions & 3 deletions tests/service/ProjectOptionsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ let ``Test SourceFiles order for GetProjectOptionsFromScript`` () = // See #594
let scriptPath = __SOURCE_DIRECTORY__ + @"/data/ScriptProject/" + scriptName + ".fsx"
let scriptSource = File.ReadAllText scriptPath
let projOpts, _diagnostics =
checker.GetProjectOptionsFromScript(scriptPath, Microsoft.FSharp.Compiler.Text.SourceText.ofString scriptSource)
checker.GetProjectOptionsFromScript(scriptPath, FSharp.Compiler.Text.SourceText.ofString scriptSource)
|> Async.RunSynchronously
projOpts.SourceFiles
|> Array.map Path.GetFileNameWithoutExtension
Expand All @@ -534,12 +534,12 @@ module ImplFile
let x = 42
#endif
"""
let fileSource1 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource1 = FSharp.Compiler.Text.SourceText.ofString fileSource1Text
let fileSource2Text = """
#load "Impl.fs"
ImplFile.x
"""
let fileSource2 = Microsoft.FSharp.Compiler.Text.SourceText.ofString fileSource2Text
let fileSource2 = FSharp.Compiler.Text.SourceText.ofString fileSource2Text
File.WriteAllText(fileName1, fileSource1Text)
File.WriteAllText(fileName2, fileSource2Text)

Expand Down
2 changes: 1 addition & 1 deletion vsintegration/Utils/LanguageServiceProfiling/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Results look like this:
*)

open FSharp.Compiler
open Microsoft.FSharp.Compiler.Text
open FSharp.Compiler.Text
open FSharp.Compiler.SourceCodeServices
open System
open System.IO
Expand Down
Loading