ci: more gen.js fixes

master
Delyan Angelov 2022-04-15 20:50:51 +03:00
parent 868d3e1008
commit bb2a324d61
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
module builtin
type byte = u8
pub fn (i i8) str() string {
mut res := ''
#res.str = i.val.toString()

View File

@ -19,7 +19,7 @@ const (
'try', 'typeof', 'var', 'void', 'while', 'with', 'yield', 'Number', 'String', 'Boolean',
'Array', 'Map', 'document', 'Promise']
// used to generate type structs
v_types = ['i8', 'i16', 'int', 'i64', 'byte', 'u16', 'u32', 'u64', 'f32', 'f64',
v_types = ['i8', 'i16', 'int', 'i64', 'u8', 'u16', 'u32', 'u64', 'f32', 'f64',
'int_literal', 'float_literal', 'bool', 'string', 'map', 'array', 'rune', 'any', 'voidptr']
shallow_equatables = [ast.Kind.i8, .i16, .int, .i64, .u8, .u16, .u32, .u64, .f32, .f64,
.int_literal, .float_literal, .bool, .string]