internal static bool IsActive <T>(this ConditionalNode <T> node) where T : ParserRuleContext { if (node.Result == null) { return(false); // check what the correct response is here. } if (node.Result is bool) { return((bool)node.Result); } // TODO need to add additional type checks etc. throw new NotImplementedException(); }
internal void AddNode(EndIfStatement statement, object result) { CheckStatementSyntax(statement); EndIf = new ConditionalNode <EndIfStatement>(statement, result); }