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:
parent
e8046439f0
commit
099d4fc06f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user