MCPcopy Create free account
hub / github.com/alaingilbert/agl / parseSimpleStmt

Method parseSimpleStmt

pkg/parser/parser.go:2437–2508  ·  view source on GitHub ↗

parseSimpleStmt returns true as 2nd result if it parsed the assignment of a range clause (with mode == rangeOk). The returned statement is an assignment with a right-hand side that is a single unary expression of the form "range x". No guarantees are given for the left-hand side.

(mode int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

parseIfHeaderMethod · 0.95
parseGuardStmtMethod · 0.95
parseSwitchStmtMethod · 0.95
parseForStmtMethod · 0.95
parseStmtMethod · 0.95

Calls 9

parseListMethod · 0.95
nextMethod · 0.95
parseRhsMethod · 0.95
errorExpectedMethod · 0.95
parseStmtMethod · 0.95
errorMethod · 0.95
unFunction · 0.85
traceFunction · 0.85
PosMethod · 0.65

Tested by

no test coverage detected