Documentation ¶
Overview ¶
Package goref is a generated protocol buffer package.
It is generated from these files:
ref.proto
It has these top-level messages:
Ref Location Position
Index ¶
- Variables
- type Location
- type Position
- func (*Position) Descriptor() ([]byte, []int)
- func (m *Position) GetEndCol() int32
- func (m *Position) GetEndLine() int32
- func (m *Position) GetFilename() string
- func (m *Position) GetStartCol() int32
- func (m *Position) GetStartLine() int32
- func (*Position) ProtoMessage()
- func (m *Position) Reset()
- func (m *Position) String() string
- type Ref
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var Type_name = map[int32]string{
0: "Instantiation",
1: "Call",
2: "Implementation",
3: "Extension",
4: "Import",
5: "Reference",
}
View Source
var Type_value = map[string]int32{
"Instantiation": 0,
"Call": 1,
"Implementation": 2,
"Extension": 3,
"Import": 4,
"Reference": 5,
}
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct { Position *Position `protobuf:"bytes,1,opt,name=position" json:"position,omitempty"` Package string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` Ident string `protobuf:"bytes,3,opt,name=ident" json:"ident,omitempty"` }
func (*Location) Descriptor ¶
func (*Location) GetPackage ¶
func (*Location) GetPosition ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
type Position ¶
type Position struct { Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` StartLine int32 `protobuf:"varint,2,opt,name=start_line,json=startLine" json:"start_line,omitempty"` StartCol int32 `protobuf:"varint,3,opt,name=start_col,json=startCol" json:"start_col,omitempty"` EndLine int32 `protobuf:"varint,4,opt,name=end_line,json=endLine" json:"end_line,omitempty"` EndCol int32 `protobuf:"varint,5,opt,name=end_col,json=endCol" json:"end_col,omitempty"` }
func (*Position) Descriptor ¶
func (*Position) GetEndLine ¶
func (*Position) GetFilename ¶
func (*Position) GetStartCol ¶
func (*Position) GetStartLine ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
type Ref ¶
type Ref struct { Version int64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` From *Location `protobuf:"bytes,2,opt,name=from" json:"from,omitempty"` To *Location `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"` Type Type `protobuf:"varint,4,opt,name=type,enum=goref.Type" json:"type,omitempty"` }
func (*Ref) Descriptor ¶
func (*Ref) GetVersion ¶
func (*Ref) ProtoMessage ¶
func (*Ref) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.