Location

interface Location(source)

Properties

Link copied to clipboard
abstract val 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.

Link copied to clipboard
Link copied to clipboard
abstract val path: List<Int>

Identifies which part of the FileDescriptorProto was defined at this location.

Link copied to clipboard
Link copied to clipboard
abstract val span: List<Int>

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.

Link copied to clipboard
abstract val trailingComments: String?

Functions

Link copied to clipboard
fun SourceCodeInfo.Location.copy(body: ERROR CLASS: Symbol not found for SourceCodeInfo.Location.Builder.() -> Unit = {}): SourceCodeInfo.Location

Copies the original message, including unknown fields.