ApiSourceLocation Pennington.ApiMetadata
Source-link target for a documented type or member, typically used to render "view source" links.
Properties
Branchstring?- Default:
nullBranch or tag the path resolves against, ornullwhen unknown. EndLineint- Default:
01-based line number where the declaration ends. Pathstring- Relative path to the source file within the repository.
RepoUrlstring?- Default:
nullBase URL of the source repository (e.g. GitHub URL), ornullwhen unknown. StartLineint- Default:
01-based line number where the declaration begins.
Constructors
.ctor
#public sealed record ApiSourceLocation(
string Path,
int StartLine,
int EndLine,
string? RepoUrl,
string? Branch);Source-link target for a documented type or member, typically used to render "view source" links.
Parameters
Pathstring- Relative path to the source file within the repository.
StartLineint- 1-based line number where the declaration begins.
EndLineint- 1-based line number where the declaration ends.
RepoUrlstring?- Base URL of the source repository (e.g. GitHub URL), or
nullwhen unknown. Branchstring?- Branch or tag the path resolves against, or
nullwhen unknown.
Pennington.ApiMetadata.ApiSourceLocation
namespace Pennington.ApiMetadata;
/// Source-link target for a documented type or member, typically used to render "view source" links.
public record ApiSourceLocation
{
/// Source-link target for a documented type or member, typically used to render "view source" links.
public sealed record ApiSourceLocation(
string Path,
int StartLine,
int EndLine,
string? RepoUrl,
string? Branch);
/// Branch or tag the path resolves against, or null when unknown.
string? Branch
;
/// 1-based line number where the declaration ends.
int EndLine
;
/// Relative path to the source file within the repository.
string Path
;
/// Base URL of the source repository (e.g. GitHub URL), or null when unknown.
string? RepoUrl
;
/// 1-based line number where the declaration begins.
int StartLine
;
}