Class
Editor
class Editor
Namespace: Raven.CodeAnalysis.Editing
Assembly: Raven.CodeAnalysis.dll
Source file: Editor.cs
Inheritance: Object → Editor
Provides a simple API for making textual edits to a Raven.CodeAnalysis.Document. Similar in spirit to Roslyn's DocumentEditor, this class allows callers to build up changes and produce a new document with those changes applied.
Properties
1 item
OriginalDocument: Document
The document that edits are being applied to.
Methods
9 items
Static member:
Create(document: Document) -> Editor
Creates a new Raven.CodeAnalysis.Editing.Editor for the provided document.
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetChangedDocument() -> Document
Gets a new Raven.CodeAnalysis.Document with all edits applied.
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
Insert(position: int, newText: string) -> ()
Inserts newText at the specified position.
Remove(span: TextSpan) -> ()
Removes the text within the specified span.
Replace(span: TextSpan, newText: string) -> ()
Replaces the text within span with newText.
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString