Class DescriptorDeclaration
Provides additional information about the declaration of a descriptor, such as source location and comments.
Inheritance
Inherited Members
Namespace: Google.Protobuf.Reflection
Assembly: Google.Protobuf.dll
Syntax
public sealed class DescriptorDeclaration
Properties
Descriptor
The descriptor this declaration relates to.
Declaration
public IDescriptor Descriptor { get; }
Property Value
Type | Description |
---|---|
IDescriptor |
EndColumn
The end column of the declaration within the source file. This value is 1-based, and exclusive. (The final character of the declaration is on the column before this value.)
Declaration
public int EndColumn { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
EndLine
// The end line of the declaration within the source file. This value is 1-based.
Declaration
public int EndLine { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LeadingComments
Comments appearing before the declaration. Never null, but may be empty. Multi-line comments are represented as a newline-separated string. Leading whitespace and the comment marker ("//") are removed from each line.
Declaration
public string LeadingComments { get; }
Property Value
Type | Description |
---|---|
System.String |
LeadingDetachedComments
Comments appearing before the declaration, but separated from it by blank lines. Each string represents a newline-separated paragraph of comments. Leading whitespace and the comment marker ("//") are removed from each line. The list is never null, but may be empty. Likewise each element is never null, but may be empty.
Declaration
public IReadOnlyList<string> LeadingDetachedComments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.String> |
StartColumn
The start column of the declaration within the source file. This value is 1-based.
Declaration
public int StartColumn { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
StartLine
The start line of the declaration within the source file. This value is 1-based.
Declaration
public int StartLine { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
TrailingComments
Comments appearing after the declaration. Never null, but may be empty. Multi-line comments are represented as a newline-separated string. Leading whitespace and the comment marker ("//") are removed from each line.
Declaration
public string TrailingComments { get; }
Property Value
Type | Description |
---|---|
System.String |