public TypeScriptBlock AddStatement(string statement) { var child = new TypeScriptStatement { Statement = statement }; Children.Add(child); return(this); }
public TypeScriptBlock AddStatement(string statement, bool condition = true) { if (condition) { var child = new TypeScriptStatement { Statement = statement }; Children.Add(child); } return(this); }