Skip to content

Commit

Permalink
Merge branch 'sync/mr/pmderodat/unparsing-trivias' into 'master'
Browse files Browse the repository at this point in the history
Unparsing: trivias preservation

See merge request eng/libadalang/libadalang!1664
  • Loading branch information
pmderodat committed Jun 10, 2024
2 parents 338db9d + 7ba5ce8 commit 3a68c32
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extensions/default_unparsing_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5746,5 +5746,6 @@
]
}
}
}
},
"max_empty_lines": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ protected body Shared_Array is
begin
return Table (N);
end Component;

procedure Set_Component (N : in Index; E : in Item)
is
begin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ protected body Resource is
begin
Busy := True;
end Seize;

procedure Release
is
begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
type Expr (Kind : Expr_Kind_Type) is
record

Count : Integer;

case Kind is
when Bin_Op_A | Bin_Op_B =>
L, R : Expr_Access;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
type Expr (Kind : Expr_Kind_Type) is
record

case Kind is
when Bin_Op_A | Bin_Op_B =>
L, R : Expr_Access;

when Num =>
Val : Integer;
end case;
end record;
end record;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
task Controller is
entry Request (Level) (D : Item);
entry Request (Level) (D : Item); -- a family of entries
end Controller;

0 comments on commit 3a68c32

Please sign in to comment.