예제 #1
0
 public Method(string identifier, TypeOf returnType, List<TypeOf> parameterTypes, Member info)
     : base(info)
 {
     this.Identifier = identifier;
     this.ReturnType = returnType;
     this.ParameterTypes = parameterTypes.AsReadOnly();
 }
예제 #2
0
 public Method(string identifier, TypeOf returnType, Member info)
     : base(info)
 {
     this.Identifier = identifier;
     this.ReturnType = returnType;
     this.ParameterTypes = TypeOf.EmptyList();
 }
예제 #3
0
 public override bool Equals(object otherObj)
 {
     if (otherObj is TypeOf)
     {
         TypeOf type = (TypeOf)otherObj;
         return((IsVoid && type.IsVoid) || obj.Equals(type.obj));
     }
     else
     {
         return(false);
     }
 }
예제 #4
0
 public Method(string identifier, TypeOf returnType, Member info) : base(info)
 {
     this.Identifier     = identifier;
     this.ReturnType     = returnType;
     this.ParameterTypes = TypeOf.EmptyList();
 }
예제 #5
0
 public Method(string identifier, TypeOf returnType, List <TypeOf> parameterTypes, Member info) : base(info)
 {
     this.Identifier     = identifier;
     this.ReturnType     = returnType;
     this.ParameterTypes = parameterTypes.AsReadOnly();
 }