예제 #1
0
 public static void IfTrueReturnNull(this CodeWriter writer, String condition) => writer.LineOfCode($"if ({condition}) return null;");
예제 #2
0
 public static void VarAssign(this CodeWriter writer, String left, String right) => writer.LineOfCode($"var {left} = {right};");
예제 #3
0
 public static void IfNullReturnNull(this CodeWriter writer, String operand) => writer.LineOfCode($"if ({operand} == null) return null;");
예제 #4
0
 public _IndentationScope(CodeWriter gen)
 {
     this.writer = gen;
     this.writer.__INDENTATION_LEVEL++;
 }