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

final vfmt run before CI check

This commit is contained in:
Alexander Medvednikov
2019-12-22 00:54:37 +03:00
parent 2b9392c46c
commit ef28a6b872
10 changed files with 92 additions and 86 deletions

View File

@@ -227,7 +227,6 @@ fn (p mut Parser) name_expr() string {
p.string_expr()
return 'charptr'
}
// known_type := p.table.known_type(name)
orig_name := name
is_c := name == 'C' && p.peek() == .dot
@@ -722,18 +721,13 @@ fn (p mut Parser) factor() string {
.key_offsetof {
p.next()
p.check(.lpar)
offsetof_typ := p.get_type()
p.check(.comma)
member := p.check_name()
p.check(.rpar)
p.gen('__offsetof($offsetof_typ, $member)')
return 'int'
}
.amp, .dot, .mul {
// (dot is for enum vals: `.green`)
return p.name_expr()