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 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()); }