Пример #1
0
        public override void EnterMethodBody(AdvplParser.MethodBodyContext ctx)
        {
            String name       = ctx.identifier(0).GetText();
            String cClassName = ctx.identifier(1).GetText().ToUpper();

            genericEnterMethod(name, cClassName, ctx);
        }
Пример #2
0
        public override void ExitMethodBody(AdvplParser.MethodBodyContext ctx)
        {
            if (currentScope is  MethodSymbol)
            {
                MethodSymbol method = (MethodSymbol)currentScope;
                if (ctx.identifier().Length == 2)
                {
                    String      cClassName = ctx.identifier(1).GetText().ToUpper();
                    ClassSymbol clss;
                    m_classInSource.TryGetValue(cClassName, out clss);
                    if (clss != null)
                    {
                        method.setClassName(ctx.identifier(1).GetText());
                    }
                }
            }

            genericExit();
        }