[Ada] Fix style in resolution of expression with actions
authorPiotr Trojanek <trojanek@adacore.com>
Sat, 22 Jan 2022 18:39:52 +0000 (19:39 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 10 May 2022 08:19:28 +0000 (08:19 +0000)
gcc/ada/

* sem_res.adb (Resolve_Expression_With_Actions): Fix style in
nested routines.

gcc/ada/sem_res.adb

index 538f860..a59ffe7 100644 (file)
@@ -9136,6 +9136,10 @@ package body Sem_Res is
       --  Expr is an expression with compile-time-known value. This returns the
       --  literal node that reprsents that value.
 
+      -------------------
+      -- OK_For_Static --
+      -------------------
+
       function OK_For_Static (Act : Node_Id) return Boolean is
       begin
          case Nkind (Act) is
@@ -9161,6 +9165,10 @@ package body Sem_Res is
          return False;
       end OK_For_Static;
 
+      -----------------------
+      -- All_OK_For_Static --
+      -----------------------
+
       function All_OK_For_Static return Boolean is
          Act : Node_Id := First (Actions (N));
       begin
@@ -9175,6 +9183,10 @@ package body Sem_Res is
          return True;
       end All_OK_For_Static;
 
+      -----------------
+      -- Get_Literal --
+      -----------------
+
       function Get_Literal (Expr : Node_Id) return Node_Id is
          pragma Assert (Compile_Time_Known_Value (Expr));
          Result : Node_Id;
@@ -9198,8 +9210,12 @@ package body Sem_Res is
          return Result;
       end Get_Literal;
 
+      --  Local variables
+
       Loc : constant Source_Ptr := Sloc (N);
 
+   --  Start of processing for Resolve_Expression_With_Actions
+
    begin
       Set_Etype (N, Typ);