Documentation ¶
Index ¶
- func TypeVar2String(tv Interface) string
- func UnmarshalDataType(rawMessage *json.RawMessage) (gotypes.DataType, error)
- type Argument
- type CGO
- type Constant
- type Field
- type Interface
- type ListKey
- type ListValue
- type MapKey
- type MapValue
- type RangeKey
- type RangeValue
- type ReturnType
- type Type
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeVar2String ¶
func UnmarshalDataType ¶
func UnmarshalDataType(rawMessage *json.RawMessage) (gotypes.DataType, error)
Types ¶
type Argument ¶
type Argument struct { // Location of a function Function *Variable // Return type position Index int }
Argument represent an address of a function/method argument
func MakeArgument ¶
func (*Argument) MarshalJSON ¶
type Constant ¶
Constant to represent: - basic literal type - composite literal type - type casting - struct type expression
func (*Constant) MarshalJSON ¶
func (*Constant) UnmarshalJSON ¶
type Field ¶
func (*Field) MarshalJSON ¶
type ListKey ¶
type ListKey struct{}
func MakeListKey ¶
func MakeListKey() *ListKey
func (*ListKey) MarshalJSON ¶
type ListValue ¶
type ListValue struct {
X *Variable
}
func MakeListValue ¶
func (*ListValue) MarshalJSON ¶
type MapValue ¶
type MapValue struct {
X *Variable
}
func MakeMapValue ¶
func (*MapValue) MarshalJSON ¶
type RangeKey ¶
type RangeKey struct {
X *Variable
}
func MakeRangeKey ¶
func (*RangeKey) MarshalJSON ¶
type RangeValue ¶
type RangeValue struct {
X *Variable
}
func MakeRangeValue ¶
func MakeRangeValue(v *Variable) *RangeValue
func (*RangeValue) GetType ¶
func (m *RangeValue) GetType() Type
func (*RangeValue) MarshalJSON ¶
func (o *RangeValue) MarshalJSON() (b []byte, e error)
type ReturnType ¶
type ReturnType struct { // Location of a function Function *Variable // Return type position Index int }
func MakeReturn ¶
func MakeReturn(v *Variable, index int) *ReturnType
func (*ReturnType) GetType ¶
func (a *ReturnType) GetType() Type
func (*ReturnType) MarshalJSON ¶
func (o *ReturnType) MarshalJSON() (b []byte, e error)
type Type ¶
type Type string
var ArgumentType Type = "Argument"
var CGOType Type = "CGO"
var ConstantType Type = "Constant"
var FieldType Type = "Field"
var ListKeyType Type = "ListKey"
var ListValueType Type = "ListValue"
var MapKeyType Type = "MapKey"
var MapValueType Type = "MapValue"
var RangeKeyType Type = "RangeKey"
var RangeValueType Type = "RangeValue"
var ReturnTypeType Type = "ReturnType"
var VariableType Type = "Variable"
type Variable ¶
Variable to represent: - local variable: usually in <file>:<ln>:<name> form - global variable - qid-ed variable
func MakeLocalVar ¶
func MakeVirtualVar ¶
func VariableFromSymbolDef ¶
func (*Variable) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.