Exemple #1
0
        private void GetContent(CompilerContext context, ParseTreeNode parseNode)
        {
            var grammar = GetGraphQLGrammar(context);
            if (parseNode.ChildNodes[0].Term == grammar.S_REFUUID || parseNode.ChildNodes[0].Term == grammar.S_REFERENCEUUID)
            {
                _IsREFUUID = true;
            }

            var tupleNode = parseNode.ChildNodes[1].AstNode as TupleNode;

            if (tupleNode == null)
            {
                throw new GraphDBException(new Error_NotImplemented(new System.Diagnostics.StackTrace(true)));
            }

            ADBBaseObject[] parameters = null;
            if (parseNode.ChildNodes[2].AstNode is ParametersNode)
            {
                parameters = (parseNode.ChildNodes[2].AstNode as ParametersNode).ParameterValues.ToArray();
            }

            SetRefDefinition = new SetRefDefinition(tupleNode.TupleDefinition, _IsREFUUID, parameters);
        }
 public AttributeAssignOrUpdateSetRef(IDChainDefinition myIDChainDefinition, SetRefDefinition mySetRefDefinition)
     : base(myIDChainDefinition)
 {
     SetRefDefinition = mySetRefDefinition;
 }