fix #1478
This commit is contained in:
parent
528621ac4c
commit
df0594cfd4
|
|
@ -1294,12 +1294,12 @@ namespace CodeFormatters
|
|||
|
||||
public override void visit(typed_parameters _typed_parametres)
|
||||
{
|
||||
if (_typed_parametres.attributes != null)
|
||||
/*if (_typed_parametres.attributes != null)
|
||||
{
|
||||
attr_on_new_line = false;
|
||||
visit_node(_typed_parametres.attributes);
|
||||
attr_on_new_line = true;
|
||||
}
|
||||
}*/
|
||||
if (_typed_parametres.param_kind != parametr_kind.none)
|
||||
{
|
||||
string s = GetParamKind(_typed_parametres.param_kind);
|
||||
|
|
@ -1335,6 +1335,11 @@ namespace CodeFormatters
|
|||
{
|
||||
if (i > 0)
|
||||
add_space_after = true;
|
||||
if (_formal_parametres.params_list[i].attributes != null)
|
||||
{
|
||||
add_space_after = true;
|
||||
}
|
||||
|
||||
visit_node(_formal_parametres.params_list[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9
TestSuite/formatter_tests/input/attributes1.pas
Normal file
9
TestSuite/formatter_tests/input/attributes1.pas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
type
|
||||
TAttr = class(System.Attribute)
|
||||
end;
|
||||
|
||||
procedure P1([TAttr]x: byte) := exit;
|
||||
|
||||
|
||||
begin
|
||||
end.
|
||||
9
TestSuite/formatter_tests/should/attributes1.pas
Normal file
9
TestSuite/formatter_tests/should/attributes1.pas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
type
|
||||
TAttr = class(System.Attribute)
|
||||
end;
|
||||
|
||||
procedure P1([TAttr] x: byte) := exit;
|
||||
|
||||
|
||||
begin
|
||||
end.
|
||||
Loading…
Reference in a new issue