mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: use prefixed names for functions and global symbols (#11387)
This commit is contained in:
@ -2,7 +2,49 @@ module builtin
|
||||
|
||||
pub fn (i int) str() string {
|
||||
mut res := ''
|
||||
#res = new builtin.string( i )
|
||||
#res = new string( i )
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (i i64) str() string {
|
||||
mut res := ''
|
||||
#res = new string( i )
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (i u32) str() string {
|
||||
mut res := ''
|
||||
#res = new string( i )
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (i u64) str() string {
|
||||
mut res := ''
|
||||
#res = new string( i )
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (i bool) str() string {
|
||||
mut res := ''
|
||||
#res = new string( i )
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (i any) str() string {
|
||||
mut res := ''
|
||||
#res = new string( i.toString() )
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (i int_literal) str() string {
|
||||
res := ''
|
||||
#res.str = i.val.toString()
|
||||
|
||||
return res
|
||||
}
|
||||
|
Reference in New Issue
Block a user