示例#1
0
        protected EnumContext GetEnumContext(IntegerEnum integerEnum)
        {
            var enumContext = _contextGenerator.EnumFromIdl(integerEnum);

            foreach (var field in integerEnum.Fields)
            {
                enumContext.AddField(_contextGenerator.FieldFromIdl(field));
            }
            return(enumContext);
        }
示例#2
0
        public void Visit(IntegerEnum integerEnum)
        {
            var enumContext = _contextGenerator.EnumFromIdl(integerEnum);

            foreach (var field in integerEnum.Fields)
            {
                enumContext.AddField(_contextGenerator.FieldFromIdl(field));
            }

            Render(enumContext, "intEnum");
        }