public void DoubleNot() { INode root = new Not(new Not(VariableNode.Make<bool>(0, "x"))); Assert.AreEqual( VariableNode.Make<bool>(0, "x").ToString(), SimplifyLogicTree(root).ToString()); }
public static void Is(Not values, string s, string name) { if ((values & Not.Null) == Not.Null) { if (s == null) { throw new ArgumentNullException(name); } } if ((values & Not.Empty) == Not.Empty) { if (s != null && s.Length.Equals(0)) { throw new ArgumentException("Value cannot be empty.", name); } } if ((values & Not.Whitespace) == Not.Whitespace) { if ((!string.IsNullOrEmpty(s)) && (s.Trim().Length == 0)) { throw new ArgumentException("Value cannot be whitespace.", name); } } }
public void Parse(ExpressionParserHelper parseHelper) { Token token = parseHelper.Current; parseHelper.Expect(nameof(NotParser), NOT_SIGN, ADDITIONAL_SIGN); parseHelper.ParseExpression(); var not = new Not(parseHelper.Pop()); not.Token = token; parseHelper.Push(not); }
public void ThenResolveReturnsFalse() { var testObject = new object(); var expression = new Mock<IExpression>(); var expressions = new List<IExpression> { new Mock<IExpression>().Object, expression.Object }; expression.Setup(x => x.Resolve(testObject, expressions)).Returns(true); var subject = new Not(1); var result = subject.Resolve(testObject, expressions); Assert.That(result, Is.False); }
public virtual AstNode VisitNot(Not ast) { return(ast); }
public override AstNode VisitNot(Not ast) { Visit(ast.Operand); m_ilgen.Emit(OpCodes.Ldc_I4_0); m_ilgen.Emit(OpCodes.Ceq); return ast; }
public void Visit(Not not) { _sb.Append("~"); not.Operand.Accept(this); }
public void Visit(Not not) { // Nothing to do here... }
public void Visit(Not not) { not.Operand.Accept(this); not.Type = MustBeBool(string.Format("The operand of {0} must be bool", not)); }
// throws jjtraveler.VisitFailure public virtual void testNotOnFailure() { Not not = new Not(new Fail()); IVisitable resultNode = not.visit(n0); Assertion.AssertEquals(n0,resultNode); }
void UnaryOperator(out Expression exp) { Token tok = null; string op = null; if (la.kind == 41 || la.kind == 45 || la.kind == 46) { if (la.kind == 41) { Get(); tok = t; op = t.val; } else if (la.kind == 45) { Get(); tok = t; op = t.val; } else { Get(); tok = t; op = t.val; } } Terminal(out exp); if (op == "-") { if (!ExpectInt(exp, tok, true)) { return; } exp = new UnaryMinus((TypedExpression<int>)exp); } else if (op == "~") { if (!ExpectInt((TypedExpression<int>)exp, tok, true)) { return; } exp = new OnesComplement((TypedExpression<int>)exp); } else if (op == "not") { if (!ExpectBool(exp, tok, true)) { return; } exp = new Not((TypedExpression<bool>)exp); } }
public SuperHappyScript(string script) { ValueNode currentNode = null; string currentParseValue = ""; int predenceLevel = 0; _variables = new List <string>(); int index = 0; char currentToken = ' '; char nextToken = ' '; _script = script; try { foreach (char token in script) { index++; if (script.Length > index) { nextToken = script[index]; } currentToken = token; if (currentParseValue.StartsWith("[") && !currentParseValue.EndsWith("]") && !(currentParseValue + token).EndsWith(">=") && !(currentParseValue + token).EndsWith("<=") && !(currentParseValue + token).EndsWith("<>")) { currentParseValue += token; continue; } if (IgnoreSet.Contains(token)) { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } } else if (token == ']') { currentParseValue += token; currentNode = AddValue(currentNode, currentParseValue); } else if (token == ',') { if (predenceLevel == 0) { throw new Exception("Parsing error"); } if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = WrapFunction(currentNode, predenceLevel, false); } else if ((currentParseValue + token).ToUpper() == "ABS(") { currentNode = new Absolute(predenceLevel).AttachNode(currentNode); predenceLevel += MAX_PREDENCE + 1; } else if ((currentParseValue + token).ToUpper() == "ROUND(") { currentNode = new Round(predenceLevel).AttachNode(currentNode); predenceLevel += MAX_PREDENCE + 1; } else if ((currentParseValue + token).ToUpper() == "INT(") { currentNode = new RoundDown(predenceLevel).AttachNode(currentNode); predenceLevel += MAX_PREDENCE + 1; } else if ((currentParseValue + token).ToUpper() == "IIF(") { currentNode = new IfStatement(predenceLevel).AttachNode(currentNode); predenceLevel += MAX_PREDENCE + 1; } else if ((currentParseValue + token).ToUpper() == "MAX(") { currentNode = new Max(predenceLevel).AttachNode(currentNode); predenceLevel += MAX_PREDENCE + 1; } else if ((currentParseValue + token).ToUpper() == "ISNAN(") { currentNode = new IsNaN(predenceLevel).AttachNode(currentNode); predenceLevel += MAX_PREDENCE + 1; } else if ((currentParseValue + token).ToUpper() == "MIN(") { currentNode = new Min(predenceLevel).AttachNode(currentNode); predenceLevel += MAX_PREDENCE + 1; } else if ((currentParseValue + token).ToUpper() == "AND") { if (currentParseValue.Length > 2) { currentNode = AddValue(currentNode, currentParseValue.Substring(0, currentParseValue.Length - 2)); } currentNode = new And(predenceLevel).AttachNode(currentNode); } else if ((currentParseValue + token).ToUpper() == "OR") { if (currentParseValue.Length > 2) { currentNode = AddValue(currentNode, currentParseValue.Substring(0, currentParseValue.Length - 2)); } currentNode = new Or(predenceLevel).AttachNode(currentNode); } else if ((currentParseValue + token).ToUpper() == "NOT") { if (currentParseValue.Length > 2) { currentNode = AddValue(currentNode, currentParseValue.Substring(0, currentParseValue.Length - 2)); } currentNode = new Not(predenceLevel).AttachNode(currentNode); } else if (token == '(') { if (currentParseValue != "") { throw new Exception("Parsing error"); } predenceLevel += MAX_PREDENCE + 1; } else if (token == ')') { if (predenceLevel == 0) { throw new Exception("Parsing error"); } if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = WrapFunction(currentNode, predenceLevel, true); predenceLevel -= MAX_PREDENCE + 1; } else if ((currentParseValue + token).EndsWith("=")) { if (currentParseValue.Length > 1) { currentNode = AddValue(currentNode, currentParseValue.Substring(0, currentParseValue.Length)); } currentNode = new Equal(predenceLevel).AttachNode(currentNode); } else if ((currentParseValue + token).EndsWith(">=")) { if (currentParseValue.Length > 2) { currentNode = AddValue(currentNode, currentParseValue.Substring(0, currentParseValue.Length - 1)); } currentNode = new EqualOrGreaterThan(predenceLevel).AttachNode(currentNode); } else if ((currentParseValue + token).EndsWith("<=")) { if (currentParseValue.Length > 2) { currentNode = AddValue(currentNode, currentParseValue.Substring(0, currentParseValue.Length - 1)); } currentNode = new EqualOrLessThan(predenceLevel).AttachNode(currentNode); } else if ((currentParseValue + token).EndsWith("<>")) { if (currentParseValue.Length > 2) { currentNode = AddValue(currentNode, currentParseValue.Substring(0, currentParseValue.Length - 1)); } currentNode = new NotEqual(predenceLevel).AttachNode(currentNode); } else if (token == '>' && nextToken != '=') { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = new GreaterThan(predenceLevel).AttachNode(currentNode); } else if (token == '<' && nextToken != '>' && nextToken != '=') { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = new LessThan(predenceLevel).AttachNode(currentNode); } else if (token == '+') { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = new Add(predenceLevel).AttachNode(currentNode); } else if (token == '-') { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } if (currentNode == null || currentNode is Operand || currentNode is Function) { currentNode = new Negate(predenceLevel).AttachNode(currentNode); } else { currentNode = new Subtract(predenceLevel).AttachNode(currentNode); } } else if (token == '*') { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = new Multiply(predenceLevel).AttachNode(currentNode); } else if (token == '/') { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = new Divide(predenceLevel).AttachNode(currentNode); } else if (token == '^') { if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } currentNode = new PowerOf(predenceLevel).AttachNode(currentNode); } else { if (currentParseValue.StartsWith("[") && currentParseValue.EndsWith("]") && token == '[') { throw new Exception("Two variables declared in a row"); } currentParseValue += token; continue; } currentParseValue = ""; } } catch (Exception exc) { throw new Exception(exc.Message + " at token: " + currentToken + " in row: " + index); } if (currentParseValue != "") { currentNode = AddValue(currentNode, currentParseValue); } if (predenceLevel != 0) { throw new Exception("Parsing error"); } while (currentNode.Parent != null) { currentNode = currentNode.Parent; } _startNode = currentNode; _variables = new List <string>(_variables.Distinct()); Test(); }
public void Negate() { Not newRoot = new Not(root); root = newRoot; }
public static void CanUpdate(Workflows workflows, UpdateWorkflow command) { Guard.NotNull(command); CheckWorkflowExists(workflows, command.WorkflowId); Validate.It(() => "Cannot update workflow.", e => { if (command.Workflow == null) { e(Not.Defined("Workflow"), nameof(command.Workflow)); return; } var workflow = command.Workflow; if (!workflow.Steps.ContainsKey(workflow.Initial)) { e(Not.Defined("Initial step"), $"{nameof(command.Workflow)}.{nameof(workflow.Initial)}"); } if (workflow.Initial == Status.Published) { e("Initial step cannot be published step.", $"{nameof(command.Workflow)}.{nameof(workflow.Initial)}"); } var stepsPrefix = $"{nameof(command.Workflow)}.{nameof(workflow.Steps)}"; if (!workflow.Steps.ContainsKey(Status.Published)) { e("Workflow must have a published step.", stepsPrefix); } foreach (var step in workflow.Steps) { var stepPrefix = $"{stepsPrefix}.{step.Key}"; if (step.Value == null) { e(Not.Defined("Step"), stepPrefix); } else { foreach (var transition in step.Value.Transitions) { var transitionPrefix = $"{stepPrefix}.{nameof(step.Value.Transitions)}.{transition.Key}"; if (!workflow.Steps.ContainsKey(transition.Key)) { e("Transition has an invalid target.", transitionPrefix); } if (transition.Value == null) { e(Not.Defined("Transition"), transitionPrefix); } } } } }); }
public DoadorMap() { Table("Doador"); KeyColumn("UsuarioId"); Not.LazyLoad(); }
/// <summary> /// Analyzes the specified expression. /// </summary> /// <param name="exp">The expression.</param> /// <returns>The result of analysis.</returns> public string Analyze(Not exp) { return(ToString(exp, "not({0})")); }
private static Function[] ProduceFunctions() { Function[] retval = new Function[368]; retval[0] = new Count(); // COUNT retval[FunctionID.IF] = new If(); // IF retval[2] = LogicalFunction.ISNA; // IsNA retval[3] = LogicalFunction.ISERROR; // IsERROR retval[FunctionID.SUM] = AggregateFunction.SUM; // SUM retval[5] = AggregateFunction.AVERAGE; // AVERAGE retval[6] = AggregateFunction.MIN; // MIN retval[7] = AggregateFunction.MAX; // MAX retval[8] = new Row(); // ROW retval[9] = new Column(); // COLUMN retval[10] = new Na(); // NA retval[11] = new Npv(); // NPV retval[12] = AggregateFunction.STDEV; // STDEV retval[13] = NumericFunction.DOLLAR; // DOLLAR retval[14] = new NotImplementedFunction(); // FIXED retval[15] = NumericFunction.SIN; // SIN retval[16] = NumericFunction.COS; // COS retval[17] = NumericFunction.TAN; // TAN retval[18] = NumericFunction.ATAN; // ATAN retval[19] = new Pi(); // PI retval[20] = NumericFunction.SQRT; // SQRT retval[21] = NumericFunction.EXP; // EXP retval[22] = NumericFunction.LN; // LN retval[23] = NumericFunction.LOG10; // LOG10 retval[24] = NumericFunction.ABS; // ABS retval[25] = NumericFunction.INT; // INT retval[26] = NumericFunction.SIGN; // SIGN retval[27] = NumericFunction.ROUND; // ROUND retval[28] = new Lookup(); // LOOKUP retval[29] = new Index(); // INDEX retval[30] = new NotImplementedFunction(); // REPT retval[31] = TextFunction.MID; // MID retval[32] = TextFunction.LEN; // LEN retval[33] = new Value(); // VALUE retval[34] = new True(); // TRUE retval[35] = new False(); // FALSE retval[36] = new And(); // AND retval[37] = new Or(); // OR retval[38] = new Not(); // NOT retval[39] = NumericFunction.MOD; // MOD retval[40] = new NotImplementedFunction(); // DCOUNT retval[41] = new NotImplementedFunction(); // DSUM retval[42] = new NotImplementedFunction(); // DAVERAGE retval[43] = new NotImplementedFunction(); // DMIN retval[44] = new NotImplementedFunction(); // DMAX retval[45] = new NotImplementedFunction(); // DSTDEV retval[46] = new NotImplementedFunction(); // VAR retval[47] = new NotImplementedFunction(); // DVAR retval[48] = TextFunction.TEXT; // TEXT retval[49] = new NotImplementedFunction(); // LINEST retval[50] = new NotImplementedFunction(); // TREND retval[51] = new NotImplementedFunction(); // LOGEST retval[52] = new NotImplementedFunction(); // GROWTH retval[53] = new NotImplementedFunction(); // GOTO retval[54] = new NotImplementedFunction(); // HALT retval[56] = new NotImplementedFunction(); // PV retval[57] = FinanceFunction.FV; // FV retval[58] = FinanceFunction.NPER; // NPER retval[59] = FinanceFunction.PMT; // PMT retval[60] = new NotImplementedFunction(); // RATE retval[61] = new NotImplementedFunction(); // MIRR retval[62] = new Irr(); // IRR retval[63] = new Rand(); // RAND retval[64] = new Match(); // MATCH retval[65] = DateFunc.instance; // DATE retval[66] = new TimeFunc(); // TIME retval[67] = CalendarFieldFunction.DAY; // DAY retval[68] = CalendarFieldFunction.MONTH; // MONTH retval[69] = CalendarFieldFunction.YEAR; // YEAR retval[70] = new NotImplementedFunction(); // WEEKDAY retval[71] = CalendarFieldFunction.HOUR; retval[72] = CalendarFieldFunction.MINUTE; retval[73] = CalendarFieldFunction.SECOND; retval[74] = new Now(); retval[75] = new NotImplementedFunction(); // AREAS retval[76] = new Rows(); // ROWS retval[77] = new Columns(); // COLUMNS retval[FunctionID.OFFSET] = new Offset(); // Offset.Evaluate has a different signature retval[79] = new NotImplementedFunction(); // ABSREF retval[80] = new NotImplementedFunction(); // RELREF retval[81] = new NotImplementedFunction(); // ARGUMENT retval[82] = TextFunction.SEARCH; retval[83] = new NotImplementedFunction(); // TRANSPOSE retval[84] = new NotImplementedFunction(); // ERROR retval[85] = new NotImplementedFunction(); // STEP retval[86] = new NotImplementedFunction(); // TYPE retval[87] = new NotImplementedFunction(); // ECHO retval[88] = new NotImplementedFunction(); // SetNAME retval[89] = new NotImplementedFunction(); // CALLER retval[90] = new NotImplementedFunction(); // DEREF retval[91] = new NotImplementedFunction(); // WINDOWS retval[92] = new NotImplementedFunction(); // SERIES retval[93] = new NotImplementedFunction(); // DOCUMENTS retval[94] = new NotImplementedFunction(); // ACTIVECELL retval[95] = new NotImplementedFunction(); // SELECTION retval[96] = new NotImplementedFunction(); // RESULT retval[97] = NumericFunction.ATAN2; // ATAN2 retval[98] = NumericFunction.ASIN; // ASIN retval[99] = NumericFunction.ACOS; // ACOS retval[FunctionID.CHOOSE] = new Choose(); retval[101] = new Hlookup(); // HLOOKUP retval[102] = new Vlookup(); // VLOOKUP retval[103] = new NotImplementedFunction(); // LINKS retval[104] = new NotImplementedFunction(); // INPUT retval[105] = LogicalFunction.ISREF; // IsREF retval[106] = new NotImplementedFunction(); // GetFORMULA retval[107] = new NotImplementedFunction(); // GetNAME retval[108] = new NotImplementedFunction(); // SetVALUE retval[109] = NumericFunction.LOG; // LOG retval[110] = new NotImplementedFunction(); // EXEC retval[111] = TextFunction.CHAR; // CHAR retval[112] = TextFunction.LOWER; // LOWER retval[113] = TextFunction.UPPER; // UPPER retval[114] = new NotImplementedFunction(); // PROPER retval[115] = TextFunction.LEFT; // LEFT retval[116] = TextFunction.RIGHT; // RIGHT retval[117] = TextFunction.EXACT; // EXACT retval[118] = TextFunction.TRIM; // TRIM retval[119] = new Replace(); // Replace retval[120] = new Substitute(); // SUBSTITUTE retval[121] = new NotImplementedFunction(); // CODE retval[122] = new NotImplementedFunction(); // NAMES retval[123] = new NotImplementedFunction(); // DIRECTORY retval[124] = TextFunction.FIND; // Find retval[125] = new NotImplementedFunction(); // CELL retval[126] = new NotImplementedFunction(); // IsERR retval[127] = LogicalFunction.ISTEXT; // IsTEXT retval[128] = LogicalFunction.ISNUMBER; // IsNUMBER retval[129] = LogicalFunction.ISBLANK; // IsBLANK retval[130] = new T(); // T retval[131] = new NotImplementedFunction(); // N retval[132] = new NotImplementedFunction(); // FOPEN retval[133] = new NotImplementedFunction(); // FCLOSE retval[134] = new NotImplementedFunction(); // FSIZE retval[135] = new NotImplementedFunction(); // FReadLN retval[136] = new NotImplementedFunction(); // FRead retval[137] = new NotImplementedFunction(); // FWriteLN retval[138] = new NotImplementedFunction(); // FWrite retval[139] = new NotImplementedFunction(); // FPOS retval[140] = new NotImplementedFunction(); // DATEVALUE retval[141] = new NotImplementedFunction(); // TIMEVALUE retval[142] = new NotImplementedFunction(); // SLN retval[143] = new NotImplementedFunction(); // SYD retval[144] = new NotImplementedFunction(); // DDB retval[145] = new NotImplementedFunction(); // GetDEF retval[146] = new NotImplementedFunction(); // REFTEXT retval[147] = new NotImplementedFunction(); // TEXTREF retval[FunctionID.INDIRECT] = null; // Indirect.Evaluate has different signature retval[149] = new NotImplementedFunction(); // REGISTER retval[150] = new NotImplementedFunction(); // CALL retval[151] = new NotImplementedFunction(); // AddBAR retval[152] = new NotImplementedFunction(); // AddMENU retval[153] = new NotImplementedFunction(); // AddCOMMAND retval[154] = new NotImplementedFunction(); // ENABLECOMMAND retval[155] = new NotImplementedFunction(); // CHECKCOMMAND retval[156] = new NotImplementedFunction(); // RenameCOMMAND retval[157] = new NotImplementedFunction(); // SHOWBAR retval[158] = new NotImplementedFunction(); // DELETEMENU retval[159] = new NotImplementedFunction(); // DELETECOMMAND retval[160] = new NotImplementedFunction(); // GetCHARTITEM retval[161] = new NotImplementedFunction(); // DIALOGBOX retval[162] = TextFunction.CLEAN; // CLEAN retval[163] = new NotImplementedFunction(); // MDETERM retval[164] = new NotImplementedFunction(); // MINVERSE retval[165] = new NotImplementedFunction(); // MMULT retval[166] = new NotImplementedFunction(); // FILES retval[167] = new NotImplementedFunction(); // IPMT retval[168] = new NotImplementedFunction(); // PPMT retval[169] = new Counta(); // COUNTA retval[170] = new NotImplementedFunction(); // CANCELKEY retval[175] = new NotImplementedFunction(); // INITIATE retval[176] = new NotImplementedFunction(); // REQUEST retval[177] = new NotImplementedFunction(); // POKE retval[178] = new NotImplementedFunction(); // EXECUTE retval[179] = new NotImplementedFunction(); // TERMINATE retval[180] = new NotImplementedFunction(); // RESTART retval[181] = new NotImplementedFunction(); // HELP retval[182] = new NotImplementedFunction(); // GetBAR retval[183] = AggregateFunction.PRODUCT; // PRODUCT retval[184] = NumericFunction.FACT; // FACT retval[185] = new NotImplementedFunction(); // GetCELL retval[186] = new NotImplementedFunction(); // GetWORKSPACE retval[187] = new NotImplementedFunction(); // GetWINDOW retval[188] = new NotImplementedFunction(); // GetDOCUMENT retval[189] = new NotImplementedFunction(); // DPRODUCT retval[190] = LogicalFunction.ISNONTEXT; // IsNONTEXT retval[191] = new NotImplementedFunction(); // GetNOTE retval[192] = new NotImplementedFunction(); // NOTE retval[193] = new NotImplementedFunction(); // STDEVP retval[194] = new NotImplementedFunction(); // VARP retval[195] = new NotImplementedFunction(); // DSTDEVP retval[196] = new NotImplementedFunction(); // DVARP retval[197] = NumericFunction.TRUNC; // TRUNC retval[198] = LogicalFunction.ISLOGICAL; // IsLOGICAL retval[199] = new NotImplementedFunction(); // DCOUNTA retval[200] = new NotImplementedFunction(); // DELETEBAR retval[201] = new NotImplementedFunction(); // UNREGISTER retval[204] = new NotImplementedFunction(); // USDOLLAR retval[205] = new NotImplementedFunction(); // FindB retval[206] = new NotImplementedFunction(); // SEARCHB retval[207] = new NotImplementedFunction(); // ReplaceB retval[208] = new NotImplementedFunction(); // LEFTB retval[209] = new NotImplementedFunction(); // RIGHTB retval[210] = new NotImplementedFunction(); // MIDB retval[211] = new NotImplementedFunction(); // LENB retval[212] = NumericFunction.ROUNDUP; // ROUNDUP retval[213] = NumericFunction.ROUNDDOWN; // ROUNDDOWN retval[214] = new NotImplementedFunction(); // ASC retval[215] = new NotImplementedFunction(); // DBCS retval[216] = new NotImplementedFunction(); // RANK retval[219] = new Address(); // AddRESS retval[220] = new Days360(); // DAYS360 retval[221] = new NotImplementedFunction(); // TODAY retval[222] = new NotImplementedFunction(); // VDB retval[227] = AggregateFunction.MEDIAN; // MEDIAN retval[228] = new Sumproduct(); // SUMPRODUCT retval[229] = NumericFunction.SINH; // SINH retval[230] = NumericFunction.COSH; // COSH retval[231] = NumericFunction.TANH; // TANH retval[232] = NumericFunction.ASINH; // ASINH retval[233] = NumericFunction.ACOSH; // ACOSH retval[234] = NumericFunction.ATANH; // ATANH retval[235] = new NotImplementedFunction(); // DGet retval[236] = new NotImplementedFunction(); // CreateOBJECT retval[237] = new NotImplementedFunction(); // VOLATILE retval[238] = new NotImplementedFunction(); // LASTERROR retval[239] = new NotImplementedFunction(); // CUSTOMUNDO retval[240] = new NotImplementedFunction(); // CUSTOMREPEAT retval[241] = new NotImplementedFunction(); // FORMULAConvert retval[242] = new NotImplementedFunction(); // GetLINKINFO retval[243] = new NotImplementedFunction(); // TEXTBOX retval[244] = new NotImplementedFunction(); // INFO retval[245] = new NotImplementedFunction(); // GROUP retval[246] = new NotImplementedFunction(); // GetOBJECT retval[247] = new NotImplementedFunction(); // DB retval[248] = new NotImplementedFunction(); // PAUSE retval[250] = new NotImplementedFunction(); // RESUME retval[252] = new NotImplementedFunction(); // FREQUENCY retval[253] = new NotImplementedFunction(); // AddTOOLBAR retval[254] = new NotImplementedFunction(); // DELETETOOLBAR retval[FunctionID.EXTERNAL_FUNC] = null; // ExternalFunction is a FreeREfFunction retval[256] = new NotImplementedFunction(); // RESetTOOLBAR retval[257] = new NotImplementedFunction(); // EVALUATE retval[258] = new NotImplementedFunction(); // GetTOOLBAR retval[259] = new NotImplementedFunction(); // GetTOOL retval[260] = new NotImplementedFunction(); // SPELLINGCHECK retval[261] = new NotImplementedFunction(); // ERRORTYPE retval[262] = new NotImplementedFunction(); // APPTITLE retval[263] = new NotImplementedFunction(); // WINDOWTITLE retval[264] = new NotImplementedFunction(); // SAVETOOLBAR retval[265] = new NotImplementedFunction(); // ENABLETOOL retval[266] = new NotImplementedFunction(); // PRESSTOOL retval[267] = new NotImplementedFunction(); // REGISTERID retval[268] = new NotImplementedFunction(); // GetWORKBOOK retval[269] = AggregateFunction.AVEDEV; // AVEDEV retval[270] = new NotImplementedFunction(); // BETADIST retval[271] = new NotImplementedFunction(); // GAMMALN retval[272] = new NotImplementedFunction(); // BETAINV retval[273] = new NotImplementedFunction(); // BINOMDIST retval[274] = new NotImplementedFunction(); // CHIDIST retval[275] = new NotImplementedFunction(); // CHIINV retval[276] = NumericFunction.COMBIN; // COMBIN retval[277] = new NotImplementedFunction(); // CONFIDENCE retval[278] = new NotImplementedFunction(); // CRITBINOM retval[279] = new Even(); // EVEN retval[280] = new NotImplementedFunction(); // EXPONDIST retval[281] = new NotImplementedFunction(); // FDIST retval[282] = new NotImplementedFunction(); // FINV retval[283] = new NotImplementedFunction(); // FISHER retval[284] = new NotImplementedFunction(); // FISHERINV retval[285] = NumericFunction.FLOOR; // FLOOR retval[286] = new NotImplementedFunction(); // GAMMADIST retval[287] = new NotImplementedFunction(); // GAMMAINV retval[288] = NumericFunction.CEILING; // CEILING retval[289] = new NotImplementedFunction(); // HYPGEOMDIST retval[290] = new NotImplementedFunction(); // LOGNORMDIST retval[291] = new NotImplementedFunction(); // LOGINV retval[292] = new NotImplementedFunction(); // NEGBINOMDIST retval[293] = new NotImplementedFunction(); // NORMDIST retval[294] = new NotImplementedFunction(); // NORMSDIST retval[295] = new NotImplementedFunction(); // NORMINV retval[296] = new NotImplementedFunction(); // NORMSINV retval[297] = new NotImplementedFunction(); // STANDARDIZE retval[298] = new Odd(); // ODD retval[299] = new NotImplementedFunction(); // PERMUT retval[300] = new NotImplementedFunction(); // POISSON retval[301] = new NotImplementedFunction(); // TDIST retval[302] = new NotImplementedFunction(); // WEIBULL retval[303] = new Sumxmy2(); // SUMXMY2 retval[304] = new Sumx2my2(); // SUMX2MY2 retval[305] = new Sumx2py2(); // SUMX2PY2 retval[306] = new NotImplementedFunction(); // CHITEST retval[307] = new NotImplementedFunction(); // CORREL retval[308] = new NotImplementedFunction(); // COVAR retval[309] = new NotImplementedFunction(); // FORECAST retval[310] = new NotImplementedFunction(); // FTEST retval[311] = new NotImplementedFunction(); // INTERCEPT retval[312] = new NotImplementedFunction(); // PEARSON retval[313] = new NotImplementedFunction(); // RSQ retval[314] = new NotImplementedFunction(); // STEYX retval[315] = new NotImplementedFunction(); // SLOPE retval[316] = new NotImplementedFunction(); // TTEST retval[317] = new NotImplementedFunction(); // PROB retval[318] = AggregateFunction.DEVSQ; // DEVSQ retval[319] = new NotImplementedFunction(); // GEOMEAN retval[320] = new NotImplementedFunction(); // HARMEAN retval[321] = AggregateFunction.SUMSQ; // SUMSQ retval[322] = new NotImplementedFunction(); // KURT retval[323] = new NotImplementedFunction(); // SKEW retval[324] = new NotImplementedFunction(); // ZTEST retval[325] = AggregateFunction.LARGE; // LARGE retval[326] = AggregateFunction.SMALL; // SMALL retval[327] = new NotImplementedFunction(); // QUARTILE retval[328] = new NotImplementedFunction(); // PERCENTILE retval[329] = new NotImplementedFunction(); // PERCENTRANK retval[330] = new Mode(); // MODE retval[331] = new NotImplementedFunction(); // TRIMMEAN retval[332] = new NotImplementedFunction(); // TINV retval[334] = new NotImplementedFunction(); // MOVIECOMMAND retval[335] = new NotImplementedFunction(); // GetMOVIE retval[336] = TextFunction.CONCATENATE; // CONCATENATE retval[337] = NumericFunction.POWER; // POWER retval[338] = new NotImplementedFunction(); // PIVOTAddDATA retval[339] = new NotImplementedFunction(); // GetPIVOTTABLE retval[340] = new NotImplementedFunction(); // GetPIVOTFIELD retval[341] = new NotImplementedFunction(); // GetPIVOTITEM retval[342] = NumericFunction.RADIANS;; // RADIANS retval[343] = NumericFunction.DEGREES; // DEGREES retval[344] = new Subtotal(); // SUBTOTAL retval[345] = new Sumif(); // SUMIF retval[346] = new Countif(); // COUNTIF retval[347] = new Countblank(); // COUNTBLANK retval[348] = new NotImplementedFunction(); // SCENARIOGet retval[349] = new NotImplementedFunction(); // OPTIONSLISTSGet retval[350] = new NotImplementedFunction(); // IsPMT retval[351] = new NotImplementedFunction(); // DATEDIF retval[352] = new NotImplementedFunction(); // DATESTRING retval[353] = new NotImplementedFunction(); // NUMBERSTRING retval[354] = new NotImplementedFunction(); // ROMAN retval[355] = new NotImplementedFunction(); // OPENDIALOG retval[356] = new NotImplementedFunction(); // SAVEDIALOG retval[357] = new NotImplementedFunction(); // VIEWGet retval[358] = new NotImplementedFunction(); // GetPIVOTDATA retval[359] = new NotImplementedFunction(); // HYPERLINK retval[360] = new NotImplementedFunction(); // PHONETIC retval[361] = new NotImplementedFunction(); // AVERAGEA retval[362] = new Maxa(); // MAXA retval[363] = new Mina(); // MINA retval[364] = new NotImplementedFunction(); // STDEVPA retval[365] = new NotImplementedFunction(); // VARPA retval[366] = new NotImplementedFunction(); // STDEVA retval[367] = new NotImplementedFunction(); // VARA return(retval); }
private Constraint ProcessChildSubtreeConstraints() { DelegateInArgument <System.Activities.Statements.TransactionScope> argument = new DelegateInArgument <System.Activities.Statements.TransactionScope> { Name = "element" }; DelegateInArgument <ValidationContext> argument2 = new DelegateInArgument <ValidationContext> { Name = "validationContext" }; DelegateInArgument <Activity> delegateArgument = new DelegateInArgument <Activity> { Name = "child" }; Variable <bool> variable = new Variable <bool>(); Constraint <System.Activities.Statements.TransactionScope> constraint = new Constraint <System.Activities.Statements.TransactionScope>(); ActivityAction <System.Activities.Statements.TransactionScope, ValidationContext> action = new ActivityAction <System.Activities.Statements.TransactionScope, ValidationContext> { Argument1 = argument, Argument2 = argument2 }; Sequence sequence = new Sequence { Variables = { variable } }; ForEach <Activity> item = new ForEach <Activity>(); GetChildSubtree subtree = new GetChildSubtree { ValidationContext = argument2 }; item.Values = subtree; ActivityAction <Activity> action2 = new ActivityAction <Activity> { Argument = delegateArgument }; Sequence sequence2 = new Sequence(); If @if = new If(); Equal <Type, Type, bool> equal = new Equal <Type, Type, bool>(); ObtainType type = new ObtainType { Input = new InArgument <Activity>(delegateArgument) }; equal.Left = type; equal.Right = new InArgument <Type>(context => typeof(CompensableActivity)); @if.Condition = equal; Assign <bool> assign = new Assign <bool> { To = new OutArgument <bool>(variable), Value = new InArgument <bool>(true) }; @if.Then = assign; sequence2.Activities.Add(@if); action2.Handler = sequence2; item.Body = action2; sequence.Activities.Add(item); AssertValidation validation = new AssertValidation(); Not <bool, bool> expression = new Not <bool, bool>(); VariableValue <bool> value2 = new VariableValue <bool> { Variable = variable }; expression.Operand = value2; validation.Assertion = new InArgument <bool>(expression); validation.Message = new InArgument <string>(System.Activities.SR.CompensableActivityInsideTransactionScopeActivity); validation.PropertyName = "Body"; sequence.Activities.Add(validation); action.Handler = sequence; constraint.Body = action; return(constraint); }
/// <summary> /// Gets the search filter instance. /// </summary> /// <param name="localName">Name of the local.</param> /// <returns></returns> private static SearchFilter GetSearchFilterInstance(string localName) { SearchFilter searchFilter; switch (localName) { case XmlElementNames.Exists: searchFilter = new Exists(); break; case XmlElementNames.Contains: searchFilter = new ContainsSubstring(); break; case XmlElementNames.Excludes: searchFilter = new ExcludesBitmask(); break; case XmlElementNames.Not: searchFilter = new Not(); break; case XmlElementNames.And: searchFilter = new SearchFilterCollection(LogicalOperator.And); break; case XmlElementNames.Or: searchFilter = new SearchFilterCollection(LogicalOperator.Or); break; case XmlElementNames.IsEqualTo: searchFilter = new IsEqualTo(); break; case XmlElementNames.IsNotEqualTo: searchFilter = new IsNotEqualTo(); break; case XmlElementNames.IsGreaterThan: searchFilter = new IsGreaterThan(); break; case XmlElementNames.IsGreaterThanOrEqualTo: searchFilter = new IsGreaterThanOrEqualTo(); break; case XmlElementNames.IsLessThan: searchFilter = new IsLessThan(); break; case XmlElementNames.IsLessThanOrEqualTo: searchFilter = new IsLessThanOrEqualTo(); break; default: searchFilter = null; break; } return searchFilter; }
private Node factor() { Node n = Literal(); while (_tokens.Current is NotOperator) { Not not = new Not(_tokens.Current); not.left = n; n = not; _tokens.MoveNext(); } return n; }
public string Visit(Not node) { return("DEPRECATED"); }
public void Visit(Not not) { _instructions.Add(Instruction.Create(OpCodes.Ldc_I4_1)); not.Operand.Accept(this); _instructions.Add(Instruction.Create(OpCodes.Sub)); }
public void Visit(Not visited) { HasCorrectNumberOfInputNodes(visited, 1); IsInfinite(visited); }
// throws jjtraveler.VisitFailure public virtual void testNotOnSuccess() { Not not = new Not(new Identity()); IVisitable resultNode = null; try { resultNode = not.visit(n0); Assertion.Fail("VisitFailure should have occured"); } catch (VisitFailure) { Assertion.AssertNull(resultNode); } }
public AuditTrailLogMap() { #region Class Table("AuditTrailLog"); Id(x => x.AuditTrailLogId) .Column("AuditTrailLogId") .CustomSqlType("int") .GeneratedBy.Identity() .Not.Nullable(); Not.LazyLoad(); // GetById() EntityProxy => Entity #endregion Class #region Properties Map(x => x.LogDate) .Column("LogDate") .CustomSqlType("datetime"); Map(x => x.LogTime) .Column("LogTime") .CustomSqlType("datetime"); Map(x => x.LogUserName) .Column("LogUserName") .CustomSqlType("varchar") .Length(256); Map(x => x.LogDomain) .Column("LogDomain") .CustomSqlType("varchar") .Length(256) .Not.Nullable(); Map(x => x.LogEntity) .Column("LogEntity") .CustomSqlType("varchar") .Length(256) .Not.Nullable(); Map(x => x.LogOperation) .Column("LogOperation") .CustomSqlType("varchar") .Length(1); Map(x => x.LogId) .Column("LogId") .CustomSqlType("varchar") .Length(4096); Map(x => x.LogEntityBefore) .Column("LogEntityBefore") .CustomSqlType("varchar") .Length(4096); Map(x => x.LogEntityAfter) .Column("LogEntityAfter") .CustomSqlType("varchar") .Length(4096); #endregion Properties }
public override AstNode VisitNot(Not ast) { Visit(ast.Operand); if (ast.Operand.ExpressionType != PrimaryType.Boolean) { m_errorManager.AddError(c_SE_UnaryOpTypeInvalid, ast.OpSpan, "!", ast.Operand.ExpressionType.Name); } ast.ExpressionType = PrimaryType.Boolean; return ast; }
public UnitReportMap2() { Table("Report"); Where("IsDeleted = 0 AND OrganizationOrganizationType = 1"); Not.LazyLoad(); Id(x => x.Id); Map(x => x.Description); this.MapComponentWithPrefix(x => x.Organization); this.MapComponentWithPrefix(x => x.ReportingPeriod); Map(x => x.ReportStatus); Map(x => x.ReopenedReportStatus); Map(x => x.Comment); Map(x => x.Timestamp); Map(x => x.IsDeleted); Join("UnitReportData", j => { j.KeyColumn("ReportId"); j.Optional(); j.Map(x => x.MemberMemberData).JsonSerialized(); j.Map(x => x.AssociateMemberData).JsonSerialized(); j.Map(x => x.PreliminaryMemberData).JsonSerialized(); j.Map(x => x.SupporterMemberData).JsonSerialized(); j.Map(x => x.WorkerMeetingProgramData).JsonSerialized(); j.Map(x => x.DawahMeetingProgramData).JsonSerialized(); j.Map(x => x.StateLeaderMeetingProgramData).JsonSerialized(); j.Map(x => x.StateOutingMeetingProgramData).JsonSerialized(); j.Map(x => x.IftarMeetingProgramData).JsonSerialized(); j.Map(x => x.LearningMeetingProgramData).JsonSerialized(); j.Map(x => x.SocialDawahMeetingProgramData).JsonSerialized(); j.Map(x => x.DawahGroupMeetingProgramData).JsonSerialized(); j.Map(x => x.NextGMeetingProgramData).JsonSerialized(); j.Map(x => x.CmsMeetingProgramData).JsonSerialized(); j.Map(x => x.SmMeetingProgramData).JsonSerialized(); j.Map(x => x.MemberMeetingProgramData).JsonSerialized(); j.Map(x => x.TafsirMeetingProgramData).JsonSerialized(); j.Map(x => x.UnitMeetingProgramData).JsonSerialized(); j.Map(x => x.FamilyVisitMeetingProgramData).JsonSerialized(); j.Map(x => x.EidReunionMeetingProgramData).JsonSerialized(); j.Map(x => x.BbqMeetingProgramData).JsonSerialized(); j.Map(x => x.GatheringMeetingProgramData).JsonSerialized(); j.Map(x => x.OtherMeetingProgramData).JsonSerialized(); j.Map(x => x.BaitulMalFinanceData).JsonSerialized(); j.Map(x => x.ADayMasjidProjectFinanceData).JsonSerialized(); j.Map(x => x.MasjidTableBankFinanceData).JsonSerialized(); j.Map(x => x.QardeHasanaSocialWelfareData).JsonSerialized(); j.Map(x => x.PatientVisitSocialWelfareData).JsonSerialized(); j.Map(x => x.SocialVisitSocialWelfareData).JsonSerialized(); j.Map(x => x.TransportSocialWelfareData).JsonSerialized(); j.Map(x => x.ShiftingSocialWelfareData).JsonSerialized(); j.Map(x => x.ShoppingSocialWelfareData).JsonSerialized(); j.Map(x => x.FoodDistributionSocialWelfareData).JsonSerialized(); j.Map(x => x.CleanUpAustraliaSocialWelfareData).JsonSerialized(); j.Map(x => x.OtherSocialWelfareData).JsonSerialized(); j.Map(x => x.BookSaleMaterialData).JsonSerialized(); j.Map(x => x.BookDistributionMaterialData).JsonSerialized(); j.Map(x => x.BookLibraryStockData).JsonSerialized(); j.Map(x => x.OtherSaleMaterialData).JsonSerialized(); j.Map(x => x.OtherDistributionMaterialData).JsonSerialized(); j.Map(x => x.OtherLibraryStockData).JsonSerialized(); j.Map(x => x.VhsSaleMaterialData).JsonSerialized(); j.Map(x => x.VhsDistributionMaterialData).JsonSerialized(); j.Map(x => x.EmailDistributionMaterialData).JsonSerialized(); j.Map(x => x.IpdcLeafletDistributionMaterialData).JsonSerialized(); j.Map(x => x.VhsLibraryStockData).JsonSerialized(); j.Map(x => x.GroupStudyTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.StudyCircleTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.PracticeDarsTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.StateLearningCampTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.QuranStudyTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.QuranClassTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.MemorizingAyatTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.StateLearningSessionTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.StateQiyamulLailTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.StudyCircleForAssociateMemberTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.HadithTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.WeekendIslamicSchoolTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.MemorizingHadithTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.MemorizingDoaTeachingLearningProgramData).JsonSerialized(); j.Map(x => x.OtherTeachingLearningProgramData).JsonSerialized(); }); }
public virtual void Visit(Not node) { }
public void NotToStringTest() { var exp = new Not(new Bool(true)); Assert.Equal("not(True)", exp.ToString(commoonFormatter)); }
/// <summary> /// Converts an object to a <see cref="JsonValue"/>. /// </summary> /// <param name="serializer">The <see cref="JsonSerializer"/> instance to use for additional serialization of values.</param> /// <returns>The <see cref="JsonValue"/> representation of the object.</returns> public virtual JsonValue ToJson(JsonSerializer serializer) { if (BooleanSchemaDefinition != null) { return(BooleanSchemaDefinition); } serializer = serializer ?? _schemaSerializer; var json = new JsonObject(); if (!string.IsNullOrWhiteSpace(Schema)) { json["$schema"] = Schema; } if (Id != null) { json["$id"] = Id; } if (Comment != null) { json["$comment"] = Comment; } if (Title != null) { json["title"] = Title; } if (!string.IsNullOrWhiteSpace(Description)) { json["description"] = Description; } if (Definitions != null) { json["definitions"] = Definitions.ToJson(serializer); } if (ReadOnly.HasValue) { json["readOnly"] = ReadOnly; } if (Type != JsonSchemaType.NotDefined) { var array = Type.ToJson(); if (array.Type == JsonValueType.Array) { array.Array.EqualityStandard = ArrayEquality.ContentsEqual; } json["type"] = array; } if (Properties != null) { json["properties"] = Properties.ToJson(serializer); } if (Maximum.HasValue) { json["maximum"] = Maximum; } if (ExclusiveMaximum.HasValue) { json["exclusiveMaximum"] = ExclusiveMaximum; } if (Minimum.HasValue) { json["minimum"] = Minimum; } if (ExclusiveMinimum.HasValue) { json["exclusiveMinimum"] = ExclusiveMinimum; } if (MultipleOf.HasValue) { json["multipleOf"] = MultipleOf; } if (MaxLength.HasValue) { json["maxLength"] = MaxLength; } if (MinLength.HasValue) { json["minLength"] = MinLength; } if (Pattern != null) { json["pattern"] = Pattern; } if (AdditionalItems != null) { json["additionalItems"] = AdditionalItems.ToJson(serializer); } if (Items != null) { json["items"] = Items.ToJson(serializer); } if (MaxItems.HasValue) { json["maxItems"] = MinItems; } if (MinItems.HasValue) { json["minItems"] = MinItems; } if (UniqueItems ?? false) { json["uniqueItems"] = UniqueItems; } if (Contains != null) { json["contains"] = Contains.ToJson(serializer); } if (MaxProperties.HasValue) { json["maxProperties"] = MaxProperties; } if (MinProperties.HasValue) { json["minProperties"] = MinProperties; } if (Required != null) { json["required"] = Required.ToJson(); } if (AdditionalProperties != null) { json["additionalProperties"] = AdditionalProperties.ToJson(serializer); } if (PatternProperties != null && PatternProperties.Any()) { json["patternProperties"] = PatternProperties.ToDictionary(kvp => kvp.Key.ToString(), kvp => kvp.Value).ToJson(serializer); } if (Dependencies != null && Dependencies.Any()) { var jsonDependencies = new JsonObject(); foreach (var dependency in Dependencies) { jsonDependencies[dependency.PropertyName] = dependency.GetJsonData(); } json["dependencies"] = jsonDependencies; } if (PropertyNames != null) { json["propertyNames"] = PropertyNames.ToJson(serializer); } if (Const != null) { json["const"] = Const; } if (Enum != null) { var array = Enum.ToJson(serializer); array.Array.EqualityStandard = ArrayEquality.ContentsEqual; json["enum"] = Enum.ToJson(serializer); } if (Format != null) { json["format"] = Format.Key; } if (ContentMediaType != null) { json["contentMediaType"] = ContentMediaType; } if (ContentEncoding != null) { json["contentEncoding"] = serializer.Serialize(ContentEncoding); } if (If != null) { json["if"] = If.ToJson(serializer); } if (Then != null) { json["then"] = Then.ToJson(serializer); } if (Else != null) { json["else"] = Else.ToJson(serializer); } if (AllOf != null) { var array = AllOf.Select(s => s.ToJson(serializer)).ToJson(); array.EqualityStandard = ArrayEquality.ContentsEqual; json["allOf"] = array; } if (AnyOf != null) { var array = AnyOf.Select(s => s.ToJson(serializer)).ToJson(); array.EqualityStandard = ArrayEquality.ContentsEqual; json["anyOf"] = array; } if (OneOf != null) { var array = OneOf.Select(s => s.ToJson(serializer)).ToJson(); array.EqualityStandard = ArrayEquality.ContentsEqual; json["oneOf"] = array; } if (Not != null) { json["not"] = Not.ToJson(serializer); } if (Default != null) { json["default"] = Default; } if (Examples != null) { json["examples"] = Examples; } if (ExtraneousDetails != null) { foreach (var kvp in ExtraneousDetails.Where(kvp => !_definedProperties.Contains(kvp.Key))) { json[kvp.Key] = kvp.Value; } } return(json); }
public void TestSimpleNegateOfTrue() { var not = new Not(new Property("True")); Assert.That(not.Evaluate(new Reflection(this)), Is.EqualTo(false)); }
public void DoesNotThrowSucceedWhenExceptionRaisedAndNegated() { Check.ThatCode(() => throw new Exception()).Not.DoesNotThrow(); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (AdditionalItems != null) { AdditionalItems.Validate(); } if (AdditionalProperties != null) { AdditionalProperties.Validate(); } if (AllOf != null) { foreach (var element in AllOf) { if (element != null) { element.Validate(); } } } if (AnyOf != null) { foreach (var element1 in AnyOf) { if (element1 != null) { element1.Validate(); } } } if (DefaultProperty != null) { DefaultProperty.Validate(); } if (Definitions != null) { foreach (var valueElement in Definitions.Values) { if (valueElement != null) { valueElement.Validate(); } } } if (Dependencies != null) { foreach (var valueElement1 in Dependencies.Values) { if (valueElement1 != null) { valueElement1.Validate(); } } } if (EnumProperty != null) { foreach (var element2 in EnumProperty) { if (element2 != null) { element2.Validate(); } } } if (Example != null) { Example.Validate(); } if (Items != null) { Items.Validate(); } if (Not != null) { Not.Validate(); } if (OneOf != null) { foreach (var element3 in OneOf) { if (element3 != null) { element3.Validate(); } } } if (PatternProperties != null) { foreach (var valueElement2 in PatternProperties.Values) { if (valueElement2 != null) { valueElement2.Validate(); } } } if (Properties != null) { foreach (var valueElement3 in Properties.Values) { if (valueElement3 != null) { valueElement3.Validate(); } } } }
void Awake() { node = new Not(null); child.OnSlotFilled += ChildFilled; }
//----------------------------------------------------------- //<expr-unary><--<NOT>// public void Visit(Not node, char i) { VisitChildren(node, i); }