ci: fix v fmt test, by formatting cgen.v and atypes.v
parent
604b28b1c5
commit
c7e0a27e0d
|
@ -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() {
|
pub fn (mut g Gen) write_multi_return_types() {
|
||||||
g.type_definitions.writeln('\n// BEGIN_multi_return_structs')
|
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 {
|
if g.table.types[idx].kind != .multi_return {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,8 @@ import strings
|
||||||
|
|
||||||
pub type Type = int
|
pub type Type = int
|
||||||
|
|
||||||
pub type TypeInfo = Alias | Array | ArrayFixed | Chan | Enum | FnType | GenericStructInst |
|
pub type TypeInfo = Aggregate | Alias | Array | ArrayFixed | Chan | Enum | FnType | GenericStructInst |
|
||||||
Interface | Map | MultiReturn | Struct | SumType | Aggregate
|
Interface | Map | MultiReturn | Struct | SumType
|
||||||
|
|
||||||
pub enum Language {
|
pub enum Language {
|
||||||
v
|
v
|
||||||
|
@ -737,7 +737,7 @@ pub struct Aggregate {
|
||||||
mut:
|
mut:
|
||||||
fields []Field // used for faster lookup inside the module
|
fields []Field // used for faster lookup inside the module
|
||||||
pub:
|
pub:
|
||||||
types []Type
|
types []Type
|
||||||
}
|
}
|
||||||
|
|
||||||
// NB: FExpr here is a actually an ast.Expr .
|
// NB: FExpr here is a actually an ast.Expr .
|
||||||
|
@ -762,10 +762,7 @@ pub mut:
|
||||||
fn (f &Field) equals(o &Field) bool {
|
fn (f &Field) equals(o &Field) bool {
|
||||||
// TODO: should all of those be checked ?
|
// TODO: should all of those be checked ?
|
||||||
return f.name == o.name &&
|
return f.name == o.name &&
|
||||||
f.typ == o.typ &&
|
f.typ == o.typ && f.is_pub == o.is_pub && f.is_mut == o.is_mut && f.is_global == o.is_global
|
||||||
f.is_pub == o.is_pub &&
|
|
||||||
f.is_mut == o.is_mut &&
|
|
||||||
f.is_global == o.is_global
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Array {
|
pub struct Array {
|
||||||
|
|
Loading…
Reference in New Issue