Method ReplaceDocument
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v9.dll
ReplaceDocument(DocumentId, string)
Updates Microsoft.CodeAnalysis.Document
to have the text specified.
public virtual bool ReplaceDocument(DocumentId documentId, string text)
Parameters
documentId
DocumentIdMicrosoft.CodeAnalysis.Document
text
stringNew
Microsoft.CodeAnalysis.DocumentId
text.
Returns
- bool
True if document has been replaced, otherwise false.
ReplaceDocument(DocumentId, SourceText)
Updates Microsoft.CodeAnalysis.Document
to have the text specified.
public virtual bool ReplaceDocument(DocumentId documentId, SourceText text)
Parameters
documentId
DocumentIdMicrosoft.CodeAnalysis.DocumentId
text
SourceTextNew
Microsoft.CodeAnalysis.Document
text.
Returns
- bool
True if document has been replaced, otherwise false.