private static IEnumerable <string> CreateMatchingActions(XmlElement root, BuildEnviroment e) { foreach (var x in root.ElementsNamed("test")) { string action = x.GetAttributeString("action"); string lhs = x.GetAttributeString("lhs"); string rhs = x.GetAttributeString("rhs"); string lhsValue = e.resolve(lhs); string rhsValue = e.resolve(rhs); bool ok = false; if (action == "=") { if (lhsValue == rhsValue) { ok = true; } } else { throw new Exception("unsupported test action " + action); } if (ok) { foreach (var s in CreateActions(x, e)) { yield return(s); } } } }
public string getResolved(BuildEnviroment enviroment) { return(verify(enviroment.resolve(Value, Name))); }