Skip to content

Remove the TypeImplementing mixin; unnecessary #3705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 36 additions & 104 deletions lib/src/generator/templates.aot_renderers_for_html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2634,32 +2634,8 @@ String _renderClass_partial_documentation_4(Class context1) =>
String _renderClass_partial_super_chain_5(Class context1) =>
_deduplicated_lib_templates__super_chain_html(context1);

String _renderClass_partial_interfaces_6(Class context1) {
final buffer = StringBuffer();
if (context1.hasPublicInterfaces) {
buffer.writeln();
buffer.write('''
<dt>Implemented types</dt>
<dd>
<ul class="comma-separated ''');
buffer.writeEscaped(context1.relationshipsClass);
buffer.write('''">''');
var context2 = context1.publicInterfaces;
for (var context3 in context2) {
buffer.writeln();
buffer.write('''
<li>''');
buffer.write(context3.linkedName);
buffer.write('''</li>''');
}
buffer.writeln();
buffer.write('''
</ul>
</dd>''');
}

return buffer.toString();
}
String _renderClass_partial_interfaces_6(Class context1) =>
_deduplicated_lib_templates__interfaces_html(context1);

String _renderClass_partial_mixed_in_types_7(Class context1) {
final buffer = StringBuffer();
Expand Down Expand Up @@ -2761,32 +2737,8 @@ String _renderEnum_partial_documentation_4(Enum context1) =>
String _renderEnum_partial_super_chain_5(Enum context1) =>
_deduplicated_lib_templates__super_chain_html(context1);

String _renderEnum_partial_interfaces_6(Enum context1) {
final buffer = StringBuffer();
if (context1.hasPublicInterfaces) {
buffer.writeln();
buffer.write('''
<dt>Implemented types</dt>
<dd>
<ul class="comma-separated ''');
buffer.writeEscaped(context1.relationshipsClass);
buffer.write('''">''');
var context2 = context1.publicInterfaces;
for (var context3 in context2) {
buffer.writeln();
buffer.write('''
<li>''');
buffer.write(context3.linkedName);
buffer.write('''</li>''');
}
buffer.writeln();
buffer.write('''
</ul>
</dd>''');
}

return buffer.toString();
}
String _renderEnum_partial_interfaces_6(Enum context1) =>
_deduplicated_lib_templates__interfaces_html(context1);

String _renderEnum_partial_mixed_in_types_7(Enum context1) {
final buffer = StringBuffer();
Expand Down Expand Up @@ -2921,32 +2873,8 @@ String _renderExtensionType_partial_categorization_3(ExtensionType context1) =>
String _renderExtensionType_partial_documentation_4(ExtensionType context1) =>
_deduplicated_lib_templates__documentation_html(context1);

String _renderExtensionType_partial_interfaces_5(ExtensionType context1) {
final buffer = StringBuffer();
if (context1.hasPublicInterfaces) {
buffer.writeln();
buffer.write('''
<dt>Implemented types</dt>
<dd>
<ul class="comma-separated ''');
buffer.writeEscaped(context1.relationshipsClass);
buffer.write('''">''');
var context2 = context1.publicInterfaces;
for (var context3 in context2) {
buffer.writeln();
buffer.write('''
<li>''');
buffer.write(context3.linkedName);
buffer.write('''</li>''');
}
buffer.writeln();
buffer.write('''
</ul>
</dd>''');
}

return buffer.toString();
}
String _renderExtensionType_partial_interfaces_5(ExtensionType context1) =>
_deduplicated_lib_templates__interfaces_html(context1);

String _renderExtensionType_partial_container_annotations_6(
ExtensionType context1) =>
Expand Down Expand Up @@ -3270,32 +3198,8 @@ String _renderMixin_partial_documentation_4(Mixin context1) =>
String _renderMixin_partial_super_chain_5(Mixin context1) =>
_deduplicated_lib_templates__super_chain_html(context1);

String _renderMixin_partial_interfaces_6(Mixin context1) {
final buffer = StringBuffer();
if (context1.hasPublicInterfaces) {
buffer.writeln();
buffer.write('''
<dt>Implemented types</dt>
<dd>
<ul class="comma-separated ''');
buffer.writeEscaped(context1.relationshipsClass);
buffer.write('''">''');
var context2 = context1.publicInterfaces;
for (var context3 in context2) {
buffer.writeln();
buffer.write('''
<li>''');
buffer.write(context3.linkedName);
buffer.write('''</li>''');
}
buffer.writeln();
buffer.write('''
</ul>
</dd>''');
}

return buffer.toString();
}
String _renderMixin_partial_interfaces_6(Mixin context1) =>
_deduplicated_lib_templates__interfaces_html(context1);

String _renderMixin_partial_annotations_7(Mixin context1) =>
_deduplicated_lib_templates__annotations_html(context1);
Expand Down Expand Up @@ -4518,6 +4422,34 @@ String _deduplicated_lib_templates__super_chain_html(
return buffer.toString();
}

String _deduplicated_lib_templates__interfaces_html(
InheritingContainer context0) {
final buffer = StringBuffer();
if (context0.hasPublicInterfaces) {
buffer.writeln();
buffer.write('''
<dt>Implemented types</dt>
<dd>
<ul class="comma-separated ''');
buffer.writeEscaped(context0.relationshipsClass);
buffer.write('''">''');
var context1 = context0.publicInterfaces;
for (var context2 in context1) {
buffer.writeln();
buffer.write('''
<li>''');
buffer.write(context2.linkedName);
buffer.write('''</li>''');
}
buffer.writeln();
buffer.write('''
</ul>
</dd>''');
}

return buffer.toString();
}

String _deduplicated_lib_templates__container_annotations_html(
Container context0) {
final buffer = StringBuffer();
Expand Down
Loading