Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Infer ¶
func Infer(expr file.Expression) string
Infer attempts to infer the type expr would yield.
Infer can detect int, float, bool, rune, string, and composite literals, as well as the above wrapped in ternary expressions
If Infer returns an empty string, it could not identify the type.
func MixinParams ¶
MixinParams attempts to infer the type of m's params without an explicitly set type but a default expression.
When it succeeds, it stores the inferred type as file.MixinParam.InferredType.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.