go/src/cmd/compile/internal/types2/literals.go

// langCompat reports an error if the representation of a numeric
// literal is not compatible with the current language version.
func (check *Checker) langCompat(lit *syntax.BasicLit) {}

func (check *Checker) basicLit(x *operand, e *syntax.BasicLit) {}

func (check *Checker) funcLit(x *operand, e *syntax.FuncLit) {}

func (check *Checker) compositeLit(x *operand, e *syntax.CompositeLit, hint Type) {}

// indexedElts checks the elements (elts) of an array or slice composite literal
// against the literal's element type (typ), and the element indices against
// the literal length if known (length >= 0). It returns the length of the
// literal (maximum index value + 1).
func (check *Checker) indexedElts(elts []syntax.Expr, typ Type, length int64) int64 {}