示例#1
0
文件: LetNode.cs 项目: peppy/osq2osb
        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;
        }
示例#2
0
文件: IfNode.cs 项目: strager/osq2osb
        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;
        }
示例#3
0
文件: EachNode.cs 项目: peppy/osq2osb
        protected override bool EndsWith(NodeBase node)
        {
            var endDirective = node as EndDirectiveNode;

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

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