public override bool Match(PythonNode root) { if (Type.Equals("any")) { return(true); } if (!root.GetType().Name.Equals(Type)) { return(false); } return(true); }
public virtual bool Match(PythonNode root) { if (!root.GetType().Name.Equals(Type)) { return(false); } if (Value == null && root.Value == null) { return(true); } if (Value == null && root.Value != null) { return(false); } if (Value != null && root.Value == null) { return(false); } return(Equals(Value, root.Value)); }