mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: vfmt -verify more important files
This commit is contained in:
parent
d2d3289a2a
commit
a51c445df8
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -84,7 +84,11 @@ jobs:
|
||||
./v fmt -verify vlib/v/checker/checker.v
|
||||
./v fmt -verify vlib/v/fmt/fmt.v
|
||||
./v fmt -verify vlib/v/parser/parser.v
|
||||
./v fmt -verify vlib/v/parser/fn.v
|
||||
./v fmt -verify vlib/v/scanner/scanner.v
|
||||
./v fmt -verify vlib/v/table/table.v
|
||||
./v fmt -verify vlib/v/gen/cgen.v
|
||||
./v fmt -verify vlib/v/gen/fn.v
|
||||
./v fmt -verify vlib/v/gen/x64/gen.v
|
||||
# - name: Test v binaries
|
||||
# run: ./v -silent build-vbinaries
|
||||
|
@ -211,7 +211,7 @@ pub fn (t &Table) type_find_method(s &TypeSymbol, name string) ?Fn {
|
||||
if ts.parent_idx == 0 {
|
||||
break
|
||||
}
|
||||
ts = unsafe { &t.types[ts.parent_idx] }
|
||||
ts = unsafe {&t.types[ts.parent_idx]}
|
||||
}
|
||||
return none
|
||||
}
|
||||
@ -270,7 +270,7 @@ pub fn (t &Table) struct_find_field(s &TypeSymbol, name string) ?Field {
|
||||
if ts.parent_idx == 0 {
|
||||
break
|
||||
}
|
||||
ts = unsafe { &t.types[ts.parent_idx] }
|
||||
ts = unsafe {&t.types[ts.parent_idx]}
|
||||
}
|
||||
return none
|
||||
}
|
||||
@ -294,7 +294,7 @@ pub fn (t &Table) get_type_symbol(typ Type) &TypeSymbol {
|
||||
// println('get_type_symbol $typ')
|
||||
idx := typ.idx()
|
||||
if idx > 0 {
|
||||
return unsafe{ &t.types[idx] }
|
||||
return unsafe {&t.types[idx]}
|
||||
}
|
||||
// this should never happen
|
||||
panic('get_type_symbol: invalid type (typ=$typ idx=$idx). Compiler bug. This should never happen')
|
||||
@ -310,7 +310,7 @@ pub fn (t &Table) get_final_type_symbol(typ Type) &TypeSymbol {
|
||||
alias_info := current_type.info as Alias
|
||||
return t.get_final_type_symbol(alias_info.parent_type)
|
||||
}
|
||||
return unsafe { &t.types[idx] }
|
||||
return unsafe {&t.types[idx]}
|
||||
}
|
||||
// this should never happen
|
||||
panic('get_final_type_symbol: invalid type (typ=$typ idx=$idx). Compiler bug. This should never happen')
|
||||
|
Loading…
Reference in New Issue
Block a user