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

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

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

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