Example #1
0
        public void SetValueOfId(string def, Value val)
        {
            NodeDefinition n = null;

            foreach (NodeDefinition d in this.definitions)
            {
                if (d.IsNamed(def))
                {
                    n = d;
                }
            }

            if (n != null)
            {
                this.definitions.Remove(n);
            }

            n = new NodeDefinition(this, def, new LiteralExpression(this, val));
            this.definitions.Add(n);
        }
Example #2
0
 public void AddDefinition(NodeDefinition def)
 {
     this.definitions.Add(def);
 }