/// <summary> /// Initializes a new instance of the <see cref="KeyValueDeclaration"/> class. /// </summary> public KeyValueDeclaration(KeyDeclaration key, ValueDeclaration value, TextRange textRange) : base(textRange) { Assume.NotNull(key, nameof(key)); Assume.NotNull(value, nameof(value)); this.key = key; this.value = value; children = new Node[2]; updateChildren(key, value); }
private void updateChildren(KeyDeclaration keyDeclaration, ValueDeclaration valueDeclaration) { children[0] = keyDeclaration; children[1] = valueDeclaration; }