Esempio n. 1
0
 public override void Output(CodeWriter s, int bp)
 {
     s.Write(Value?"true":"false");
 }
Esempio n. 2
0
 public override void Output(CodeWriter s, int bp)
 {
     s.Write(Value.ToString());
 }
 public override void Output(CodeWriter s, int bp)
 {
     Expression.Output(s, 0);
     s.Write(';');
 }
 public override void Output(CodeWriter s, int bp)
 {
     Object.Output(s, Precedence - 1);
     s.Write('.');
     s.Write(Lookup);
 }
Esempio n. 5
0
 public override void Output(CodeWriter s, int bp)
 {
     s.Write(Value ?? ScopeReference.Name);
 }
Esempio n. 6
0
 public override void Output(CodeWriter s, int bp)
 {
     s.Write("this");
 }
Esempio n. 7
0
        public override void Output(CodeWriter s, int bp)
        {
            s.Write('{');
            s.Indent();
            foreach (DataPair <string, ExpressionNode> Property in Properties)
            {
                s.NewLine();
                s.Write('"');
                foreach (char x in Property.Key.ToCharArray())
                {
                    switch (x)
                    {
                    case '\b': s.Write("\\b"); break;

                    case '\f': s.Write("\\f"); break;

                    case '\\': s.Write("\\\\"); break;

                    case '\n': s.Write("\\n"); break;

                    case '\r': s.Write("\\r"); break;

                    case '\t': s.Write("\\t"); break;

                    default: s.Write(x); break;
                    }
                }
                s.Write('"');
                s.Write(':');
                Property.Value.Output(s, 0);
                if (Property.Key != Properties.Last().Key)
                {
                    s.Write(',');
                }
            }
            s.Outdent();
            s.NewLine();
            s.Write('}');
        }
Esempio n. 8
0
 public override void Output(CodeWriter s, int bp)
 {
     s.Write(TokenHelper.Value(Token));
     Value.Output(s, 13);
 }