ci: fix v fmt test, by formatting cgen.v and atypes.v

pull/6299/head
Delyan Angelov 2020-10-11 10:00:53 +03:00
parent 604b28b1c5
commit c7e0a27e0d
2 changed files with 5 additions and 8 deletions

View File

@ -629,7 +629,7 @@ pub fn (mut g Gen) write_multi_return_type_declaration(mut sym table.TypeSymbol)
pub fn (mut g Gen) write_multi_return_types() {
g.type_definitions.writeln('\n// BEGIN_multi_return_structs')
for idx in 0..g.table.types.len {
for idx in 0 .. g.table.types.len {
if g.table.types[idx].kind != .multi_return {
continue
}

View File

@ -15,8 +15,8 @@ import strings
pub type Type = int
pub type TypeInfo = Alias | Array | ArrayFixed | Chan | Enum | FnType | GenericStructInst |
Interface | Map | MultiReturn | Struct | SumType | Aggregate
pub type TypeInfo = Aggregate | Alias | Array | ArrayFixed | Chan | Enum | FnType | GenericStructInst |
Interface | Map | MultiReturn | Struct | SumType
pub enum Language {
v
@ -737,7 +737,7 @@ pub struct Aggregate {
mut:
fields []Field // used for faster lookup inside the module
pub:
types []Type
types []Type
}
// NB: FExpr here is a actually an ast.Expr .
@ -762,10 +762,7 @@ pub mut:
fn (f &Field) equals(o &Field) bool {
// TODO: should all of those be checked ?
return f.name == o.name &&
f.typ == o.typ &&
f.is_pub == o.is_pub &&
f.is_mut == o.is_mut &&
f.is_global == o.is_global
f.typ == o.typ && f.is_pub == o.is_pub && f.is_mut == o.is_mut && f.is_global == o.is_global
}
pub struct Array {