Table of Contents

Method ReplaceDocument

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

ReplaceDocument(DocumentId, string)

When implemented by a class, updates Microsoft.CodeAnalysis.Document to have the text specified.

bool ReplaceDocument(DocumentId documentId, string text)

Parameters

documentId DocumentId

Microsoft.CodeAnalysis.Document

text string

New Microsoft.CodeAnalysis.Document text.

Returns

bool

True if document has been replaced, otherwise false.

ReplaceDocument(DocumentId, SourceText)

When implemented by a class, updates Microsoft.CodeAnalysis.Document to have the text specified.

bool ReplaceDocument(DocumentId documentId, SourceText text)

Parameters

documentId DocumentId

Microsoft.CodeAnalysis.Document

text SourceText

New Microsoft.CodeAnalysis.DocumentId text.

Returns

bool

True if document has been replaced, otherwise false.