Table of Contents

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 string

File name of the Microsoft.CodeAnalysis.Document.

text SourceText

New 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 string

File name of the Microsoft.CodeAnalysis.Document.

text string

New Microsoft.CodeAnalysis.Document text.

Returns

DocumentId

Microsoft.CodeAnalysis.DocumentId to be added.