Class
Script
class Script
Namespace: Raven.CodeAnalysis.Scripting
Assembly: Raven.CodeAnalysis.dll
Source file: Script.cs
Inheritance: Object → Script
Represents one unexecuted Raven script submission.
Properties
2 items
Code: string
Gets the source text for this submission.
Options: ScriptOptions
Gets the options used to compile this submission and its continuations.
Methods
6 items
Compile(cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
Compiles the submission and returns its diagnostics without executing it.
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
RunAsync(cancellationToken?: CancellationToken) -> Task<ScriptState>
Compiles and executes this submission in a new script session.
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString