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