/// <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; }
/// <summary> /// Construct from a procedural type /// </summary> public RoutineDeclaration(string name, ProceduralType type) : base(name, type) { if (Directives == null) { Directives = new RoutineDirectives(); } }
public override bool Equals(Object o) { if (o == null || !(o is ProceduralType)) { return(false); } ProceduralType ft = (ProceduralType)o; return(funcret.Equals(ft.funcret) && Directives.Equals(ft.Directives) && @params.Equals(ft.@params)); }
/// <summary> /// Construct from a procedural type /// </summary> public CallableDeclaration(string name, ProceduralType type) : base(name, type) { }