MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / expr

Method expr

types/expr.go:1773–1777  ·  view source on GitHub ↗

expr typechecks expression e and initializes x with the expression value. The result must be a single value. If an error occurred, x.mode is set to invalid.

(x *operand, e Expr)

Source from the content-addressed store, hash-verified

1771// If an error occurred, x.mode is set to invalid.
1772//
1773func (check *Checker) expr(x *operand, e Expr) {
1774 check.rawExpr(x, e, nil, false)
1775 check.exclude(x, 1<<novalue|1<<builtin|1<<typexpr)
1776 check.singleValue(x)
1777}
1778
1779// multiExpr is like expr but the result may also be a multi-value.
1780func (check *Checker) multiExpr(x *operand, e Expr) {

Callers 15

indexExprMethod · 0.95
sliceExprMethod · 0.95
indexMethod · 0.95
assignVarMethod · 0.95
builtinMethod · 0.95
unaryMethod · 0.95
binaryMethod · 0.95
exprInternalMethod · 0.95
constDeclMethod · 0.95
varDeclMethod · 0.95
callExprMethod · 0.95
exprListMethod · 0.95

Calls 3

rawExprMethod · 0.95
excludeMethod · 0.95
singleValueMethod · 0.95

Tested by

no test coverage detected