Method AddDocument
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v9.dll
AddDocument(string, SourceText)
Adds a new document or replaces existing document with specified settings.
public virtual DocumentId AddDocument(string fileName, SourceText text)
Parameters
fileName
stringFile name of the
Microsoft.CodeAnalysis.Document
.text
SourceTextNew
Microsoft.CodeAnalysis.Text.SourceText
text.
Returns
- DocumentId
Microsoft.CodeAnalysis.DocumentId
to be added.
AddDocument(string, string)
Adds a new document or replaces existing document with specified settings.
public virtual DocumentId AddDocument(string fileName, string text)
Parameters
fileName
stringFile name of the
Microsoft.CodeAnalysis.Document
.text
stringNew
Microsoft.CodeAnalysis.Document
text.
Returns
- DocumentId
Microsoft.CodeAnalysis.DocumentId
to be added.