MCPcopy Index your code
hub / github.com/Shopify/go-lua / expressionStatement

Method expressionStatement

parser.go:586–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584}
585
586func (p *parser) expressionStatement() {
587 if e := p.suffixedExpression(); p.t == '=' || p.t == ',' {
588 p.assignment(&assignmentTarget{exprDesc: e}, 1)
589 } else {
590 p.checkCondition(e.kind == kindCall, "syntax error")
591 p.function.Instruction(e).setC(1) // call statement uses no results
592 }
593}
594
595func (p *parser) returnStatement() {
596 if f := p.function; p.blockFollow(true) || p.t == ';' {

Callers 1

statementMethod · 0.95

Calls 5

suffixedExpressionMethod · 0.95
assignmentMethod · 0.95
checkConditionMethod · 0.95
setCMethod · 0.80
InstructionMethod · 0.80

Tested by

no test coverage detected