コード例 #1
0
            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);
            }
コード例 #2
0
 public void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Append("!");
     _value.Format(sw, formatterContext, services);
 }