예제 #1
0
 public printVerb(int verb = default, @string flags = default, printfArgType typ = default)
 {
     this.verb  = verb;
     this.flags = flags;
     this.typ   = typ;
 }
예제 #2
0
파일: types.cs 프로젝트: zjmit/go2cs
 // matchArgType reports an error if printf verb t is not appropriate
 // for operand arg.
 //
 // typ is used only for recursive calls; external callers must supply nil.
 //
 // (Recursion arises from the compound types {map,chan,slice} which
 // may be printed with %d etc. if that is appropriate for their element
 // types.)
 private static bool matchArgType(ptr <analysis.Pass> _addr_pass, printfArgType t, types.Type typ, ast.Expr arg)
 {
     ref analysis.Pass pass = ref _addr_pass.val;