/// <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; }
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; }
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; }