goref

package
v0.0.0-...-35a9412 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Location) GetIdent

func (m *Location) GetIdent() string

func (*Location) GetPackage

func (m *Location) GetPackage() string

func (*Location) GetPosition

func (m *Location) GetPosition() *Position

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

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) Descriptor() ([]byte, []int)

func (*Position) GetEndCol

func (m *Position) GetEndCol() int32

func (*Position) GetEndLine

func (m *Position) GetEndLine() int32

func (*Position) GetFilename

func (m *Position) GetFilename() string

func (*Position) GetStartCol

func (m *Position) GetStartCol() int32

func (*Position) GetStartLine

func (m *Position) GetStartLine() int32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) String

func (m *Position) String() string

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) Descriptor() ([]byte, []int)

func (*Ref) GetFrom

func (m *Ref) GetFrom() *Location

func (*Ref) GetTo

func (m *Ref) GetTo() *Location

func (*Ref) GetType

func (m *Ref) GetType() Type

func (*Ref) GetVersion

func (m *Ref) GetVersion() int64

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) Reset

func (m *Ref) Reset()

func (*Ref) String

func (m *Ref) String() string

type Type

type Type int32
const (
	Type_Instantiation  Type = 0
	Type_Call           Type = 1
	Type_Implementation Type = 2
	Type_Extension      Type = 3
	Type_Import         Type = 4
	Type_Reference      Type = 5
)

func (Type) EnumDescriptor

func (Type) EnumDescriptor() ([]byte, []int)

func (Type) String

func (x Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL