Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 private void updateChildren(KeyDeclaration keyDeclaration, ValueDeclaration valueDeclaration)
 {
     children[0] = keyDeclaration;
     children[1] = valueDeclaration;
 }