Beispiel #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;
 }
Beispiel #2
0
 /// <summary>
 /// Construct from a procedural type
 /// </summary>
 public RoutineDeclaration(string name, ProceduralType type)
     : base(name, type)
 {
     if (Directives == null)
     {
         Directives = new RoutineDirectives();
     }
 }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 /// <summary>
 /// Construct from a procedural type
 /// </summary>
 public CallableDeclaration(string name, ProceduralType type)
     : base(name, type)
 {
 }