CFGLib.Parsers.Forests.InteriorNode.AddChild C# (CSharp) Method

AddChild() private method

private AddChild ( int i, Production production ) : void
i int
production Production
return void
		internal void AddChild(int i, Production production) {
			if (i >= _families.Count) {
				throw new Exception();
			}
			if (_families[i].Production != null) {
				if (production != _families[i].Production) {
					throw new Exception();
				}
			}
			_families[i].Production = production;
		}