/// <summary> /// Adds a member expression parameter to this DynaMember object. /// </summary> /// <param name="arg">An AosDynaArguement object containing the values for this parameter.</param> public void AddParameter(DynaArgument arg) { AddParameter(arg.ArgumentName, arg.DataType); }
/// <summary> /// Creates a new class constructor member within this AosDynaClass object. /// </summary> /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for this class constructor.</param> /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within this class constructor.</param> /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param> public void CreateConstructor(DynaArgument[] Arguments, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope) { DynaConstructor cc = new DynaConstructor(); cc.TypeMember.Attributes = Scope; foreach (DynaExpression stmt in Statements) cc.TypeMember.Statements.Add(stmt.Expression); AddConstructor(cc); }
/// <summary> /// Creates a new entry point member within this DynaClass object. /// When adding this class to an DynaCode object containing other classes, there should be only *one* (1) EntryPoint for the entire DynaCode object. /// </summary> /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for the new entry point.</param></param> /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within the new entry point.</param></param> /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param> public void CreateEntryPoint(DynaArgument[] Arguements, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope) { DynaEntryPoint ep = new DynaEntryPoint(); ep.TypeMember.Attributes = Scope; foreach (DynaExpression stmt in Statements) ep.TypeMember.Statements.Add(stmt.Expression); AddEntryPoint(ep); }
public int IndexOf(DynaArgument thisArg) { return codeArgs.IndexOf(thisArg.CodeArgument); }
/// <summary> /// Creates a new method member within this DynaClass object. /// </summary> /// <param name="Name">A string value containing the name of the new method.</param> /// <param name="Arguements">An array of DynaArguement objects specifying the incoming arguements for the new methdod.</param> /// <param name="Statements">An array of DynaStatement objects specifying the expression statements contained within this method.</param> /// <param name="Scope">A value of type MemberAttributes indicating the scope of the new method.</param> public void CreateMethod(string Name, DynaArgument[] Arguements, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope) { DynaMethod dm = new DynaMethod(Name); dm.TypeMember.Attributes = Scope; foreach (DynaExpression stmt in Statements) dm.TypeMember.Statements.Add(stmt.Expression); AddMethod(dm); }
public void Insert(int index, DynaArgument newArg) { codeArgs.Insert(index, newArg.CodeArgument); }
public bool Contains(DynaArgument thisArg) { return codeArgs.Contains(thisArg.CodeArgument); }
//*************************************************************************** // Public Methods // public void Add(DynaArgument newArg) { codeArgs.Add(newArg.CodeArgument); }
public void Remove(DynaArgument oldArg) { codeArgs.Remove(oldArg.CodeArgument); }
public int IndexOf(DynaArgument thisArg) { return(codeArgs.IndexOf(thisArg.CodeArgument)); }
public DynaArgumentCollection(DynaArgument[] args) : this() { foreach (DynaArgument arg in args) codeArgs.Add(arg.CodeArgument); }
public bool Contains(DynaArgument thisArg) { return(codeArgs.Contains(thisArg.CodeArgument)); }