Example #1
0
        protected override bool EndsWith(NodeBase node)
        {
            if(ChildrenNodes.Count != 0 && node == this) {
                return true;
            }

            var endDirective = node as EndDirectiveNode;

            return endDirective != null && endDirective.TargetDirectiveName == DirectiveName;
        }
Example #2
0
        private static TokenNode GetConditionFromNode(NodeBase node, out bool isConditional)
        {
            isConditional = true;

            var asElseIf = node as ElseIfNode;

            if(asElseIf != null) {
                return asElseIf.Condition;
            }

            var asElse = node as ElseNode;

            if(asElse != null) {
                return null;
            }

            isConditional = false;

            return null;
        }
Example #3
0
        protected override bool EndsWith(NodeBase node)
        {
            var endDirective = node as EndDirectiveNode;

            return endDirective != null && endDirective.TargetDirectiveName == DirectiveName;
        }
Example #4
0
 protected abstract bool EndsWith(NodeBase node);
Example #5
0
 protected override bool EndsWith(NodeBase node)
 {
     return node == this;
 }
Example #6
0
        protected static bool IsEndDirective(NodeBase node, string name)
        {
            var asEndDirective = node as EndDirectiveNode;

            return asEndDirective != null && asEndDirective.TargetDirectiveName == name;
        }
Example #7
0
 public ExecutionException(string message, NodeBase node, Exception inner)
     : base(message, inner)
 {
     this.node = node;
 }
Example #8
0
 public ExecutionException(string message, NodeBase node)
     : base(message)
 {
     this.node = node;
 }
Example #9
0
 public DataTypeException(string message, NodeBase node, Exception inner)
     : base(message, node, inner)
 {
 }
Example #10
0
 public DataTypeException(string message, NodeBase node)
     : base(message, node)
 {
 }
Example #11
0
 public UnknownVariableException(string message, NodeBase node, Exception inner)
     : base(message, node, inner)
 {
 }
Example #12
0
 public UnknownVariableException(string message, NodeBase node)
     : base(message, node)
 {
 }