From a9da4dd4377579905cdfd3b9257f2138913127c4 Mon Sep 17 00:00:00 2001 From: Henrixounez <30901439+Henrixounez@users.noreply.github.com> Date: Sat, 3 Oct 2020 14:20:41 +0200 Subject: [PATCH] parser: fix indentation to tabs (#6548) --- vlib/v/table/table.v | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/vlib/v/table/table.v b/vlib/v/table/table.v index 6fa4f00a12..de1988a6c5 100644 --- a/vlib/v/table/table.v +++ b/vlib/v/table/table.v @@ -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.