Пример #1
0
 /// <summary>
 /// Construct from a procedural type
 /// </summary>
 public RoutineDefinition(string name, ProceduralType type,
                          RoutineDirectives dirs = null, RoutineSection body = null)
     : base(name, type)
 {
     this.Directives.Add(dirs);
     this.body = body;
 }
Пример #2
0
 public MethodDefinition(string objname, string name, ParametersSection @params,
                         TypeNode ret    = null, RoutineDirectives dirs = null,
                         MethodKind kind = MethodKind.Default, RoutineSection body = null)
     : base(objname, name, @params, ret, dirs, kind)
 {
     this.body = body;
 }
Пример #3
0
 public RoutineDefinition(string name, ParametersSection @params, TypeNode ret = null,
                          RoutineDirectives dirs = null, RoutineSection body = null)
     : base(name, @params, ret, dirs)
 {
     this.body = body;
     body.declaringCallable = this;
 }