Exemple #1
0
        public override SQLiteParseTreeNode VisitColumn_def(SQLiteParserSimpleParser.Column_defContext context)
        {
            var ret = new ColumnDefNode(context)
            {
                ColumnName = context.name().GetText()
            };

            var typeName = context.type_name();

            if (typeName != null)
            {
                ret.TypeNameNode = typeName.Accept(this) as TypeNameNode;
            }

            ret.ColumnConstraints = context.column_constraint().Select(c => c.Accept(this)).Cast <ColumnConstraintNode>().ToList();

            return(ret);
        }
Exemple #2
0
 public ColumnDefNode(SQLiteParserSimpleParser.Column_defContext context) : base(context)
 {
 }