1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00

removed semantic check from parsers

R=rsc
CC=golang-dev
https://golang.org/cl/179099
This commit is contained in:
Robert Griesemer 2009-12-18 10:51:47 -08:00
parent 10e85dfee4
commit c5f41cc58c
2 changed files with 0 additions and 6 deletions

View File

@ -1284,9 +1284,6 @@ func (p *parser) parseSimpleStmt(labelOk bool) ast.Stmt {
pos, tok := p.pos, p.tok
p.next()
y := p.parseExprList()
if len(x) > 1 && len(y) > 1 && len(x) != len(y) {
p.Error(x[0].Pos(), "arity of lhs doesn't match rhs")
}
return &ast.AssignStmt{x, pos, tok, y}
}

View File

@ -1238,9 +1238,6 @@ func (p *parser) parseSimpleStmt(labelOk bool) ast.Stmt {
pos, tok := p.pos, p.tok
p.next()
y := p.parseExprList()
if len(x) > 1 && len(y) > 1 && len(x) != len(y) {
p.Error(x[0].Pos(), "arity of lhs doesn't match rhs")
}
return &ast.AssignStmt{x, pos, tok, y}
}