示例#1
0
        protected virtual string getJSON()
        {
            var writer = new JSONWriter();

            getJSON(writer);
            return(writer.ToString());
        }
示例#2
0
 public void AppendSection(string key, JSONWriter nodes)
 {
     var value = nodes.ToString();
     if (value == "")
         value = "{}";
     append(quote(key), value);
 }
示例#3
0
        private string getMemberProperties(EntityDeclaration type)
        {
            var json = new JSONWriter();

            getTypeModifiers(type);
            //getTypeAttributes(type, json);
            return(json.ToString());
        }
示例#4
0
        public void AppendSection(string key, JSONWriter nodes)
        {
            var value = nodes.ToString();

            if (value == "")
            {
                value = "{}";
            }
            append(quote(key), value);
        }
示例#5
0
        protected override string getJSON()
        {
            var writer = new JSONWriter();

            base.getJSON(writer);
            if (_baseTypes.Count > 0)
            {
                var baseTypes = new JSONWriter();
                foreach (var type in _baseTypes)
                {
                    baseTypes.Append(type, "");
                }
                writer.AppendSection("bases", baseTypes);
            }
            return(writer.ToString());
        }
示例#6
0
        protected override string getJSON()
        {
            var json = new JSONWriter();

            base.getJSON(json);
            if (Parameters.Length > 0)
            {
                var parameters = new JSONWriter();
                foreach (var param in Parameters)
                {
                    parameters.Append(param.Name, param.DeclaringType);
                }
                json.AppendSection("parameters", parameters);
            }
            return(json.ToString());
        }