Beispiel #1
0
        private bool WriteSyntaxLiteralNode(SyntaxLiteralNode Node)
        {
            if (Node is SyntaxLiteralNullNode)
            {
                JsonString_.PushString((Node as SyntaxLiteralNullNode).GetRaw());
            }
            else if (Node is SyntaxLiteralBooleanNode)
            {
                JsonString_.PushString((Node as SyntaxLiteralBooleanNode).GetRaw());
            }
            else if (Node is SyntaxLiteralNumericNode)
            {
                JsonString_.PushString((Node as SyntaxLiteralNumericNode).GetRaw());
            }
            else if (Node is SyntaxLiteralStringNode)
            {
                JsonString_.Push('"');
                JsonString_.PushString((Node as SyntaxLiteralStringNode).GetRaw());
                JsonString_.Push('"');
            }

            return(true);
        }