Exemplo n.º 1
0
        public CommonTableRefContext(TableRefContext tableRef, UsePartitionContext usePartition)
        {
            TableRef   = tableRef;
            Partitions = usePartition?.identifierListWithParentheses()?.identifierList();

            Start = tableRef.Start;
            Stop  = usePartition?.Stop ?? tableRef.Stop;
        }
Exemplo n.º 2
0
        public CommonTableRefContext(TableRefContext tableRef, PartitionDeleteContext partitionDelete)
        {
            TableRef   = tableRef;
            Partitions = partitionDelete?.identifierList();

            Start = tableRef.Start;
            Stop  = partitionDelete?.Stop ?? tableRef.Stop;
        }
Exemplo n.º 3
0
 public override void EnterIdentifierList([NotNull] IdentifierListContext context)
 {
     base.EnterIdentifierList(context);
     //string txtat = context.Start.InputStream.GetText(new Interval(chkindex, chkindex));
     if (context.Parent != null && context.Parent.Parent != null)
     {
         int    start = ((IToken)context.Parent.Parent).StopIndex;
         int    end   = context.Start.StopIndex;
         string text  = context.Start.InputStream.GetText(new Interval(start, end));
     }
     string st = context.Start.Text;
 }