Method AddDocument
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v10.dll
AddDocument(string, SourceText)
Adds a new document or replaces existing document with specified settings.
public virtual DocumentId AddDocument(string fileName, SourceText text)
Parameters
fileNamestringFile name of the
Microsoft.CodeAnalysis.Document.textSourceTextNew
Microsoft.CodeAnalysis.Text.SourceTexttext.
Returns
- DocumentId
Microsoft.CodeAnalysis.DocumentIdto 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
fileNamestringFile name of the
Microsoft.CodeAnalysis.Document.textstringNew
Microsoft.CodeAnalysis.Documenttext.
Returns
- DocumentId
Microsoft.CodeAnalysis.DocumentIdto be added.