1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: clean up in parser.v (#18247)

This commit is contained in:
yuyi 2023-05-24 11:51:15 +08:00 committed by GitHub
parent e8046439f0
commit 099d4fc06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3027,27 +3027,6 @@ fn (mut p Parser) index_expr(left ast.Expr, is_gated bool) ast.IndexExpr {
}
}
fn (mut p Parser) scope_register_it() {
p.scope.register(ast.Var{
name: 'it'
pos: p.tok.pos()
is_used: true
})
}
fn (mut p Parser) scope_register_ab() {
p.scope.register(ast.Var{
name: 'a'
pos: p.tok.pos()
is_used: true
})
p.scope.register(ast.Var{
name: 'b'
pos: p.tok.pos()
is_used: true
})
}
fn (mut p Parser) dot_expr(left ast.Expr) ast.Expr {
p.next()
if p.tok.kind == .dollar {