FsiEvaluationSession Type
Represents an F# Interactive evaluation session.
Instance members
Instance member | Description |
Full Usage:
this.AddBoundValue
Parameters:
string
value : obj
|
|
|
|
|
|
Full Usage:
this.EvalExpression
Parameters:
string
scriptFileName : string
Returns: FsiValue option
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors are sent to the output writer. Parsing is performed on the current thread, and execution is performed synchronously on the 'main' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'. The scriptFileName parameter is used to report errors including this file name.
|
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors are sent to the output writer. Parsing is performed on the current thread, and execution is performed synchronously on the 'main' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'.
|
Full Usage:
this.EvalExpressionNonThrowing
Parameters:
string
scriptFileName : string
Returns: Choice<FsiValue option, exn> * FSharpDiagnostic[]
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors and warnings are collected apart from any exception arising from execution which is returned via a Choice. Parsing is performed on the current thread, and execution is performed synchronously on the 'main' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'. The scriptFileName parameter is used to report errors including this file name.
|
Full Usage:
this.EvalExpressionNonThrowing
Parameters:
string
Returns: Choice<FsiValue option, exn> * FSharpDiagnostic[]
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors and warnings are collected apart from any exception arising from execution which is returned via a Choice. Parsing is performed on the current thread, and execution is performed synchronously on the 'main' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'.
|
Full Usage:
this.EvalInteraction
Parameters:
string
scriptFileName : string
?cancellationToken : CancellationToken
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors are sent to the output writer, a 'true' return value indicates there were no errors overall. Execution is performed on the 'Run()' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'. The scriptFileName parameter is used to report errors including this file name.
|
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors are sent to the output writer, a 'true' return value indicates there were no errors overall. Execution is performed on the 'Run()' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'.
|
Full Usage:
this.EvalInteractionNonThrowing
Parameters:
string
scriptFileName : string
?cancellationToken : CancellationToken
Returns: Choice<FsiValue option, exn> * FSharpDiagnostic[]
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors and warnings are collected apart from any exception arising from execution which is returned via a Choice. Execution is performed on the 'Run()' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'. The scriptFileName parameter is used to report errors including this file name.
|
Full Usage:
this.EvalInteractionNonThrowing
Parameters:
string
?cancellationToken : CancellationToken
Returns: Choice<FsiValue option, exn> * FSharpDiagnostic[]
|
Execute the code as if it had been entered as one or more interactions, with an implicit termination at the end of the input. Stop on first error, discarding the rest of the input. Errors and warnings are collected apart from any exception arising from execution which is returned via a Choice. Execution is performed on the 'Run()' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'.
|
Full Usage:
this.EvalScript
Parameters:
string
|
Execute the given script. Stop on first error, discarding the rest of the script. Errors are sent to the output writer, a 'true' return value indicates there were no errors overall. Execution is performed on the 'Run()' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'.
|
Full Usage:
this.EvalScriptNonThrowing
Parameters:
string
Returns: Choice<unit, exn> * FSharpDiagnostic[]
|
Execute the given script. Stop on first error, discarding the rest of the script. Errors and warnings are collected apart from any exception arising from execution which is returned via a Choice. Execution is performed on the 'Run()' thread. Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered by input from 'stdin'.
|
Full Usage:
this.FormatValue
Parameters:
obj
reflectionType : Type
Returns: string
|
|
|
|
Full Usage:
this.GetCompletions
Parameters:
string
Returns: string seq
|
|
|
|
Full Usage:
this.Interrupt
|
|
Full Usage:
this.IsGui
Returns: bool
|
|
Full Usage:
this.LCID
Returns: int option
|
|
Full Usage:
this.ParseAndCheckInteraction
Parameters:
string
Returns: FSharpParseFileResults * FSharpCheckFileResults * FSharpCheckProjectResults
|
Typecheck the given script fragment in the type checking context implied by the current state of F# Interactive. The results can be used to access intellisense, perform resolutions, check brace matching and other information. Operations may be run concurrently with other requests to the InteractiveChecker.
|
Full Usage:
this.PartialAssemblySignatureUpdated
Returns: IEvent<unit>
|
|
Full Usage:
this.ReportUnhandledException
Parameters:
exn
|
|
Full Usage:
this.Run
|
Load the dummy interaction, load the initial files, and, if interacting, start the background thread to read the standard input. Performs these steps: - Load the dummy interaction, if any - Set up exception handling, if any - Load the initial files, if any - Start the background thread to read the standard input, if any - Sit in the GUI event loop indefinitely, if needed |
|
|
|
|
Static members
Static member | Description |
Full Usage:
FsiEvaluationSession.Create(fsiConfig, argv, inReader, outWriter, errorWriter, ?collectible, ?legacyReferenceResolver)
Parameters:
FsiEvaluationSessionHostConfig
-
The dynamic configuration of the evaluation session
argv : string[]
-
The command line arguments for the evaluation session
inReader : TextReader
-
Read input from the given reader
outWriter : TextWriter
-
Write output to the given writer
errorWriter : TextWriter
-
Write errors to the given writer
?collectible : bool
-
Optionally make the dynamic assembly for the session collectible
?legacyReferenceResolver : LegacyReferenceResolver
-
An optional resolver for legacy MSBuild references
Returns: FsiEvaluationSession
|
|
|
|
Full Usage:
FsiEvaluationSession.GetDefaultConfiguration(fsiObj)
Parameters:
obj
Returns: FsiEvaluationSessionHostConfig
|
|
Full Usage:
FsiEvaluationSession.GetDefaultConfiguration(fsiObj, useFsiAuxLib)
Parameters:
obj
useFsiAuxLib : bool
Returns: FsiEvaluationSessionHostConfig
|
Get a configuration that uses the 'fsi' object (normally from FSharp.Compiler.Interactive.Settings.dll, an object from another DLL with identical characteristics) to provide an implementation of the configuration. The flag indicates if FSharp.Compiler.Interactive.Settings.dll is referenced by default.
|