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

Method primaryExpression

parser.go:133–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (p *parser) primaryExpression() (e exprDesc) {
134 switch p.t {
135 case '(':
136 line := p.lineNumber
137 p.next()
138 e = p.expression()
139 p.checkMatch(')', '(', line)
140 e = p.function.DischargeVariables(e)
141 case tkName:
142 e = p.singleVariable()
143 default:
144 p.syntaxError("unexpected symbol")
145 }
146 return
147}
148
149func (p *parser) suffixedExpression() exprDesc {
150 line := p.lineNumber

Callers 1

suffixedExpressionMethod · 0.95

Calls 6

expressionMethod · 0.95
singleVariableMethod · 0.95
checkMatchMethod · 0.80
DischargeVariablesMethod · 0.80
syntaxErrorMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected