public JsFunction F(JsFormat format, JsMultiLine commands) { return CreateFunction(format, commands); }
public JsFunction F(JsMultiLine commands) { return CreateFunction(commands); }
public JsFunction CreateFunction(JsFormat format, JsMultiLine commands) { JsFunction f = new JsFunction(this, commands); f.SetFormat(format); return f; }
public JsFunction CreateFunction(JsMultiLine commands) { return CreateFunction(JsFormat.None, commands); }
public JsFunction CreateFunction(JsList parameters, JsMultiLine commands) { return CreateFunction(JsFormat.None, parameters, commands); }
public JsFunction F(JsList parameters, JsMultiLine commands) { return CreateFunction(parameters, commands); }
public JsMultiLine CreateMultiLine(JsFormat format, params object[] lines) { JsMultiLine m = new JsMultiLine(this, lines); m.SetFormat(format); return m; }
public static JsFunction FI(JsList parameters, JsMultiLine commands) { return FunctionInline(parameters, commands); }
public static JsFunction FunctionInline(JsList parameters, JsMultiLine commands) { JsFunction f = new JsFunction(parameters, commands); f.MultiLine = false; return f; }
public static JsFunction F(JsMultiLine commands) { return Function(commands); }
//public static JsMultiLine MultiLineIndented(params object[] lines) //{ // JsMultiLine ml = new JsMultiLine(lines); // ml.NewIndent = true; // ml.StartOnNewLine = true; // return ml; //} //public static JsMultiLine MLI(params object[] lines) //{ // return MultiLineIndented(lines); //} //public static JsFunction Function(string parameters, JsMultiLine commands) //{ // return new JsFunction(parameters, commands); //} //public static JsFunction F(string parameters, JsMultiLine commands) //{ // return Function(parameters, commands); //} public static JsFunction Function(JsList parameters, JsMultiLine commands) { return new JsFunction(parameters, commands); }