Inheritance: TypedNode
Beispiel #1
0
 public override void VisitArgument(Argument arg)
 {
     arg.TypeSpecifier.Accept(this);
     arg.NodeType = arg.TypeSpecifier.NodeType;
     if (arg.Mode == ArgumentMode.Out ||
         arg.Mode == ArgumentMode.InOut) {
         arg.NodeType = arg.NodeType.ReferenceType;
     }
 }
Beispiel #2
0
 protected virtual MethodBuilder DefineWriter(TypeBuilder type,
                  string name,
                  MethodAttributes attributes,
                  TypeSpecifier attrType)
 {
     Argument arg = new Argument(ArgumentMode.In, "value",
                                 attrType, Location.Null);
     arg.Index = 1;
     arg.NodeType = attrType.NodeType;
     TypedNodeList args = new TypedNodeList(arg);
     CheckMethodConfliction(typeManager.GetTypeData(type),
                            name,
                            typeManager.VoidType,
                            new TypedNodeList());
     return DefineMethod(type, name, attributes,
                         typeManager.VoidType, args);
 }
Beispiel #3
0
 public virtual void VisitArgument(Argument argument)
 {
 }