コード例 #1
0
        protected internal override CapnpStruct VisitStruct(CapnpStruct @struct)
        {
            if (!mEnableNestedType) return @struct;

             mCurrentScope = @struct;
             var s = base.VisitStruct(@struct);
             mCurrentScope = s.Scope;
             return s;
        }
コード例 #2
0
        protected internal override CapnpModule VisitModule(CapnpModule module)
        {
            if (mActiveModule != null && mActiveModule != module) return module;

             mCurrentScope = module;
             var m = base.VisitModule(module);
             mCurrentScope = m;
             return m;
        }
コード例 #3
0
        protected internal override CapnpInterface VisitInterface(CapnpInterface @interface)
        {
            if (!mEnableNestedType) return @interface;

             mCurrentScope = @interface;
             var i = base.VisitInterface(@interface);
             mCurrentScope = i.Scope;
             return i;
        }
コード例 #4
0
        protected internal override CapnpStruct VisitStruct(CapnpStruct @struct)
        {
            if (!mEnableNestedType)
            {
                return(@struct);
            }

            mCurrentScope = @struct;
            var s = base.VisitStruct(@struct);

            mCurrentScope = s.Scope;
            return(s);
        }
コード例 #5
0
        protected internal override CapnpModule VisitModule(CapnpModule module)
        {
            if (mActiveModule != null && mActiveModule != module)
            {
                return(module);
            }

            mCurrentScope = module;
            var m = base.VisitModule(module);

            mCurrentScope = m;
            return(m);
        }
コード例 #6
0
        protected internal override CapnpInterface VisitInterface(CapnpInterface @interface)
        {
            if (!mEnableNestedType)
            {
                return(@interface);
            }

            mCurrentScope = @interface;
            var i = base.VisitInterface(@interface);

            mCurrentScope = i.Scope;
            return(i);
        }