Class
RavenWorkspace
class RavenWorkspace
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: RavenWorkspace.cs
Inheritance: Object → Workspace → RavenWorkspace
A simple workspace that preconfigures projects with .NET framework references similar to Roslyn's MSBuildWorkspace.
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
24 items
AddProject(name: string, filePath?: string?, assemblyName?: string?, compilationOptions?: CompilationOptions?, targetFramework?: string?, documentationOptions?: ProjectDocumentationOptions?, parseOptions?: ParseOptions?) -> ProjectId
Adds a new project to the workspace.
ApplyCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, predicate?: (CodeFix -> bool)?, maxIterations?: int, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ApplyCodeFixesResult
Applies code fixes one-at-a-time, reanalyzing between each application.
Inherited from Workspace.ApplyCodeFixes
Static member:
Create(sdkVersion?: string?, targetFramework?: string?, projectSystemService?: IProjectSystemService?, workspaceEventSink?: IWorkspaceEventSink?) -> RavenWorkspace
Creates a new Raven.CodeAnalysis.RavenWorkspace with framework references for the specified SDK version and target framework. If either is null, the latest installed combination is…
CreateAnalysisCompilation(projectId: ProjectId) -> Compilation
No summary available.
Inherited from Workspace.CreateAnalysisCompilation
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
GetCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<CodeFix>
Gets code fixes for project diagnostics produced by the supplied providers.
Inherited from Workspace.GetCodeFixes
GetCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, diagnostics: IEnumerable<Diagnostic>, cancellationToken?: CancellationToken) -> ImmutableArray<CodeFix>
Gets code fixes for an existing diagnostic set without recomputing project diagnostics.
Inherited from Workspace.GetCodeFixes
GetCompilation(project: Project) -> Compilation
No summary available.
Inherited from Workspace.GetCompilation
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
GetDiagnostics(projectId: ProjectId, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
Gets diagnostics for the specified project, including analyzer diagnostics.
Inherited from Workspace.GetDiagnostics
GetDocumentDiagnostics(projectId: ProjectId, documentId: DocumentId, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
No summary available.
Inherited from Workspace.GetDocumentDiagnostics
GetDocumentDiagnosticsWithAnalyzers(projectId: ProjectId, documentId: DocumentId, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
No summary available.
Inherited from Workspace.GetDocumentDiagnosticsWithAnalyzers
GetDocumentSyntaxDiagnostics(projectId: ProjectId, documentId: DocumentId, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> ImmutableArray<Diagnostic>
No summary available.
Inherited from Workspace.GetDocumentSyntaxDiagnostics
GetFixAll(projectId: ProjectId, provider: CodeFixProvider, scope: FixAllScope, codeActionEquivalenceKey: string, documentId?: Nullable<DocumentId>, analyzerOptions?: CompilationWithAnalyzersOptions?, cancellationToken?: CancellationToken) -> CodeAction?
Gets a Fix All action for equivalent fixes within the requested scope.
Inherited from Workspace.GetFixAll
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetRefactorings(documentId: DocumentId, providers: IEnumerable<CodeRefactoringProvider>, span: TextSpan, cancellationToken?: CancellationToken) -> ImmutableArray<CodeRefactoring>
Gets context-driven refactorings for the specified document and selection span.
Inherited from Workspace.GetRefactorings
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
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