API Browser

Class

AdhocWorkspace

class AdhocWorkspace

Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: AdhocWorkspace.cs

Inheritance: Object → Workspace → AdhocWorkspace

A simple in-memory workspace used for tests and prototyping.

Constructors

2 items
AdhocWorkspace() No summary available.
AdhocWorkspace(services: HostServices) No summary available.

Properties

3 items
CurrentSolution: Solution No summary available. Inherited from Workspace.CurrentSolution
Kind: string No summary available. Inherited from Workspace.Kind
Services: HostServices Services available to this workspace. Inherited from Workspace.Services

Methods

25 items
CreateSolution() -> Solution Creates a new empty Raven.CodeAnalysis.Solution using the workspace services. Inherited from Workspace.CreateSolution
Extension member: EnableFileWatching() -> IDisposable No summary available. Extension from PersistenceExtensions.EnableFileWatching
Equals(obj: object?) -> bool Determines whether the specified object is equal to the current object. Inherited from Object.Equals
GetCompilation(projectId: ProjectId) -> Compilation Gets a Raven.CodeAnalysis.Compilation for the specified project. Results are cached and incrementally rebuilt when documents change. Inherited from Workspace.GetCompilation
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
OpenDocument(filePath: string, projectName?: string?) -> DocumentId Opens a single document from filePath into the workspace. If a single project already exists, the document is added to it; otherwise a new project is created.
OpenFolder(folderPath: string, projectName?: string?) -> ProjectId Opens all .rav and .rvn files from folderPath into a new project.
Extension member: OpenProject(projectFilePath: string) -> ProjectId No summary available. Extension from PersistenceExtensions.OpenProject
OpenSolution(solution: Solution) -> () Opens the specified Raven.CodeAnalysis.Solution as the current solution. Inherited from Workspace.OpenSolution
Extension member: SaveProject(projectId: ProjectId, filePath: string) -> () No summary available. Extension from PersistenceExtensions.SaveProject
ToString() -> string? Returns a string that represents the current object. Inherited from Object.ToString
TryApplyChanges(newSolution: Solution) -> bool Attempts to apply a new solution and raises the appropriate change event. Inherited from Workspace.TryApplyChanges

Events

1 item
WorkspaceChanged No summary available. Inherited from Workspace.WorkspaceChanged