updated browser capabilities file
[mono.git] / mcs / gmcs / rootcontext.cs
1 //
2 // rootcontext.cs: keeps track of our tree representation, and assemblies loaded.
3 //
4 // Author: Miguel de Icaza (miguel@ximian.com)
5 //         Ravi Pratap     (ravi@ximian.com)
6 //
7 // Licensed under the terms of the GNU GPL
8 //
9 // (C) 2001 Ximian, Inc (http://www.ximian.com)
10
11 using System;
12 using System.Collections;
13 using System.Reflection;
14 using System.Reflection.Emit;
15 using System.Diagnostics;
16
17 namespace Mono.CSharp {
18
19         public class RootContext {
20
21                 //
22                 // Contains the parsed tree
23                 //
24                 static Tree tree;
25
26                 //
27                 // This hashtable contains all of the #definitions across the source code
28                 // it is used by the ConditionalAttribute handler.
29                 //
30                 public static Hashtable AllDefines = new Hashtable ();
31                 
32                 //
33                 // Whether we are being linked against the standard libraries.
34                 // This is only used to tell whether `System.Object' should
35                 // have a parent or not.
36                 //
37                 public static bool StdLib = true;
38
39                 //
40                 // This keeps track of the order in which classes were defined
41                 // so that we can poulate them in that order.
42                 //
43                 // Order is important, because we need to be able to tell by
44                 // examining the parent's list of methods which ones are virtual
45                 // or abstract as well as the parent names (to implement new, 
46                 // override).
47                 //
48                 static ArrayList type_container_resolve_order;
49                 static ArrayList interface_resolve_order;
50                 static ArrayList attribute_types;
51
52                 //
53                 // Holds a reference to the Private Implementation Details
54                 // class.
55                 //
56                 static ArrayList helper_classes;
57                 
58                 static TypeBuilder impl_details_class;
59
60                 public static int WarningLevel = 2;
61
62                 public static Target Target = Target.Exe;
63                 public static string TargetExt = ".exe";
64
65                 //
66                 // If set, enable C# version 2 features
67                 //
68                 public static bool V2;
69                 //
70                 // Constructor
71                 //
72                 static RootContext ()
73                 {
74                         tree = new Tree ();
75                         interface_resolve_order = new ArrayList ();
76                         type_container_resolve_order = new ArrayList ();
77                 }
78
79                 public static bool NeedsEntryPoint {
80                         get {
81                                 return RootContext.Target == Target.Exe || RootContext.Target == Target.WinExe;
82                         }
83                 }
84
85                 static public Tree Tree {
86                         get {
87                                 return tree;
88                         }
89                 }
90
91                 static public string MainClass;
92                 
93                 public static void RegisterOrder (Interface iface)
94                 {
95                         interface_resolve_order.Add (iface);
96                 }
97                 
98                 public static void RegisterOrder (TypeContainer tc)
99                 {
100                         type_container_resolve_order.Add (tc);
101                 }
102
103                 public static void RegisterAttribute (TypeContainer tc)
104                 {
105                         if (attribute_types == null)
106                                 attribute_types = new ArrayList ();
107                         
108                         attribute_types.Add (tc);
109                 }
110                 
111                 // 
112                 // The default compiler checked state
113                 //
114                 static public bool Checked = false;
115
116                 //
117                 // Whether to allow Unsafe code
118                 //
119                 static public bool Unsafe = false;
120                 
121                 static string MakeFQN (string nsn, string name)
122                 {
123                         if (nsn == "")
124                                 return name;
125                         return String.Concat (nsn, ".", name);
126                 }
127
128                 // <remarks>
129                 //   This function is used to resolve the hierarchy tree.
130                 //   It processes interfaces, structs and classes in that order.
131                 //
132                 //   It creates the TypeBuilder's as it processes the user defined
133                 //   types.  
134                 // </remarks>
135                 static public void ResolveTree ()
136                 {
137                         //
138                         // Process the attribute types separately and before anything else
139                         //
140                         if (attribute_types != null)
141                                 foreach (TypeContainer tc in attribute_types)
142                                         tc.DefineType ();
143                         
144                         //
145                         // Interfaces are processed next, as classes and
146                         // structs might inherit from an object or implement
147                         // a set of interfaces, we need to be able to tell
148                         // them appart by just using the TypeManager.
149                         //
150                         TypeContainer root = Tree.Types;
151
152                         ArrayList ifaces = root.Interfaces;
153                         if (ifaces != null){
154                                 foreach (Interface i in ifaces) 
155                                         i.DefineType ();
156                         }
157
158                         foreach (TypeContainer tc in root.Types)
159                                 tc.DefineType ();
160
161                         if (root.Delegates != null)
162                                 foreach (Delegate d in root.Delegates) 
163                                         d.DefineType ();
164
165                         if (root.Enums != null)
166                                 foreach (Enum e in root.Enums)
167                                         e.DefineType ();
168                 }
169
170                 static void Error_TypeConflict (string name, Location loc)
171                 {
172                         Report.Error (
173                                 520, loc, "`" + name + "' conflicts with a predefined type");
174                 }
175
176                 static void Error_TypeConflict (string name)
177                 {
178                         Report.Error (
179                                 520, "`" + name + "' conflicts with a predefined type");
180                 }
181
182                 //
183                 // Resolves a single class during the corlib bootstrap process
184                 //
185                 static TypeBuilder BootstrapCorlib_ResolveClass (TypeContainer root, string name)
186                 {
187                         object o = root.GetDefinition (name);
188                         if (o == null){
189                                 Report.Error (518, "The predefined type `" + name + "' is not defined");
190                                 return null;
191                         }
192
193                         if (!(o is Class)){
194                                 if (o is DeclSpace){
195                                         DeclSpace d = (DeclSpace) o;
196
197                                         Error_TypeConflict (name, d.Location);
198                                 } else
199                                         Error_TypeConflict (name);
200
201                                 return null;
202                         }
203
204                         return ((DeclSpace) o).DefineType ();
205                 }
206
207                 //
208                 // Resolves a struct during the corlib bootstrap process
209                 //
210                 static void BootstrapCorlib_ResolveStruct (TypeContainer root, string name)
211                 {
212                         object o = root.GetDefinition (name);
213                         if (o == null){
214                                 Report.Error (518, "The predefined type `" + name + "' is not defined");
215                                 return;
216                         }
217
218                         if (!(o is Struct)){
219                                 if (o is DeclSpace){
220                                         DeclSpace d = (DeclSpace) o;
221
222                                         Error_TypeConflict (name, d.Location);
223                                 } else
224                                         Error_TypeConflict (name);
225
226                                 return;
227                         }
228
229                         ((DeclSpace) o).DefineType ();
230                 }
231
232                 //
233                 // Resolves a struct during the corlib bootstrap process
234                 //
235                 static void BootstrapCorlib_ResolveInterface (TypeContainer root, string name)
236                 {
237                         object o = root.GetDefinition (name);
238                         if (o == null){
239                                 Report.Error (518, "The predefined type `" + name + "' is not defined");
240                                 return;
241                         }
242
243                         if (!(o is Interface)){
244                                 if (o is DeclSpace){
245                                         DeclSpace d = (DeclSpace) o;
246
247                                         Error_TypeConflict (name, d.Location);
248                                 } else
249                                         Error_TypeConflict (name);
250
251                                 return;
252                         }
253
254                         ((DeclSpace) o).DefineType ();
255                 }
256
257                 //
258                 // Resolves a delegate during the corlib bootstrap process
259                 //
260                 static void BootstrapCorlib_ResolveDelegate (TypeContainer root, string name)
261                 {
262                         object o = root.GetDefinition (name);
263                         if (o == null){
264                                 Report.Error (518, "The predefined type `" + name + "' is not defined");
265                                 Environment.Exit (0);
266                         }
267
268                         if (!(o is Delegate)){
269                                 Error_TypeConflict (name);
270                                 return;
271                         }
272
273                         ((DeclSpace) o).DefineType ();
274                 }
275                 
276
277                 /// <summary>
278                 ///    Resolves the core types in the compiler when compiling with --nostdlib
279                 /// </summary>
280                 static public void ResolveCore ()
281                 {
282                         TypeContainer root = Tree.Types;
283
284                         TypeManager.object_type = BootstrapCorlib_ResolveClass (root, "System.Object");
285                         TypeManager.value_type = BootstrapCorlib_ResolveClass (root, "System.ValueType");
286                         TypeManager.attribute_type = BootstrapCorlib_ResolveClass (root, "System.Attribute");
287                         
288                         string [] interfaces_first_stage = {
289                                 "System.IComparable", "System.ICloneable",
290                                 "System.IConvertible",
291                                 
292                                 "System.Collections.IEnumerable",
293                                 "System.Collections.ICollection",
294                                 "System.Collections.IEnumerator",
295                                 "System.Collections.IList", 
296                                 "System.IAsyncResult",
297                                 "System.IDisposable",
298                                 
299                                 "System.Runtime.Serialization.ISerializable",
300
301                                 "System.Reflection.IReflect",
302                                 "System.Reflection.ICustomAttributeProvider"
303                         };
304
305                         foreach (string iname in interfaces_first_stage)
306                                 BootstrapCorlib_ResolveInterface (root, iname);
307
308                         //
309                         // These are the base value types
310                         //
311                         string [] structs_first_stage = {
312                                 "System.Byte",    "System.SByte",
313                                 "System.Int16",   "System.UInt16",
314                                 "System.Int32",   "System.UInt32",
315                                 "System.Int64",   "System.UInt64",
316                         };
317
318                         foreach (string cname in structs_first_stage)
319                                 BootstrapCorlib_ResolveStruct (root, cname);
320
321                         //
322                         // Now, we can load the enumerations, after this point,
323                         // we can use enums.
324                         //
325                         TypeManager.InitEnumUnderlyingTypes ();
326
327                         string [] structs_second_stage = {
328                                 "System.Single",  "System.Double",
329                                 "System.Char",    "System.Boolean",
330                                 "System.Decimal", "System.Void",
331                                 "System.RuntimeFieldHandle",
332                                 "System.RuntimeTypeHandle",
333                                 "System.IntPtr"
334                         };
335                         
336                         foreach (string cname in structs_second_stage)
337                                 BootstrapCorlib_ResolveStruct (root, cname);
338                         
339                         //
340                         // These are classes that depends on the core interfaces
341                         //
342                         string [] classes_second_stage = {
343                                 "System.Reflection.MemberInfo",
344                                 "System.Type",
345                                 "System.Exception",
346
347                                 //
348                                 // These are not really important in the order, but they
349                                 // are used by the compiler later on (typemanager/CoreLookupType-d)
350                                 //
351                                 "System.Runtime.CompilerServices.RuntimeHelpers",
352                                 "System.Reflection.DefaultMemberAttribute",
353                                 "System.Threading.Monitor",
354                                 
355                                 "System.AttributeUsageAttribute",
356                                 "System.Runtime.InteropServices.DllImportAttribute",
357                                 "System.Runtime.CompilerServices.MethodImplAttribute",
358                                 "System.Runtime.InteropServices.MarshalAsAttribute",
359                                 "System.Diagnostics.ConditionalAttribute",
360                                 "System.ObsoleteAttribute",
361                                 "System.ParamArrayAttribute",
362                                 "System.Security.UnverifiableCodeAttribute",
363                                 "System.Runtime.CompilerServices.IndexerNameAttribute",
364                                 "System.Runtime.InteropServices.InAttribute",
365                                 "System.InvalidOperationException"
366
367                         };
368
369                         // We must store them here before calling BootstrapCorlib_ResolveDelegate.
370                         TypeManager.string_type = BootstrapCorlib_ResolveClass (root, "System.String");
371                         TypeManager.enum_type = BootstrapCorlib_ResolveClass (root, "System.Enum");
372                         TypeManager.array_type = BootstrapCorlib_ResolveClass (root, "System.Array");
373                         TypeManager.multicast_delegate_type = BootstrapCorlib_ResolveClass (root, "System.MulticastDelegate");
374                         TypeManager.delegate_type = BootstrapCorlib_ResolveClass (root, "System.Delegate");
375                         
376                         foreach (string cname in classes_second_stage)
377                                 BootstrapCorlib_ResolveClass (root, cname);
378
379                         BootstrapCorlib_ResolveDelegate (root, "System.AsyncCallback");
380                 }
381                         
382                 // <summary>
383                 //   Closes all open types
384                 // </summary>
385                 //
386                 // <remarks>
387                 //   We usually use TypeBuilder types.  When we are done
388                 //   creating the type (which will happen after we have added
389                 //   methods, fields, etc) we need to "Define" them before we
390                 //   can save the Assembly
391                 // </remarks>
392                 static public void CloseTypes ()
393                 {
394                         TypeContainer root = Tree.Types;
395                         
396                         if (root.Enums != null)
397                                 foreach (Enum en in root.Enums)
398                                         en.CloseType ();
399
400                         if (attribute_types != null)
401                                 foreach (TypeContainer tc in attribute_types)
402                                         tc.CloseType ();
403                         
404                         foreach (Interface iface in interface_resolve_order)
405                                 iface.CloseType ();
406
407                         //
408                         // We do this in two passes, first we close the structs,
409                         // then the classes, because it seems the code needs it this
410                         // way.  If this is really what is going on, we should probably
411                         // make sure that we define the structs in order as well.
412                         //
413                         foreach (TypeContainer tc in type_container_resolve_order){
414                                 if (tc is Struct && tc.Parent == tree.Types){
415                                         tc.CloseType ();
416                                 }
417                         }
418
419                         foreach (TypeContainer tc in type_container_resolve_order){
420                                 if (!(tc is Struct && tc.Parent == tree.Types))
421                                         tc.CloseType ();                                        
422                         }
423                         
424                         if (root.Delegates != null)
425                                 foreach (Delegate d in root.Delegates)
426                                         d.CloseType ();
427
428
429                         //
430                         // If we have a <PrivateImplementationDetails> class, close it
431                         //
432                         if (helper_classes != null){
433                                 foreach (TypeBuilder type_builder in helper_classes)
434                                         type_builder.CreateType ();
435                         }
436                         
437                         attribute_types = null;
438                         interface_resolve_order = null;
439                         type_container_resolve_order = null;
440                         helper_classes = null;
441                         tree = null;
442                         TypeManager.CleanUp ();
443                 }
444
445                 /// <summary>
446                 ///   Used to register classes that need to be closed after all the
447                 ///   user defined classes
448                 /// </summary>
449                 public static void RegisterHelperClass (TypeBuilder helper_class)
450                 {
451                         if (helper_classes == null)
452                                 helper_classes = new ArrayList ();
453                         helper_classes.Add (helper_class);
454                 }
455                 
456                 //
457                 // This idea is from Felix Arrese-Igor
458                 //
459                 // Returns : the implicit parent of a composite namespace string
460                 //   eg. Implicit parent of A.B is A
461                 //
462                 static public string ImplicitParent (string ns)
463                 {
464                         int i = ns.LastIndexOf ('.');
465                         if (i < 0)
466                                 return null;
467                         
468                         return ns.Substring (0, i);
469                 }
470
471                 static Type NamespaceLookup (DeclSpace ds, string name, Location loc)
472                 {
473                         //
474                         // Try in the current namespace and all its implicit parents
475                         //
476                         for (NamespaceEntry ns = ds.NamespaceEntry; ns != null; ns = ns.ImplicitParent) {
477                                 object result = ns.Lookup (ds, name, loc);
478                                 if (result == null)
479                                         continue;
480
481                                 if (result is Type)
482                                         return (Type) result;
483
484                                 return null;
485                         }
486
487                         return null;
488                 }
489                 
490                 //
491                 // Public function used to locate types, this can only
492                 // be used after the ResolveTree function has been invoked.
493                 //
494                 // Returns: Type or null if they type can not be found.
495                 //
496                 // Come to think of it, this should be a DeclSpace
497                 //
498                 static public Type LookupType (DeclSpace ds, string name, bool silent, Location loc)
499                 {
500                         Type t;
501
502                         if (ds.Cache.Contains (name)){
503                                 t = (Type) ds.Cache [name];
504                                 if (t != null)
505                                         return t;
506                         } else {
507                                 //
508                                 // For the case the type we are looking for is nested within this one
509                                 // or is in any base class
510                                 //
511                                 DeclSpace containing_ds = ds;
512                                 while (containing_ds != null){
513                                         Type current_type = containing_ds.TypeBuilder;
514                                         
515                                         while (current_type != null) {
516                                                 //
517                                                 // nested class
518                                                 //
519                                                 t = TypeManager.LookupType (current_type.FullName + "." + name);
520                                                 if (t != null){
521                                                         ds.Cache [name] = t;
522                                                         return t;
523                                                 }
524                                                 
525                                                 current_type = current_type.BaseType;
526                                         }
527                                         
528                                         containing_ds = containing_ds.Parent;
529                                 }
530                                 
531                                 t = NamespaceLookup (ds, name, loc);
532                                 if (t != null){
533                                         ds.Cache [name] = t;
534                                         return t;
535                                 }
536                         }
537
538                         if (!silent)
539                                 Report.Error (246, loc, "Cannot find type `"+name+"'");
540                         
541                         return null;
542                 }
543
544                 // <summary>
545                 //   This is the silent version of LookupType, you can use this
546                 //   to `probe' for a type
547                 // </summary>
548                 static public Type LookupType (TypeContainer tc, string name, Location loc)
549                 {
550                         return LookupType (tc, name, true, loc);
551                 }
552
553                 static public bool IsNamespace (string name)
554                 {
555                         Namespace ns;
556
557                         if (tree.Namespaces != null){
558                                 ns = (Namespace) tree.Namespaces [name];
559
560                                 if (ns != null)
561                                         return true;
562                         }
563
564                         return false;
565                 }
566
567                 static void Report1530 (Location loc)
568                 {
569                         Report.Error (1530, loc, "Keyword new not allowed for namespace elements");
570                 }
571                 
572                 static public void PopulateCoreType (TypeContainer root, string name)
573                 {
574                         DeclSpace ds = (DeclSpace) root.GetDefinition (name);
575
576                         ds.DefineMembers (root);
577                         ds.Define (root);
578                 }
579                 
580                 static public void BootCorlib_PopulateCoreTypes ()
581                 {
582                         TypeContainer root = tree.Types;
583
584                         PopulateCoreType (root, "System.Object");
585                         PopulateCoreType (root, "System.ValueType");
586                         PopulateCoreType (root, "System.Attribute");
587                 }
588                 
589                 // <summary>
590                 //   Populates the structs and classes with fields and methods
591                 // </summary>
592                 //
593                 // This is invoked after all interfaces, structs and classes
594                 // have been defined through `ResolveTree' 
595                 static public void PopulateTypes ()
596                 {
597                         TypeContainer root = Tree.Types;
598
599                         if (attribute_types != null)
600                                 foreach (TypeContainer tc in attribute_types)
601                                         tc.DefineMembers (root);
602                         
603                         if (interface_resolve_order != null){
604                                 foreach (Interface iface in interface_resolve_order)
605                                         if ((iface.ModFlags & Modifiers.NEW) == 0)
606                                                 iface.DefineMembers (root);
607                                         else
608                                                 Report1530 (iface.Location);
609                         }
610
611
612                         if (type_container_resolve_order != null){
613                                 if (RootContext.StdLib){
614                                         foreach (TypeContainer tc in type_container_resolve_order)
615                                                 tc.DefineMembers (root);
616                                 } else {
617                                         foreach (TypeContainer tc in type_container_resolve_order) {
618                                                 // When compiling corlib, these types have already been
619                                                 // populated from BootCorlib_PopulateCoreTypes ().
620                                                 if (((tc.Name == "System.Object") ||
621                                                      (tc.Name == "System.Attribute") ||
622                                                      (tc.Name == "System.ValueType")))
623                                                 continue;
624
625                                                 tc.DefineMembers (root);
626                                         }
627                                 } 
628                         }
629
630                         ArrayList delegates = root.Delegates;
631                         if (delegates != null){
632                                 foreach (Delegate d in delegates)
633                                         if ((d.ModFlags & Modifiers.NEW) == 0)
634                                                 d.DefineMembers (root);
635                                         else
636                                                 Report1530 (d.Location);
637                         }
638
639                         ArrayList enums = root.Enums;
640                         if (enums != null){
641                                 foreach (Enum en in enums)
642                                         if ((en.ModFlags & Modifiers.NEW) == 0)
643                                                 en.DefineMembers (root);
644                                         else
645                                                 Report1530 (en.Location);
646                         }
647                 }
648
649                 //
650                 // A generic hook delegate
651                 //
652                 public delegate void Hook ();
653
654                 //
655                 // A hook invoked when the code has been generated.
656                 //
657                 public static event Hook EmitCodeHook;
658
659                 //
660                 // DefineTypes is used to fill in the members of each type.
661                 //
662                 static public void DefineTypes ()
663                 {
664                         TypeContainer root = Tree.Types;
665
666                         if (attribute_types != null)
667                                 foreach (TypeContainer tc in attribute_types)
668                                         tc.Define (root);
669                         
670                         if (interface_resolve_order != null){
671                                 foreach (Interface iface in interface_resolve_order)
672                                         if ((iface.ModFlags & Modifiers.NEW) == 0)
673                                                 iface.Define (root);
674                         }
675
676
677                         if (type_container_resolve_order != null){
678                                 foreach (TypeContainer tc in type_container_resolve_order) {
679                                         // When compiling corlib, these types have already been
680                                         // populated from BootCorlib_PopulateCoreTypes ().
681                                         if (!RootContext.StdLib &&
682                                             ((tc.Name == "System.Object") ||
683                                              (tc.Name == "System.Attribute") ||
684                                              (tc.Name == "System.ValueType")))
685                                                 continue;
686
687                                         if ((tc.ModFlags & Modifiers.NEW) == 0)
688                                                 tc.Define (root);
689                                 }
690                         }
691
692                         ArrayList delegates = root.Delegates;
693                         if (delegates != null){
694                                 foreach (Delegate d in delegates)
695                                         if ((d.ModFlags & Modifiers.NEW) == 0)
696                                                 d.Define (root);
697                         }
698
699                         ArrayList enums = root.Enums;
700                         if (enums != null){
701                                 foreach (Enum en in enums)
702                                         if ((en.ModFlags & Modifiers.NEW) == 0)
703                                                 en.Define (root);
704                         }
705                 }
706
707                 static public void EmitCode ()
708                 {
709                         //
710                         // Because of the strange way in which we do things, global
711                         // attributes must be processed first.
712                         //
713                         CodeGen.Assembly.Emit ();
714                         CodeGen.Module.Emit ();
715                         
716                         if (attribute_types != null)
717                                 foreach (TypeContainer tc in attribute_types)
718                                         tc.Emit ();
719
720                         if (interface_resolve_order != null){
721                                 foreach (Interface iface in interface_resolve_order)
722                                         iface.Emit (Tree.Types);
723                         }                        
724                         
725                         if (type_container_resolve_order != null) {
726                                 foreach (TypeContainer tc in type_container_resolve_order)
727                                         tc.EmitConstants ();
728                                 
729                                 foreach (TypeContainer tc in type_container_resolve_order)
730                                         tc.Emit ();
731                         }
732                         
733                         //
734                         // Run any hooks after all the types have been defined.
735                         // This is used to create nested auxiliary classes for example
736                         //
737
738                         if (EmitCodeHook != null)
739                                 EmitCodeHook ();
740                 }
741                 
742                 //
743                 // Public Field, used to track which method is the public entry
744                 // point.
745                 //
746                 static public MethodInfo EntryPoint;
747
748                 //
749                 // Track the location of the entry point.
750                 //
751                 static public Location EntryPointLocation;
752
753                 //
754                 // These are used to generate unique names on the structs and fields.
755                 //
756                 static int field_count;
757                 
758                 //
759                 // Makes an initialized struct, returns the field builder that
760                 // references the data.  Thanks go to Sergey Chaban for researching
761                 // how to do this.  And coming up with a shorter mechanism than I
762                 // was able to figure out.
763                 //
764                 // This works but makes an implicit public struct $ArrayType$SIZE and
765                 // makes the fields point to it.  We could get more control if we did
766                 // use instead:
767                 //
768                 // 1. DefineNestedType on the impl_details_class with our struct.
769                 //
770                 // 2. Define the field on the impl_details_class
771                 //
772                 static public FieldBuilder MakeStaticData (byte [] data)
773                 {
774                         FieldBuilder fb;
775                         
776                         if (impl_details_class == null){
777                                 impl_details_class = CodeGen.Module.Builder.DefineType (
778                                         "<PrivateImplementationDetails>",
779                                         TypeAttributes.NotPublic,
780                                         TypeManager.object_type);
781                                 
782                                 RegisterHelperClass (impl_details_class);
783                         }
784
785                         fb = impl_details_class.DefineInitializedData (
786                                 "$$field-" + (field_count++), data,
787                                 FieldAttributes.Static | FieldAttributes.Assembly);
788                         
789                         return fb;
790                 }
791         }
792 }
793               
794