parser: fix indentation to tabs (#6548)

pull/6546/head
Henrixounez 2020-10-03 14:20:41 +02:00 committed by GitHub
parent 5aea0d024f
commit a9da4dd437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 19 deletions

View File

@ -73,7 +73,7 @@ fn (p []Param) equals(o []Param) bool {
if p.len != o.len {
return false
}
for i in 0..p.len {
for i in 0 .. p.len {
if !p[i].equals(o[i]) {
return false
}
@ -406,15 +406,15 @@ pub fn (t &Table) known_type(name string) bool {
[inline]
pub fn (t &Table) array_name(elem_type Type, nr_dims int) string {
elem_type_sym := t.get_type_symbol(elem_type)
mut res := ''
if elem_type.is_ptr() {
res = '_ptr'.repeat(elem_type.nr_muls())
}
if nr_dims > 1 {
res += '_${nr_dims}d'
}
return 'array_$elem_type_sym.name' + res
elem_type_sym := t.get_type_symbol(elem_type)
mut res := ''
if elem_type.is_ptr() {
res = '_ptr'.repeat(elem_type.nr_muls())
}
if nr_dims > 1 {
res += '_${nr_dims}d'
}
return 'array_$elem_type_sym.name' + res
}
// array_source_name generates the original name for the v source.
@ -428,15 +428,15 @@ pub fn (t &Table) array_source_name(elem_type Type) string {
[inline]
pub fn (t &Table) array_fixed_name(elem_type Type, size, nr_dims int) string {
elem_type_sym := t.get_type_symbol(elem_type)
mut res := ''
if elem_type.is_ptr() {
res = '_ptr'
}
if nr_dims > 1 {
res += '_${nr_dims}d'
}
return 'array_fixed_${elem_type_sym.name}_$size' + res
elem_type_sym := t.get_type_symbol(elem_type)
mut res := ''
if elem_type.is_ptr() {
res = '_ptr'
}
if nr_dims > 1 {
res += '_${nr_dims}d'
}
return 'array_fixed_${elem_type_sym.name}_$size' + res
}
// array_fixed_source_name generates the original name for the v source.