public MemberDescriptor(CFlatType type, string name, ClassDescriptor cls) : base(type) { Modifiers = new List <string>(); Name = name; ContainingClass = cls; }
/// <summary> /// Takes a type and the index in the function of a parameter /// </summary> public ActualDescriptor(CFlatType type, string modifier = null, string name = null) : base(type) { Type = type; Modifier = modifier; Name = name; }
public virtual bool IsSupertype(CFlatType checkType) { /* This method should never return a value itself, but rather call the appropriate overload for the * concrete type of checkType */ dynamic realType = checkType; return(this.IsSupertype(realType)); }
public MethodDescriptor(CFlatType t, string name, ClassDescriptor cls) : base(t) { IsCompleted = false; Modifiers = new List <string>(); Formals = new List <FormalDescriptor>(); Name = name; ContainingClass = cls; }
public ArrayDescriptor(CFlatType type, CFlatType baseType, string name, int lower, int upper) : base(type) { Type = type; BaseType = baseType; Name = name; LowerBound = lower; UpperBound = upper; }
public ClassDescriptor(CFlatType t, ClassDescriptor parentClass, string name, Scope s) : base(t) { ParentClass = parentClass; Methods = new List <MethodDescriptor>(); Fields = new List <MemberDescriptor>(); Name = name; Scope = s; }
public bool IsSubtypeOf(CFlatType t) { return(t.IsSupertype(this)); }
public LocalDescriptor(CFlatType type, string name) : base(type) { Name = name; }
public TypeArray(CFlatType baseType) { _baseType = baseType; }
/// <summary> /// Takes a type and the index in the function of a parameter /// </summary> public FormalDescriptor(CFlatType type, string name, string modifier) : base(type) { Name = name; Modifier = modifier; }
public void AddMethod(string name, CFlatType type) { Methods.Add(name, type); }
public void AddField(string name, CFlatType type) { Fields.Add(name, type); }
public void AddLocal(string name, CFlatType type) { _locals.Add(name, type); }
public void AddLocal(string name, CFlatType type) { CurrentBlock.AddLocal(name, type); }
public void AddFormal(string name, CFlatType type) { Formals.Add(name, type); }
public Descriptor(CFlatType t) { this.Type = t; }