예제 #1
0
        public CodeTypeAnalysis(Context ctx)
        {
            ctx.put(CONTEXT_KEY, this);

            symtab    = Symtab.instance(ctx);
            log       = Log.instance(ctx);
            typings   = Typings.instance(ctx);
            check     = Check.instance(ctx);
            operators = Operators.instance(ctx);
        }
예제 #2
0
        private Operators(Context ctx)
        {
            ctx.put(CONTEXT_KEY, this);

            symtab  = Symtab.instance(ctx);
            log     = Log.instance(ctx);
            typings = Typings.instance(ctx);

            initOperators();
        }