public override object VisitCreateTable([NotNull] MiniSQLParser.CreateTableContext context) { CreateStatement obj = new CreateStatement(); obj.TableName = context.tableName().GetText(); if (context.tableElementList() == null) { obj.AttributeDeclarations = new List <AttributeDeclaration>(); } else { (List <AttributeDeclaration>, string)AttributesPrimaryPair = ((List <AttributeDeclaration>, string))Visit(context.tableElementList()); obj.AttributeDeclarations = AttributesPrimaryPair.Item1; obj.PrimaryKey = AttributesPrimaryPair.Item2; } return(obj); }