@@ -176,6 +176,9 @@ package body Ada2WSDL.Parser is
176
176
177
177
package Compute is
178
178
179
+ -- Compute package is used to compute the range and values for
180
+ -- Bin_Op and Expr nodes.
181
+
179
182
generic
180
183
type T is private ;
181
184
Zero : T;
@@ -448,11 +451,11 @@ package body Ada2WSDL.Parser is
448
451
procedure Analyze_Subtype (Node : Subtype_Decl'Class) is
449
452
450
453
T_Name : constant String := Img (Node.F_Name);
451
- NS : constant String := Name_Space (Node);
452
-
453
454
T_Decl : constant Base_Type_Decl :=
454
455
Node.F_Subtype.P_Designated_Type_Decl;
456
+ NS : constant String := Name_Space (Node);
455
457
T_Def : constant Type_Def := T_Decl.As_Type_Decl.F_Type_Def;
458
+
456
459
Lower, Upper : Long_Long_Integer;
457
460
Type_Suffix : Unbounded_String;
458
461
Array_Len : Natural;
@@ -477,9 +480,6 @@ package body Ada2WSDL.Parser is
477
480
Array_Len);
478
481
end ;
479
482
480
- -- ?? check if this can be used:
481
- -- Analyze_Array
482
- -- (T_Decl, T_Name, Node, T_Def.As_Array_Type_Def);
483
483
else
484
484
Generator.Register_Derived
485
485
(Name_Space (Node), T_Name,
@@ -630,7 +630,7 @@ package body Ada2WSDL.Parser is
630
630
procedure Analyze_Record (Node : Record_Type_Def'Class) is
631
631
632
632
procedure Analyze_Field (Node : Component_Decl);
633
- -- ???
633
+ -- Analyze every record fields
634
634
635
635
-- -----------------
636
636
-- Analyze_Field --
@@ -935,6 +935,10 @@ package body Ada2WSDL.Parser is
935
935
end if ;
936
936
end From_Subtype ;
937
937
938
+ -- ----------------
939
+ -- Get_Range_Op --
940
+ -- ----------------
941
+
938
942
function Get_Range_Op (R : Range_Spec) return Bin_Op is
939
943
(if R = No_Range_Spec
940
944
then No_Bin_Op
@@ -1084,13 +1088,13 @@ package body Ada2WSDL.Parser is
1084
1088
1085
1089
use type GNATCOLL.VFS.Filesystem_String;
1086
1090
1091
+ Project : constant GPR.Project_Tree_Access :=
1092
+ new GPR.Project_Tree;
1087
1093
Project_Filename : constant String :=
1088
1094
To_String (Options.Project_Filename);
1089
1095
Project_File : constant GNATCOLL.VFS.Virtual_File :=
1090
1096
GNATCOLL.VFS.Create (+Project_Filename);
1091
-
1092
- Env : GPR.Project_Environment_Access;
1093
- Project : constant GPR.Project_Tree_Access := new GPR.Project_Tree;
1097
+ Env : GPR.Project_Environment_Access;
1094
1098
begin
1095
1099
GPR.Initialize (Env);
1096
1100
Project.Load (Project_File, Env);
@@ -1293,9 +1297,10 @@ package body Ada2WSDL.Parser is
1293
1297
Prev_Index : Natural;
1294
1298
First : Positive := Deferred_Types'First;
1295
1299
begin
1296
- -- When analysing the deferred types we could have some more types
1297
- -- discoverred. Do the analyse of the defintions until there is no
1298
- -- more added into the deferred list.
1300
+ -- When analysing the deferred types we could have some
1301
+ -- more types discoverred. Do the analyse of the
1302
+ -- defintions until there is no more added into the
1303
+ -- deferred list.
1299
1304
1300
1305
loop
1301
1306
Prev_Index := Index;
@@ -1423,9 +1428,9 @@ package body Ada2WSDL.Parser is
1423
1428
if T_Name = " string" then
1424
1429
return Build_Type (" string" );
1425
1430
1426
- elsif T_Name = " soap_base64"
1427
- or else T_Name = " utils.soap_base64"
1428
- or else T_Name = " soap.utils.soap_base64"
1431
+ elsif T_Name in " soap_base64"
1432
+ | " utils.soap_base64"
1433
+ | " soap.utils.soap_base64"
1429
1434
then
1430
1435
return Build_Type (" SOAP_Base64" );
1431
1436
@@ -1727,9 +1732,9 @@ package body Ada2WSDL.Parser is
1727
1732
T_Name : constant String := Characters.Handling.To_Lower (Name);
1728
1733
begin
1729
1734
if T_Name in " unbounded_string"
1730
- | " unbounded.unbounded_string"
1731
- | " strings.unbounded.unbounded_string"
1732
- | " ada.strings.unbounded.unbounded_string"
1735
+ | " unbounded.unbounded_string"
1736
+ | " strings.unbounded.unbounded_string"
1737
+ | " ada.strings.unbounded.unbounded_string"
1733
1738
then
1734
1739
if Base then
1735
1740
return Build_Type (" string" );
0 commit comments