Beispiel #1
0
        private void GenerateOperationalInputOutputProperties(ModuleBuilder target)
        {
            // Property für die Eingangsparameter erzeugen
            target.Properties.Add(new AutoPropertyBuilder(Visibilities.Public,
                                                          new ArbitraryType(InputClassName),
                                                          InputClassName)
            {
                SetInConstructor = true
            });

            // Property für die Ausgangsparameter erzeugen
            var outType = new ArbitraryType(OutputClassName);

            target.Properties.Add(new AutoPropertyBuilder(Visibilities.Public,
                                                          outType,
                                                          OutputClassName)
            {
                DefaultExpression = new NewExpressionBuilder(outType)
            });
        }
Beispiel #2
0
 /**
  * Constructor used for the creation of arbitrary types
  */
 private Type(int v, ArbitraryType arb)
 {
     value = v;
 }
Beispiel #3
0
 /**
  * Constructor used for the creation of arbitrary types
  */
 private Type(int v,ArbitraryType arb)
 {
     value = v;
 }
Beispiel #4
0
 // Alignof takes an expression x of any type and returns the required alignment
 // of a hypothetical variable v as if v was declared via var v = x.
 // It is the largest value m such that the address of v is always zero mod m.
 // It is the same as the value returned by reflect.TypeOf(x).Align().
 // As a special case, if a variable s is of struct type and f is a field
 // within that struct, then Alignof(s.f) will return the required alignment
 // of a field of that type within a struct. This case is the same as the
 // value returned by reflect.TypeOf(s.f).FieldAlign().
 // The return value of Alignof is a Go constant.
 public static System.UIntPtr Alignof(ArbitraryType x)
 ;
Beispiel #5
0
 // Offsetof returns the offset within the struct of the field represented by x,
 // which must be of the form structValue.field. In other words, it returns the
 // number of bytes between the start of the struct and the start of the field.
 // The return value of Offsetof is a Go constant.
 public static System.UIntPtr Offsetof(ArbitraryType x)
 ;
Beispiel #6
0
 // Sizeof takes an expression x of any type and returns the size in bytes
 // of a hypothetical variable v as if v was declared via var v = x.
 // The size does not include any memory possibly referenced by x.
 // For instance, if x is a slice, Sizeof returns the size of the slice
 // descriptor, not the size of the memory referenced by the slice.
 // The return value of Sizeof is a Go constant.
 public static System.UIntPtr Sizeof(ArbitraryType x)
 ;