Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsObjectGlobalRef ¶
IsObjectGlobalRef returns true if the object refers to a name in the global scope.
For example, a file may declare a global constant "X" and inside a function the constant is assigned to a new local variable. In that assignment, globalRef would be true because when "X" is used inside the function, it refers to the global. However if a local constant "X" had been declared above the assignment, globalRef would be false because it refers to a local-scope name.
We compute this by checking if the object's scope is the same as the package's.
func ParseTypeObject ¶
ParseTypeObject parses a go/types.Type node for its package/type details.
func ParseTypeString ¶
ParseTypeString parses "simple," single-type go/types.Type.String() values in the form "<import path>.<type name>".
Types ¶
This section is empty.