public CsConstructor(bool inheritFromBase, bool isPublic, IEnumerable <Tuple <string, string> > args, IEnumerable <CsStmt> code) { InheritFromBase = inheritFromBase; IsPublic = isPublic; Args.AddRange(args); Code.AddRange(code); }
public CsMethod(string name, string retType, bool isPublic, IEnumerable <Tuple <string, string> > args, IEnumerable <CsStmt> code) { Name = name; RetType = retType; IsPublic = isPublic; Args.AddRange(args); Code.AddRange(code); }
public Account WithCode(IEnumerable <Code> code) { Code.AddRange(code); return(this); }