public TypeSpecifier EmitSpecifier(EmitMode mode) { RowTypeSpecifier specifier = new RowTypeSpecifier(); specifier.IsGeneric = IsGeneric; EmitColumns(mode, specifier); return(specifier); }
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); } }