Class: Location
protobuf.SourceCodeInfo.Location
Represents a Location.
Implements
Constructors
constructor
• new Location(properties?
): Location
Constructs a new Location.
Parameters
Name | Type | Description |
---|---|---|
properties? | ILocation | Properties to set |
Returns
Properties
leadingComments
• leadingComments: string
Location leadingComments.
Implementation of
leadingDetachedComments
• leadingDetachedComments: string
[]
Location leadingDetachedComments.
Implementation of
ILocation.leadingDetachedComments
path
• path: number
[]
Location path.
Implementation of
span
• span: number
[]
Location span.
Implementation of
trailingComments
• trailingComments: string
Location trailingComments.
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this Location to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): Location
Creates a new Location instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | ILocation | Properties to set |
Returns
Location instance
decode
▸ decode(reader
, length?
): Location
Decodes a Location message from the specified reader or buffer.