Table of Contents

Method AddDocument

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

AddDocument(string, string)

When implemented by a class, adds a new document or replaces existing document with specified settings.

DocumentId AddDocument(string file, string text)

Parameters

file string

File name of the Microsoft.CodeAnalysis.Document.

text string

New Microsoft.CodeAnalysis.Document text.

Returns

DocumentId

AddDocument(string, SourceText)

When implemented by a class, adds a new document or replaces existing document with specified settings.

DocumentId AddDocument(string file, SourceText text)

Parameters

file string

File name of the Microsoft.CodeAnalysis.Document.

text SourceText

New Microsoft.CodeAnalysis.Document text.

Returns

DocumentId

Microsoft.CodeAnalysis.DocumentId to be added.