fmt: short_module for enum values
parent
d38acb5487
commit
78fc9bd12b
|
@ -473,7 +473,8 @@ fn (f mut Fmt) expr(node ast.Expr) {
|
|||
f.write('`$it.val`')
|
||||
}
|
||||
ast.EnumVal {
|
||||
f.write(it.enum_name + '.' + it.val)
|
||||
name := short_module(it.enum_name)
|
||||
f.write(name + '.' + it.val)
|
||||
}
|
||||
ast.FloatLiteral {
|
||||
f.write(it.val)
|
||||
|
|
Loading…
Reference in New Issue