Пример #1
0
 public Error_InvalidAttributeKind(KindsOfType myCurrentKindsOfType, params KindsOfType[] myExpectedKindsOfType)
     : this()
 {
     ExpectedKindsOfType = myExpectedKindsOfType;
     CurrentKindsOfType = myCurrentKindsOfType;
 }
Пример #2
0
        public void GetContent(CompilerContext myCompilerContext, ParseTreeNode myParseTreeNode)
        {
            #region TypeEdge class

            //if (!dbContext.DBPluginManager.HasEdgeType(myParseTreeNode.ChildNodes[0].Token.ValueString))
            //    throw new GraphDBException(new Error_EdgeTypeDoesNotExist(myParseTreeNode.ChildNodes[0].Token.ValueString));

            //_EdgeType = dbContext.DBPluginManager.GetEdgeType(myParseTreeNode.ChildNodes[0].Token.ValueString);

            EdgeType = myParseTreeNode.ChildNodes[0].Token.ValueString;

            if (myParseTreeNode.ChildNodes[1].AstNode != null)
            {
                Parameters = ((EdgeTypeParamsNode)myParseTreeNode.ChildNodes[1].AstNode).Parameters;
            }

            #endregion

            _Name = myParseTreeNode.ChildNodes[3].Token.ValueString;

            _Type = KindsOfType.UnknownSingle;
        }
Пример #3
0
 public Error_InvalidAttributeKind()
 {
     ExpectedKindsOfType = new KindsOfType[0];
 }