Exemplo n.º 1
0
        // Merge support //
        public static MergeMethod GetMergeMethod(HScriptParser.Merge_typeContext context)
        {

            MergeMethod meth = MergeMethod.Inner;
            if (context == null)
                return meth;

            if (context.K_LEFT() != null && context.K_ANTI() != null)
                meth = MergeMethod.AntiLeft;
            else if (context.K_LEFT() != null)
                meth = MergeMethod.Left;
            else if (context.K_RIGHT() != null && context.K_ANTI() != null)
                meth = MergeMethod.AntiRight;
            else if (context.K_RIGHT() != null)
                meth = MergeMethod.Right;
            else if (context.K_ANTI() != null)
                meth = MergeMethod.AntiInner;
            else if (context.K_FULL() != null)
                meth = MergeMethod.Full;
            else if (context.K_INNER() != null)
                meth = MergeMethod.Inner;

            return meth;

        }