示例#1
0
 protected void getJSON(JSONWriter writer)
 {
     foreach (var modifier in _modifiers)
     {
         writer.Append(modifier, "1");
     }
     if (_attributes.Count > 0)
     {
         var attributes = new JSONWriter();
         foreach (var attrib in _attributes)
         {
             attributes.Append(attrib.Name, getCommaString(attrib.Parameters));
         }
         writer.AppendSection("attributes", attributes);
     }
 }
示例#2
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());
        }
示例#3
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());
        }