@@ -32,7 +32,6 @@ limitations under the License.
3232
3333namespace dot
3434{
35- // / Built type_t from the current object.
3635 type type_builder_impl::build ()
3736 {
3837 type_->fill (this );
@@ -57,7 +56,6 @@ namespace dot
5756 return type_;
5857 }
5958
60- // / Fill data from builder.
6159 void type_impl::fill (const type_builder& data)
6260 {
6361 if (!data->base_ .is_empty () && !data->base_ ->get_methods ().is_empty () && data->base_ ->get_methods ()->count ())
@@ -93,7 +91,9 @@ namespace dot
9391 }
9492 }
9593 else
94+ {
9695 this ->methods_ = make_list<method_info>(0 );
96+ }
9797
9898 if (!data->ctors_ .is_empty ())
9999 {
@@ -105,7 +105,9 @@ namespace dot
105105 }
106106 }
107107 else
108+ {
108109 this ->ctors_ = make_list<constructor_info>(0 );
110+ }
109111
110112 if (!data->base_ .is_empty () && !data->base_ ->get_fields ().is_empty () && data->base_ ->get_fields ()->count ())
111113 {
@@ -140,7 +142,9 @@ namespace dot
140142 }
141143 }
142144 else
145+ {
143146 this ->fields_ = make_list<field_info>(0 );
147+ }
144148
145149 if (!data->interfaces_ .is_empty ())
146150 {
@@ -152,7 +156,9 @@ namespace dot
152156 }
153157 }
154158 else
159+ {
155160 this ->interfaces_ = make_list<type>(0 );
161+ }
156162
157163 if (!data->generic_args_ .is_empty ())
158164 {
@@ -164,16 +170,15 @@ namespace dot
164170 }
165171 }
166172 else
173+ {
167174 this ->generic_args_ = make_list<type>(0 );
175+ }
168176
169177 this ->base_ = data->base_ ;
170178 this ->is_class = data->is_class_ ;
171179 this ->is_enum = data->is_enum_ ;
172180 }
173181
174- // / Create from builder.
175- // /
176- // / This constructor is private. Use type_builder->build() method instead.
177182 type_impl::type_impl (string nspace, string name)
178183 {
179184 this ->name_space = nspace;
0 commit comments