ci: more gen.js fixes
parent
868d3e1008
commit
bb2a324d61
|
@ -1,5 +1,7 @@
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
|
type byte = u8
|
||||||
|
|
||||||
pub fn (i i8) str() string {
|
pub fn (i i8) str() string {
|
||||||
mut res := ''
|
mut res := ''
|
||||||
#res.str = i.val.toString()
|
#res.str = i.val.toString()
|
||||||
|
|
|
@ -19,7 +19,7 @@ const (
|
||||||
'try', 'typeof', 'var', 'void', 'while', 'with', 'yield', 'Number', 'String', 'Boolean',
|
'try', 'typeof', 'var', 'void', 'while', 'with', 'yield', 'Number', 'String', 'Boolean',
|
||||||
'Array', 'Map', 'document', 'Promise']
|
'Array', 'Map', 'document', 'Promise']
|
||||||
// used to generate type structs
|
// 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']
|
'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,
|
shallow_equatables = [ast.Kind.i8, .i16, .int, .i64, .u8, .u16, .u32, .u64, .f32, .f64,
|
||||||
.int_literal, .float_literal, .bool, .string]
|
.int_literal, .float_literal, .bool, .string]
|
||||||
|
|
Loading…
Reference in New Issue