Class SourceDocument
Contains information about source code document
Inherited Members
Namespace: CilTools.SourceCode
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public class SourceDocument : FragmentBase
Constructors
SourceDocument()
Creates a new empty instance of SourceDocument
Declaration
public SourceDocument()
Properties
FilePath
Gets or sets a path to the file from which this document is loaded
Declaration
public string FilePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Fragments
Gets source code fragments contained in this document
Declaration
public IEnumerable<SourceFragment> Fragments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SourceFragment> |
Method
Gets or sets a method which source code is contained in this document
Declaration
public MethodBase Method { get; set; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodBase |
SourceLinkMap
Gets or sets the Source Link URL map if the source code of this document is located on the remote server. Otherwise, the value of this property is an empty string. Source Link specification: https://github.com/dotnet/designs/blob/main/accepted/2020/diagnostics/source-link.md#source-link-json-schema
Declaration
public string SourceLinkMap { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SymbolsFile
Gets or sets a path to the symbols file from which the sequence points data for this document is loaded
Declaration
public string SymbolsFile { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SymbolsFileFormat
Gets or sets a format of the symbols file specified by SymbolsFile property
Declaration
public string SymbolsFileFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
AddFragment(SourceFragment)
Adds the specified fragment into this document
Declaration
public void AddFragment(SourceFragment fragment)
Parameters
Type | Name | Description |
---|---|---|
SourceFragment | fragment | A source code fragment to add |