Example #1
0
 public CsConstructor(bool inheritFromBase, bool isPublic, IEnumerable <Tuple <string, string> > args, IEnumerable <CsStmt> code)
 {
     InheritFromBase = inheritFromBase;
     IsPublic        = isPublic;
     Args.AddRange(args);
     Code.AddRange(code);
 }
Example #2
0
 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);
 }
Example #3
0
 public Account WithCode(IEnumerable <Code> code)
 {
     Code.AddRange(code);
     return(this);
 }