Beispiel #1
0
 public override void Write(JsWriter writer)
 {
     writer.Write("(");
     _left.Write(writer);
     writer.Write(" ");
     writer.Write(_op);
     writer.Write(" ");
     writer.WriteValue(_value);
     writer.Write(")");
 }
Beispiel #2
0
        public override void Write(JsWriter writer)
        {
            bool br = _value is JsFunction;

            if (br)
            {
                writer.Write("(");
            }
            _value.Write(writer);
            if (br)
            {
                writer.Write(")");
            }
            writer.Write("(");
            writer.WriteValues(_args, ", ");
            writer.Write(")");
        }
Beispiel #3
0
        public override void Write(JsWriter writer)
        {
            _obj.Write(writer);

            var s = _name as String;

            if (s != null && s.IsJsid())
            {
                writer.Write(".");
                writer.Write(s);
            }
            else
            {
                writer.Write("[");
                writer.WriteValue(_name);
                writer.Write("]");
            }
        }
Beispiel #4
0
 public override void Write(JsWriter writer)
 {
     _expression.Write(writer);
     writer.Write(";");
 }
Beispiel #5
0
 public override void Write(JsWriter writer)
 {
     writer.Write(_op);
     _value.Write(writer);
 }