CFGLib.Parsers.Forests.SppfNode.ProductionsToString C# (CSharp) Method

ProductionsToString() public method

public ProductionsToString ( ) : string
return string
		public string ProductionsToString() {
			string retval = "";

			var childrenStrings = new List<string>();
			var children = "";
			for (int i = 0; i < Families.Count; i++) {
				var family = Families[i];
				var production = family.Production;
				if (production != null) {
					childrenStrings.Add(string.Format("[{0}]={1}", i, production.ToStringNoWeight()));
				}
			}
			if (childrenStrings.Count > 0) {
				children = string.Join(", ", childrenStrings);
				retval += "  |  ";
				retval += children;
			}

			return retval;
		}