mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Prepare array and slice tokens
This commit is contained in:
1 parent
97aab37462
commit
2b91e7861c
12 files changed
+81
-68
No files matched your search
+2
-2
@@ -389,9 +389,9 @@ func (p *parser) parseTypeExpr() (*a.TypeExpr, error) {
|
||||
|
||||
if p.peek1().Key() == t.KeyOpenBracket {
|
||||
p.src = p.src[1:]
|
||||
decorator, lhs := t.IDColon, (*a.Expr)(nil)
|
||||
decorator, lhs := t.IDSlice, (*a.Expr)(nil)
|
||||
if p.peek1().Key() != t.KeyCloseBracket {
|
||||
decorator = t.IDOpenBracket
|
||||
decorator = t.IDArray
|
||||
var err error
|
||||
lhs, err = p.parseExpr()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user