public MethodFormatter Argument <T>(String argumentName, IJsmExpression argumentExpression) { ScriptWriter sw = Formatter.Sw; if (_hasArguments) { sw.Append(", "); } if (argumentName != null) { sw.Append(argumentName); sw.Append(": "); } sw.Append("("); sw.Append(typeof(T).Name); sw.Append(")"); argumentExpression.Format(sw, Formatter.FormatterContext, Formatter.ExecutionContext); _hasArguments = true; return(this); }
public void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) { sw.Append("!"); _value.Format(sw, formatterContext, services); }