mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
table: Type str()
This commit is contained in:
parent
2a99422386
commit
823b8ad244
@ -89,6 +89,10 @@ pub enum Kind {
|
|||||||
enum_
|
enum_
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn (t &TypeSymbol) str() string {
|
||||||
|
return t.name.replace('array_', '[]')
|
||||||
|
}
|
||||||
|
|
||||||
[inline]
|
[inline]
|
||||||
pub fn (t &TypeSymbol) enum_info() Enum {
|
pub fn (t &TypeSymbol) enum_info() Enum {
|
||||||
match t.info {
|
match t.info {
|
||||||
@ -155,6 +159,7 @@ pub fn (t TypeSymbol) str() string {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
pub fn (t mut Table) register_builtin_type_symbols() {
|
pub fn (t mut Table) register_builtin_type_symbols() {
|
||||||
// reserve index 0 so nothing can go there
|
// reserve index 0 so nothing can go there
|
||||||
// save index check, 0 will mean not found
|
// save index check, 0 will mean not found
|
||||||
|
Loading…
Reference in New Issue
Block a user