Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a1ba4a

Browse files
committed
Make .NET 4.0 compiler align with Silverlight capabilitiies
The Microsoft.FSharp.Compiler.Silverlight DLL has a class that lets youcreate a hosted F# Interactive session. This adds that capability to the.NET 4.0 build.
1 parent26f8169 commit9a1ba4a

File tree

3 files changed

+177
-51
lines changed

3 files changed

+177
-51
lines changed

‎src/fsharp/fsi/console.fs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ open Internal.Utilities
1212
/// When this fix flag is true, this byte is converted to a char using the System.Console.InputEncoding.
1313
/// This is a code-around for bug://1345.
1414
/// Fixes to System.Console.ReadKey may break this code around, hence the option here.
15-
moduleConsoleOptions=
15+
moduleinternalConsoleOptions=
1616

1717
// Bug 4254 was fixed in Dev11 (Net4.5), so this flag tracks making this fix up version specific.
1818
letfixupRequired=not FSharpEnvironment.IsRunningOnNetFx45OrAbove
@@ -35,10 +35,10 @@ module ConsoleOptions =
3535
else
3636
c
3737

38-
typeStyle= Prompt| Out| Error
38+
typeinternalStyle= Prompt| Out| Error
3939

4040
/// Class managing the command History.
41-
typeHistory()=
41+
typeinternalHistory()=
4242
letlist=new List<string>()
4343
let mutablecurrent=0
4444

@@ -73,14 +73,14 @@ type History() =
7373

7474
/// List of available optionsCache
7575
76-
typeOptions()=
76+
typeinternalOptions()=
7777
inherit History()
7878
let mutableroot=""
7979
memberx.Rootwith get()= rootandset(v)=(root<- v)
8080

8181
/// Cursor position management
8282
83-
moduleUtils=
83+
moduleinternalUtils=
8484

8585
openSystem
8686
openSystem.Reflection
@@ -129,7 +129,7 @@ module Utils =
129129

130130

131131
[<Sealed>]
132-
typeCursor=
132+
typeinternalCursor=
133133
static memberResetTo(top,left)=
134134
Utils.guard(fun()->
135135
Console.CursorTop<- top;
@@ -140,7 +140,7 @@ type Cursor =
140140
letleft= inset+ position%(Console.BufferWidth- inset)
141141
Cursor.ResetTo(top,left)
142142

143-
typeAnchor=
143+
typeinternalAnchor=
144144
{top:int; left:int}
145145
static memberCurrent(inset)={top=Console.CursorTop;left= max inset Console.CursorLeft}
146146

@@ -150,7 +150,7 @@ type Anchor =
150150
lettop= p.top+((p.left- inset)+ index)/(Console.BufferWidth- inset)
151151
Cursor.ResetTo(top,left)
152152

153-
typeReadLineConsole()=
153+
typeinternalReadLineConsole()=
154154
lethistory=new History()
155155
let mutablecomplete:(string option* string-> seq<string>) =fun(_s1,_s2)-> Seq.empty
156156
memberx.SetCompletionFunction f= complete<- f

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp