Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public Account WithCode(IEnumerable <Code> code)
 {
     Code.AddRange(code);
     return(this);
 }