Instance Propertyswift-protobuf 1.28.1SwiftProtobuf
hasTrailingComments
Returns true if trailingComments
has been explicitly set.
var hasTrailingComments: Bool { get }
Other members in extension
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_SourceCodeInfo.Location, rhs: Google_Protobuf_SourceCodeInfo.Location
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var hasLeadingComments: Bool
Returns true if
leadingComments
has been explicitly set.var leadingComments: String
If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration.
var leadingDetachedComments: [String]
var path: [Int32]
Identifies which part of the FileDescriptorProto was defined at this location.
var span: [Int32]
Always has exactly three or four elements: start line, start column, end line (optional, otherwise assumed same as start line), end column. These are packed into a single field for efficiency. Note that line and column numbers are zero-based – typically you will want to add 1 to each before displaying to a user.
var trailingComments: String
var unknownFields: UnknownStorage
func clearLeadingComments(
) Clears the value of
leadingComments
. Subsequent reads from it will return its default value.func clearTrailingComments(
) Clears the value of
trailingComments
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws