protected virtual string getJSON() { var writer = new JSONWriter(); getJSON(writer); return(writer.ToString()); }
public void AppendSection(string key, JSONWriter nodes) { var value = nodes.ToString(); if (value == "") value = "{}"; append(quote(key), value); }
private string getMemberProperties(EntityDeclaration type) { var json = new JSONWriter(); getTypeModifiers(type); //getTypeAttributes(type, json); return(json.ToString()); }
public void AppendSection(string key, JSONWriter nodes) { var value = nodes.ToString(); if (value == "") { value = "{}"; } append(quote(key), value); }
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()); }
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); } }
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()); }
private void getMemberProperties(EntityDeclaration type, JSONWriter json) { getTypeModifiers(type); getTypeAttributes(new Class(null, "", "", "", 0, 0), type); }