示例#1
0
        public void Init(ParsingContext context, ParseTreeNode parseNode)
        {
            string type = parseNode.ChildNodes[1].ChildNodes[0].Token.ValueString;
            string indexName = parseNode.ChildNodes[1].ChildNodes[1].Token.ValueString;
            string edition = null;
            if (parseNode.ChildNodes[2].ChildNodes != null && parseNode.ChildNodes[2].ChildNodes.Count != 0)
            {
                edition = parseNode.ChildNodes[2].ChildNodes[0].Token.ValueString;
            }

            _DescribeIndexDefinition = new DescribeIndexDefinition(type, indexName, edition);
        }
示例#2
0
        public void Init(ParsingContext context, ParseTreeNode parseNode)
        {
            String vertexType = ((ATypeNode)parseNode.ChildNodes[1].AstNode).ReferenceAndType.TypeName;
            String indexName = parseNode.ChildNodes[2].ChildNodes.Count > 0 ? parseNode.ChildNodes[2].ChildNodes[0].Token.ValueString : String.Empty;
            String edition = String.Empty;

            if (parseNode.ChildNodes[3].ChildNodes.Count > 0)
            {
                edition = parseNode.ChildNodes[3].ChildNodes[1].Token.ValueString;
            }

            _DescribeIndexDefinition = new DescribeIndexDefinition(vertexType, indexName, edition);
        }
示例#3
0
 public void Init(ParsingContext context, ParseTreeNode parseNode)
 {
     _DescribeIndexDefinition = new DescribeIndexDefinition(String.Empty, String.Empty, String.Empty);
 }