Пример #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++;
 }