Example #1
0
        public TypeSpecifier EmitSpecifier(EmitMode mode)
        {
            RowTypeSpecifier specifier = new RowTypeSpecifier();

            specifier.IsGeneric = IsGeneric;
            EmitColumns(mode, specifier);
            return(specifier);
        }
Example #2
0
        protected void EmitColumns(EmitMode mode, RowTypeSpecifier specifier)
        {
            NamedTypeSpecifier columnSpecifier;

            foreach (Column column in Columns)
            {
                columnSpecifier               = new NamedTypeSpecifier();
                columnSpecifier.Identifier    = column.Name;
                columnSpecifier.TypeSpecifier = column.DataType.EmitSpecifier(mode);
                specifier.Columns.Add(columnSpecifier);
            }
        }