示例#1
0
 public ChanType(ChanDir Dir = default, Expr Elem = default, expr expr = default)
 {
     this.Dir = Dir;
     this.Elem = Elem;
     this.m_exprRef = new ptr<expr>(expr);
 }
示例#2
0
 public Chan(ChanDir dir = default, Type elem = default)
 {
     this.dir  = dir;
     this.elem = elem;
 }
示例#3
0
 public ChanType(token.Pos Begin = default, token.Pos Arrow = default, ChanDir Dir = default, Expr Value = default)
 {
     this.Begin = Begin;
     this.Arrow = Arrow;
     this.Dir   = Dir;
     this.Value = Value;
 }
示例#4
0
 public Chan(ref ptr <Type> Elem = default, ChanDir Dir = default)
 {
     this.Elem = Elem;
     this.Dir  = Dir;
 }